RflySim / RflyExpCode

Multicopter Design and Control Experiments based on MATLAB and PixHawk
https://rflysim.com
176 stars 92 forks source link

Error in Building "AttitudeControl_FLY" #28

Closed EL-Wadi closed 4 years ago

EL-Wadi commented 4 years ago

I got this error when I tried to build the model "AttitudeControl_FLY" in e5.4 folder I followed your instructions and replaced the three files (costom_attctrl_e5, CMakeLists, and logger) by the given files in the folder "PSPfile" . After that replacement, I got the same error when I tried to compile any other Hill model in your package.. Everything is OK when I returned to the original firmware files (CMakeLists, and logger) I am using windows 10 with Matlab 2017 and your latest package (RflySim V2.29 - 2020/07/08), firmware 1.7

image image

WANGshouming4937 commented 4 years ago

You can try to modify the files instead of replacing with the given files.

EL-Wadi commented 4 years ago

You have mentioned in your PPT slides to modify "logger.cpp" by adding “add_topic(“costom_attctrl_e5”, 4)” to the bottom line of “add_common_topic()” . There is no thing called add_common_topic(). There is add_default_topic(). Is this what you mean?

image

WANGshouming4937 commented 4 years ago

What you did is right, and you can modify the number as your wish. "add_common_topics()" appears in the older version, and we will correct the problem.