mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-03 04:03:59 -04:00
Plane: fixed variable misspelling
This commit is contained in:
parent
978a89efa6
commit
f83a6ca1ff
@ -1678,7 +1678,7 @@ int8_t QuadPlane::forward_throttle_pct(void)
|
|||||||
return 0;
|
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) {
|
if (deltat > 1 || deltat < 0) {
|
||||||
vel_forward.integrator = 0;
|
vel_forward.integrator = 0;
|
||||||
deltat = 0.1;
|
deltat = 0.1;
|
||||||
@ -1687,7 +1687,7 @@ int8_t QuadPlane::forward_throttle_pct(void)
|
|||||||
// run at 10Hz
|
// run at 10Hz
|
||||||
return vel_forward.last_pct;
|
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
|
// work out the desired speed in forward direction
|
||||||
const Vector3f &desired_velocity_cms = pos_control->get_desired_velocity();
|
const Vector3f &desired_velocity_cms = pos_control->get_desired_velocity();
|
||||||
|
@ -227,7 +227,7 @@ private:
|
|||||||
struct {
|
struct {
|
||||||
AP_Float gain;
|
AP_Float gain;
|
||||||
float integrator;
|
float integrator;
|
||||||
uint32_t lastt_ms;
|
uint32_t last_ms;
|
||||||
int8_t last_pct;
|
int8_t last_pct;
|
||||||
} vel_forward;
|
} vel_forward;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user