-
Notifications
You must be signed in to change notification settings - Fork 17.3k
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
AP_DDS: Provide vehicle type and mode #28301
Comments
Had you considered the reporting designed in REP-147? |
Thanks for the link. I find the proposed We could use the |
frame_id seems confusing - in AP this might mean the frame_type/frame_class (e.g. if a VTOL is a X/H/Y frame and 4/6/8 motors etc) - whereas SYSID_THISMAV is not that. |
frame_id is supposed to correspond to a coordinate frame, not a vehicle number. Each vehicle has it's own I agree knowing the mode the vehicle is in is very useful because it can failsafe, or the GCS can change out of GUIDED while you are running some autonomous operation. To me it would be best if we published this with reliable transport on state change
Having Ardupilot manage the state will make it easiest for companion computer algorithms to abort, rather than all of them having to continuously check if the vehicle is in the correct mode. |
Also, can we call it |
Follow up:
|
looking better - What's the meaning of is_flying on non-flight vehicles? |
that is a good point, what can be a more generic term? Also, I know |
DDS Interface to obtain vehicle's type and mode.
The DDS interface should provide information about the vehicle type and current mode.
Solution
/ap/flight_mode
of custom typeFlightMode
.FlightMode
should contain:vehicle_type
: enum of the vehicle, plane, copter,....flight_mode
: enum of the current flight modearmed
: true if armed.header
frame_id
: string identifying the vehicle like SYSID_THISMAV.Platform
[ x ] All
[ ] AntennaTracker
[ ] Copter
[ ] Plane
[ ] Rover
[ ] Submarine
The text was updated successfully, but these errors were encountered: