Has anyone tried to add a flight mode into the ArduCopter souce code?
I want to create my own flight mode into APM, so first I learn how to add a new flight mode,
I follow the instruction below step by step, just skip the step #6, I don't know how to do step 6, but I think it can be skiped, isn't it?
http://dev.ardupilot.com/wiki/apmcopter-code-overview/apmcopter-adding-a-new-flight-mode/
but when compiling in the Arduino, error came out. The compile error information is in the attactching files.
Any advise will be appreciate! thanks
Replies
oh, the problem has been solved.
The instruction has a little mistake in http://dev.ardupilot.com/wiki/apmcopter-code-overview/apmcopter-add...
Step #4 should delete the "success=", as the function "newflightmode_run()" has no return value.
deleting the "success=" can make the compiling done