mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
SITL: use enum class for AltFrame enumeration
This commit is contained in:
parent
22c0175d7f
commit
4c9651dbfd
@ -129,7 +129,7 @@ void SIM_Precland::update(const Location &loc, const Vector3f &position)
|
||||
const Location origin_center(static_cast<int32_t>(_origin_lat * 1.0e7f),
|
||||
static_cast<int32_t>(_origin_lon * 1.0e7f),
|
||||
static_cast<int32_t>(_origin_height),
|
||||
Location::ALT_FRAME_ABOVE_HOME);
|
||||
Location::AltFrame::ABOVE_HOME);
|
||||
Vector2f center;
|
||||
origin_center.get_vector_xy_from_origin_NE(center);
|
||||
center = center * 0.01f; // cm to m
|
||||
|
Loading…
Reference in New Issue
Block a user