mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_AHRS: use enum class for AltFrame enumeration
This commit is contained in:
parent
495111d67e
commit
3889c91974
@ -1044,7 +1044,7 @@ bool AP_AHRS_DCM::set_home(const Location &loc)
|
||||
// accessed directly by the vehicles and they may not be rigorous
|
||||
// in checking the frame type.
|
||||
Location tmp = loc;
|
||||
if (!tmp.change_alt_frame(Location::ALT_FRAME_ABSOLUTE)) {
|
||||
if (!tmp.change_alt_frame(Location::AltFrame::ABSOLUTE)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user