mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-13 11:29:56 +03:00
return 99 satellites for logic condition on estimation
This commit is contained in:
parent
cdd299f045
commit
3040cd727b
1 changed files with 3 additions and 1 deletions
|
@ -663,7 +663,9 @@ static int logicConditionGetFlightOperandValue(int operand) {
|
|||
break;
|
||||
|
||||
case LOGIC_CONDITION_OPERAND_FLIGHT_GPS_SATS:
|
||||
if (getHwGPSStatus() == HW_SENSOR_UNAVAILABLE || getHwGPSStatus() == HW_SENSOR_UNHEALTHY) {
|
||||
if ( STATE(GPS_ESTIMATED_FIX) ){
|
||||
return gpsSol.numSat; //99
|
||||
} else if (getHwGPSStatus() == HW_SENSOR_UNAVAILABLE || getHwGPSStatus() == HW_SENSOR_UNHEALTHY) {
|
||||
return 0;
|
||||
} else {
|
||||
return gpsSol.numSat;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue