mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-24 16:01:53 +08:00
battery: make time remaining estimation dependent on level flight cha… (#22401)
* battery: make time remaining estimation dependent on level flight characteristis for FW * battery: fix that FW flight is also correctly detected when vehicle_status is not updated Signed-off-by: Silvan Fuhrer <silvan@auterion.com> * FixedwingPositionControl: Move constant to header file * flight phase estimation: use tecs height rate reference to check for level flight --------- Signed-off-by: Silvan Fuhrer <silvan@auterion.com> Co-authored-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
1 parent
bf52d8adc9
commit
3576d513cd
8 files changed
+60
-4
No files matched your search
@@ -0,0 +1,8 @@
|
||||
uint64 timestamp # time since system start (microseconds)
|
||||
|
||||
uint8 flight_phase # Estimate of current flight phase
|
||||
|
||||
uint8 FLIGHT_PHASE_UNKNOWN = 0 # vehicle flight phase is unknown
|
||||
uint8 FLIGHT_PHASE_LEVEL = 1 # Vehicle is in level flight
|
||||
uint8 FLIGHT_PHASE_DESCEND = 2 # vehicle is in descend
|
||||
uint8 FLIGHT_PHASE_CLIMB = 3 # vehicle is climbing
|
||||
Reference in new issue
Block a user