Servers by jDrones

Adding custom flight mode Qgroundcontrol

(Ma Rueg) #1

Hello everyone,

i got a custom flight mode, which runs fine in in SITL using jsbsim.
Now i would like to make it seen in QGroundcontrol to use it in a real flight. However i am not succeeding.
I already added the flight mode to the ArduPlane/Parameters.cpp as described here:
http://ardupilot.org/dev/docs/apmcopter-adding-a-new-flight-mode.html

I am probably still missing something. Any hint would be highly appreciated!!!

Thanks a lot in advance and cheers!

(DonLakeFlyer) #2

Flight Modes are not part of the mavlink spec they are hardcoded into ground station code. The only way to get a new flight mode into a ground station is to modify the source code for the ground station.

(Ma Rueg) #3

Thanks a lot for the fast reply!
Would you happen to know where i have to add the flight mode in the QGroundcontrol source code then?

(DonLakeFlyer) #4

https://github.com/mavlink/qgroundcontrol/blob/master/src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.cc and header

(Ma Rueg) #5

Thank you so much mate!
Now it seems to be working and i can test the mode in real flight.

Cheers!