mirror of https://github.com/ArduPilot/ardupilot
AP_Mission: avoid the AP_AHRS cast
get_position() is now const
This commit is contained in:
parent
270bac4472
commit
8c6b875dcc
|
@ -1245,7 +1245,7 @@ uint16_t AP_Mission::num_commands_max(void) const
|
|||
bool AP_Mission::jump_to_landing_sequence() {
|
||||
struct Location current_loc;
|
||||
|
||||
if (! ((AP_AHRS&) _ahrs).get_position(current_loc)) {
|
||||
if (!_ahrs.get_position(current_loc)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue