AP_Mission: avoid the AP_AHRS cast

get_position() is now const
This commit is contained in:
Andrew Tridgell 2014-10-18 12:14:55 +11:00
parent 270bac4472
commit 8c6b875dcc
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}