AP_Scripting: changed MAV_SEVERITY_EMERGENCY to INFO for origin set

This commit is contained in:
khanasif786 2022-05-12 00:22:43 +05:30 committed by Randy Mackay
parent adfb2f9cad
commit 53f931c98d
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ function update ()
location = Location() location:lat(-353632640) location:lng(1491652352) location:alt(58409) location = Location() location:lat(-353632640) location:lng(1491652352) location:alt(58409)
if ahrs:set_origin(location) then if ahrs:set_origin(location) then
gcs:send_text(0, string.format("Origin Set - Lat:%.7f Long:%.7f Alt:%.1f", location:lat()/10000000, location:lng()/10000000, location:alt()/100)) gcs:send_text(6, string.format("Origin Set - Lat:%.7f Long:%.7f Alt:%.1f", location:lat()/10000000, location:lng()/10000000, location:alt()/100))
else else
gcs:send_text(0, "Refused to set EKF origin") gcs:send_text(0, "Refused to set EKF origin")
end end