Rover: tidy sending of WATER_DEPTH messages

This commit is contained in:
Peter Barker 2023-10-27 18:28:08 +11:00 committed by Andrew Tridgell
parent 031e5b1dab
commit 84afe993d7

View File

@ -78,8 +78,10 @@ void Rover::Log_Write_Depth()
(double)(s->distance()),
temp_C);
}
#if AP_RANGEFINDER_ENABLED
// send water depth and temp to ground station
gcs().send_message(MSG_WATER_DEPTH);
#endif
}
// guided mode logging