Plane: altitude for do_set_home() is in meters
This commit is contained in:
parent
9cf1fd46c8
commit
eb7db82210
@ -608,7 +608,7 @@ static void do_set_home()
|
|||||||
if (next_nonnav_command.p1 == 1 && g_gps->status() == GPS::GPS_OK_FIX_3D) {
|
if (next_nonnav_command.p1 == 1 && g_gps->status() == GPS::GPS_OK_FIX_3D) {
|
||||||
init_home();
|
init_home();
|
||||||
} else {
|
} else {
|
||||||
ahrs.set_home(next_nonnav_command.lat, next_nonnav_command.lng, next_nonnav_command.alt);
|
ahrs.set_home(next_nonnav_command.lat, next_nonnav_command.lng, next_nonnav_command.alt*100.0f);
|
||||||
home_is_set = true;
|
home_is_set = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user