The list of available modes in MAVProxy

Where does MAVProxy get the list of available modes?

AUTO> ('Available modes: ', ['AUTO', 'GUIDED', 'MANUAL', 'LEARNING', 'RTL', 'INITIALISING', 'HOLD', 'STEERING'])

Mode(0x00000040)> mode
Mode(0x00000040)> No mode mapping available

I figured it out. The available modes depend on the system type in heartbeat message.

rover they are here https://github.com/ArduPilot/ardupilot/blob/master/APMrover2/defines.h#L32
plane here https://github.com/ArduPilot/ardupilot/blob/master/ArduPlane/defines.h#L47
and copter here https://github.com/ArduPilot/ardupilot/blob/master/ArduCopter/defines.h#L87

1 Like