File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
flight/modules/UAVOHottBridge Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -658,8 +658,9 @@ void update_telemetrydata()
658
658
// calculate altitude relative to start position
659
659
telestate -> altitude = - telestate -> Position .Down ;
660
660
661
- // check and set min/max values when armed.
662
- if (telestate -> FlightStatus .Armed == FLIGHTSTATUS_ARMED_ARMED ) {
661
+ // check and set min/max values when armed
662
+ // and without receiver input for standalone board used as sensor
663
+ if ((telestate -> FlightStatus .Armed == FLIGHTSTATUS_ARMED_ARMED ) || ((telestate -> SysAlarms .Alarm .Attitude == SYSTEMALARMS_ALARM_OK ) && (telestate -> SysAlarms .Alarm .Receiver != SYSTEMALARMS_ALARM_OK ))) {
663
664
if (telestate -> min_altitude > telestate -> altitude ) {
664
665
telestate -> min_altitude = telestate -> altitude ;
665
666
}
You can’t perform that action at this time.
0 commit comments