ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

Typos in Nav controller

Open jason4short opened this issue 13 years ago • 3 comments

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);

}

jason4short avatar Apr 05 '13 04:04 jason4short

Didn't see you closed the other comment already, but there are two instances of this. So please check it. Jason

jason4short avatar Apr 05 '13 04:04 jason4short

Yes, found the other instance while fixing up the first. thanks again!

rmackay9 avatar Apr 05 '13 05:04 rmackay9

great thanks.

jason4short avatar Apr 05 '13 06:04 jason4short