Browse Source

Copter: minor typo in do_change_speed processing

It is unlikely that the "f" at the end of the 100 is required to
maintain the full precision of the target speed but added just in case
master
Randy Mackay 11 years ago
parent
commit
a3573f9ebd
  1. 2
      ArduCopter/commands_logic.pde

2
ArduCopter/commands_logic.pde

@ -629,7 +629,7 @@ static bool do_guided(const AP_Mission::Mission_Command& cmd) @@ -629,7 +629,7 @@ static bool do_guided(const AP_Mission::Mission_Command& cmd)
static void do_change_speed(const AP_Mission::Mission_Command& cmd)
{
wp_nav.set_horizontal_velocity(cmd.content.speed.target_ms * 100);
wp_nav.set_horizontal_velocity(cmd.content.speed.target_ms * 100.0f);
}
static void do_set_home(const AP_Mission::Mission_Command& cmd)

Loading…
Cancel
Save