mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
Rover: DPTH messages logged even with no position
This commit is contained in:
parent
09718a0f11
commit
b8b1a7270c
@ -46,9 +46,7 @@ void Rover::Log_Write_Depth()
|
|||||||
|
|
||||||
// get position
|
// get position
|
||||||
Location loc;
|
Location loc;
|
||||||
if (!ahrs.get_position(loc)) {
|
IGNORE_RETURN(ahrs.get_position(loc));
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// check if new sensor reading has arrived
|
// check if new sensor reading has arrived
|
||||||
uint32_t reading_ms = rangefinder.last_reading_ms(ROTATION_PITCH_270);
|
uint32_t reading_ms = rangefinder.last_reading_ms(ROTATION_PITCH_270);
|
||||||
|
Loading…
Reference in New Issue
Block a user