mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
AP_Mount: Update Tusuav backend 11.15_3
This commit is contained in:
parent
f6a311d9b3
commit
d479b1fe4b
@ -503,7 +503,7 @@ void AP_Mount_Tusuav::send_time_sync()
|
|||||||
{
|
{
|
||||||
// get current location
|
// get current location
|
||||||
Location loc;
|
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)) {
|
if (!AP::ahrs().get_location(loc) || !loc.get_alt_cm(Location::AltFrame::ABSOLUTE, alt_amsl_cm)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -691,7 +691,7 @@ bool AP_Mount_Tusuav::send_m_ahrs()
|
|||||||
{
|
{
|
||||||
// get current location
|
// get current location
|
||||||
Location loc;
|
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)) {
|
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);
|
debug("tus ahrs fault:%d %d %d",(int)loc.lat,(int)loc.lng,(int)loc.alt);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user