Browse Source

Plane: fixed variable misspelling

master
Tom Pittenger 9 years ago
parent
commit
f83a6ca1ff
  1. 4
      ArduPlane/quadplane.cpp
  2. 2
      ArduPlane/quadplane.h

4
ArduPlane/quadplane.cpp

@ -1678,7 +1678,7 @@ int8_t QuadPlane::forward_throttle_pct(void) @@ -1678,7 +1678,7 @@ int8_t QuadPlane::forward_throttle_pct(void)
return 0;
}
float deltat = (AP_HAL::millis() - vel_forward.lastt_ms) * 0.001f;
float deltat = (AP_HAL::millis() - vel_forward.last_ms) * 0.001f;
if (deltat > 1 || deltat < 0) {
vel_forward.integrator = 0;
deltat = 0.1;
@ -1687,7 +1687,7 @@ int8_t QuadPlane::forward_throttle_pct(void) @@ -1687,7 +1687,7 @@ int8_t QuadPlane::forward_throttle_pct(void)
// run at 10Hz
return vel_forward.last_pct;
}
vel_forward.lastt_ms = AP_HAL::millis();
vel_forward.last_ms = AP_HAL::millis();
// work out the desired speed in forward direction
const Vector3f &desired_velocity_cms = pos_control->get_desired_velocity();

2
ArduPlane/quadplane.h

@ -227,7 +227,7 @@ private: @@ -227,7 +227,7 @@ private:
struct {
AP_Float gain;
float integrator;
uint32_t lastt_ms;
uint32_t last_ms;
int8_t last_pct;
} vel_forward;

Loading…
Cancel
Save