ardupilot
ardupilot copied to clipboard
GCS_MAVLink: Add FLIGHT_INFORMATION message
Adds ~~a new FLIGHT_DURATION~~ the FLIGHT_INFORMATION message to report the time that the vehicle armed and took off (if known).
This message is needed if connecting a GCS to a vehicle that is already armed/flying, as otherwise these times can't be accurately determined.
Also adds an accessor to AP_Arming to record the arming time.
~~Requires: https://github.com/ArduPilot/mavlink/pull/336~~
I wonder if the new metrics would be useful as part of AP_Stats, you can get flight time from there, but currently you have to pull the param value.
@nexton-winjeel I think this PR is now no-longer-required as we're going to use FLIGHT_INFORMATION instead, correct?
@peterbarker: It's not required as-is, but I'll convert it to use FLIGHT_INFORMATION instead of the now non-existent FLIGHT_DURATION. Will get to it early next week.
@peterbarker: It's not required as-is, but I'll convert it to use
FLIGHT_INFORMATIONinstead of the now non-existentFLIGHT_DURATION. Will get to it early next week.
Long week?
Long week?
Very. Still not my oldest open PR though...
Closes https://github.com/ArduPilot/ardupilot/issues/25284
I think this should be disabled by def and a build option...not going to be used by 95% of users....or at least disabled in minimize include...also needs file for build server and features list added
This is going to be a good/useful message for a lot of people. I plan on patching MAVProxy for it to fix the resetting-flight-time problem it has.
@nexton-winjeel please add an entry into minimize_common.inc so this isn't built on the tiny boards. Also entries to extract_features.py and build_options.py so users can turn the feature on/off as desired.
@nexton-winjeel please add an entry into
minimize_common.incso this isn't built on the tiny boards. Also entries toextract_features.pyandbuild_options.pyso users can turn the feature on/off as desired.
Done.
In-progress MAVProxy support is here: https://github.com/ArduPilot/MAVProxy/pull/1438
Works ~, but I've broken other stuff in a refactor~
Ping @nexton-winjeel - might still be viable for 4.6 - but even than had better be soon :-)
@peterbarker: Can I get you to review this again?
Can we have this merged ?
I can't force-push this branch.
I've rebased this branch over here: https://github.com/ArduPilot/ardupilot/pull/29541 - just resolved the conflicts.
I intend to merge that other PR once it passes CI. And then the MAVProxy one.
@peterbarker: Can I get you to review this again?
Apologies - missed this request.
I can't force-push this branch.
I've rebased this branch over here: #29541 - just resolved the conflicts.
I intend to merge that other PR once it passes CI. And then the MAVProxy one.
I've rebased this one if you want to merge this instead of the other branch.
Merged, thanks!