Skip to content

Commit

Permalink
AP_Mount: Update Tusuav backend 11.15_3
Browse files Browse the repository at this point in the history
  • Loading branch information
yi committed Nov 15, 2024
1 parent f6a311d commit d479b1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/AP_Mount/AP_Mount_Tusuav.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit d479b1f

Please sign in to comment.