ardupilot
ardupilot copied to clipboard
Typos in Nav controller
loiter_lat_from_home_cm is repeated in multiple places where loiter_lon_from_home_cm should be used.
loiter_set_pos_from_velocity() and loiter_set_target()
public function loiter_set_target(lat_from_home_cm:Number, lon_from_home_cm:Number):void { loiter_lat_from_home_cm = lat_from_home_cm; loiter_lon_from_home_cm = lon_from_home_cm;
// update next_WP location for reporting purposes
set_next_WP_latlon(
home.lat + loiter_lat_from_home_cm / LATLON_TO_CM,
home.lng + loiter_lat_from_home_cm / LATLON_TO_CM * scaleLongUp);
}
Didn't see you closed the other comment already, but there are two instances of this. So please check it. Jason
Yes, found the other instance while fixing up the first. thanks again!
great thanks.