AP_Mount: Update Tusuav backend 11.15_3

This commit is contained in:
yi 2024-11-15 18:28:46 +08:00
parent f6a311d9b3
commit d479b1fe4b
1 changed files with 2 additions and 2 deletions

View File

@ -503,7 +503,7 @@ void AP_Mount_Tusuav::send_time_sync()
{
// get current location
Location loc;
int32_t alt_amsl_cm;
int32_t alt_amsl_cm = 0;
if (!AP::ahrs().get_location(loc) || !loc.get_alt_cm(Location::AltFrame::ABSOLUTE, alt_amsl_cm)) {
return;
}
@ -691,7 +691,7 @@ bool AP_Mount_Tusuav::send_m_ahrs()
{
// get current location
Location loc;
int32_t alt_amsl_cm;
int32_t alt_amsl_cm = 0;
if (!AP::ahrs().get_location(loc) || !loc.get_alt_cm(Location::AltFrame::ABSOLUTE, alt_amsl_cm)) {
debug("tus ahrs fault:%d %d %d",(int)loc.lat,(int)loc.lng,(int)loc.alt);