-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a mapping of ArduPilot custom flight modes #61
Conversation
ROVER_FLIGHT_MODE ROVER_FLIGHT_MODE_INITIALISING I don't see the need for the repetition of the _FLIGHT_MODE part |
@lvale The macro names don't have the enum name so if you remove the FLIGHT_MODE part, it will be just ROVER_INITIALISING which doesn't say it is a flight mode. |
I can see the arguments either way. I suspect that |
7ae6302
to
5ae04c1
Compare
Renamed to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. The Z
vs S
thing doesn't bother me too much.
<entry value="12" name="PLANE_MODE_LOITER"/> | ||
<entry value="14" name="PLANE_MODE_AVOID_ADSB"/> | ||
<entry value="15" name="PLANE_MODE_GUIDED"/> | ||
<entry value="16" name="PLANE_MODE_INITIALISING"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shold be INITIALIZING
for consistency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
<entry value="2" name="PLANE_MODE_STABILIZE"/> | ||
<entry value="3" name="PLANE_MODE_TRAINING"/> | ||
<entry value="4" name="PLANE_MODE_ACRO"/> | ||
<entry value="5" name="PLANE_MODE_FLY_BY_WIRE_A"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a little wordy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer the clarity/lack of ambiguity of spelling it out here.
5ae04c1
to
c0a2354
Compare
Has anyone confirmed this matches the ArduPilot values? |
On Thu, 25 Jan 2018, Francisco Ferreira wrote:
Has anyone confirmed this matches the ArduPilot values?
I went through them, and didn't see anything different.
|
Thanks @peterbarker! Merged! |
This maps out all currently supported flight modes that are reported via the
custom_mode
field of heartbeat.