Browse Source

Rover: DPTH messages logged even with no position

c415-sdk
Randy Mackay 4 years ago committed by Andrew Tridgell
parent
commit
b8b1a7270c
  1. 4
      Rover/Log.cpp

4
Rover/Log.cpp

@ -46,9 +46,7 @@ void Rover::Log_Write_Depth() @@ -46,9 +46,7 @@ void Rover::Log_Write_Depth()
// get position
Location loc;
if (!ahrs.get_position(loc)) {
return;
}
IGNORE_RETURN(ahrs.get_position(loc));
// check if new sensor reading has arrived
uint32_t reading_ms = rangefinder.last_reading_ms(ROTATION_PITCH_270);

Loading…
Cancel
Save