Example Px4DemoHostTargetWithSimulinkPlantStart failing during Monitor and Tune
Hello, I have run the example in the name, and the first step of simulation work great, but when I try to perform the second step, Monitor and Tune, where deployment happens it fails saying that it can’t find the flightcontroller.cpp when building the rtw library. I can see that it is trying to use the resulting FlightController.cpp.o but if I look at the artifacts of the project and it is not there. Moment when it fails:
### Creating static library ./FlightController_rtwlib.mk … echo ruvs ./FlightController_rtwlib.mk FlightController.cpp.o process_begin: CreateProcess(NULL, echo ruvs ./FlightController_rtwlib.mk FlightController.cpp.o, …) failed. make (e=2): The system cannot find the file specified.
gmake: *** [FlightController_rtwlib.mk] Error 2 C:UsersuserMATLABProjectsPX4VectorNavIntegrationworkcodeslprjertFlightController>echo The make command returned an error of 2 The make command returned an error of 2
C:UsersuserMATLABProjectsPX4VectorNavIntegrationworkcodeslprjertFlightController>exit 1 ### Build procedure for FlightController aborted due to an error.
Build summary:
Code generation targets built:
Model Action Rebuild Reason ============================================================================
FlightController Failed Code generation information file does not exist.
Top model targets built:
Model Action Rebuild Reason ========================================================================================
px4Demo_FlightController_top Failed Code generation information file does not exist.
0 of 2 models built (0 models already up to date)
Build duration: 0h 0m 14.771s
Any ideas?
Thank you,
JuanHello, I have run the example in the name, and the first step of simulation work great, but when I try to perform the second step, Monitor and Tune, where deployment happens it fails saying that it can’t find the flightcontroller.cpp when building the rtw library. I can see that it is trying to use the resulting FlightController.cpp.o but if I look at the artifacts of the project and it is not there. Moment when it fails:
### Creating static library ./FlightController_rtwlib.mk … echo ruvs ./FlightController_rtwlib.mk FlightController.cpp.o process_begin: CreateProcess(NULL, echo ruvs ./FlightController_rtwlib.mk FlightController.cpp.o, …) failed. make (e=2): The system cannot find the file specified.
gmake: *** [FlightController_rtwlib.mk] Error 2 C:UsersuserMATLABProjectsPX4VectorNavIntegrationworkcodeslprjertFlightController>echo The make command returned an error of 2 The make command returned an error of 2
C:UsersuserMATLABProjectsPX4VectorNavIntegrationworkcodeslprjertFlightController>exit 1 ### Build procedure for FlightController aborted due to an error.
Build summary:
Code generation targets built:
Model Action Rebuild Reason ============================================================================
FlightController Failed Code generation information file does not exist.
Top model targets built:
Model Action Rebuild Reason ========================================================================================
px4Demo_FlightController_top Failed Code generation information file does not exist.
0 of 2 models built (0 models already up to date)
Build duration: 0h 0m 14.771s
Any ideas?
Thank you,
Juan Hello, I have run the example in the name, and the first step of simulation work great, but when I try to perform the second step, Monitor and Tune, where deployment happens it fails saying that it can’t find the flightcontroller.cpp when building the rtw library. I can see that it is trying to use the resulting FlightController.cpp.o but if I look at the artifacts of the project and it is not there. Moment when it fails:
### Creating static library ./FlightController_rtwlib.mk … echo ruvs ./FlightController_rtwlib.mk FlightController.cpp.o process_begin: CreateProcess(NULL, echo ruvs ./FlightController_rtwlib.mk FlightController.cpp.o, …) failed. make (e=2): The system cannot find the file specified.
gmake: *** [FlightController_rtwlib.mk] Error 2 C:UsersuserMATLABProjectsPX4VectorNavIntegrationworkcodeslprjertFlightController>echo The make command returned an error of 2 The make command returned an error of 2
C:UsersuserMATLABProjectsPX4VectorNavIntegrationworkcodeslprjertFlightController>exit 1 ### Build procedure for FlightController aborted due to an error.
Build summary:
Code generation targets built:
Model Action Rebuild Reason ============================================================================
FlightController Failed Code generation information file does not exist.
Top model targets built:
Model Action Rebuild Reason ========================================================================================
px4Demo_FlightController_top Failed Code generation information file does not exist.
0 of 2 models built (0 models already up to date)
Build duration: 0h 0m 14.771s
Any ideas?
Thank you,
Juan px4, uav toolbox MATLAB Answers — New Questions