mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-14 03:49:58 +03:00
Merge pull request #6610 from iNavFlight/dzikuvx-dji-configurable-speed-source
Allow to configure speed source for DJI OSD
This commit is contained in:
commit
f77c8e55ee
8 changed files with 55 additions and 18 deletions
|
@ -44,6 +44,7 @@
|
|||
#include "flight/imu.h"
|
||||
#include "flight/pid.h"
|
||||
#include "drivers/io_port_expander.h"
|
||||
#include "io/osd_common.h"
|
||||
|
||||
#include "navigation/navigation.h"
|
||||
#include "navigation/navigation_private.h"
|
||||
|
@ -408,7 +409,7 @@ static int logicConditionGetFlightOperandValue(int operand) {
|
|||
|
||||
//FIXME align with osdGet3DSpeed
|
||||
case LOGIC_CONDITION_OPERAND_FLIGHT_3D_SPEED: // cm/s
|
||||
return (int) sqrtf(sq(gpsSol.groundSpeed) + sq((int)getEstimatedActualVelocity(Z)));
|
||||
return osdGet3DSpeed();
|
||||
break;
|
||||
|
||||
case LOGIC_CONDITION_OPERAND_FLIGHT_AIR_SPEED: // cm/s
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue