SITL: correct AP_Terrain cast-align compilation failure on SITL_arm_linux_gnueabihf

This commit is contained in:
Peter Barker 2020-07-21 11:56:10 +10:00 committed by Peter Barker
parent 38e3d63fac
commit d298980969

View File

@ -82,7 +82,7 @@ Aircraft::Aircraft(const char *frame_str) :
sitl->ahrs_rotation_inv = sitl->ahrs_rotation.transposed();
}
terrain = reinterpret_cast<AP_Terrain *>(AP_Param::find_object("TERRAIN_"));
terrain = &AP::terrain();
}
void Aircraft::set_start_location(const Location &start_loc, const float start_yaw)