aboutsummaryrefslogtreecommitdiff
path: root/src/modules/fixedwing_att_control/fixedwing_att_control_att.c
diff options
context:
space:
mode:
authorAnton Babushkin <anton.babushkin@me.com>2013-06-20 19:25:37 +0400
committerAnton Babushkin <anton.babushkin@me.com>2013-06-20 19:25:37 +0400
commit5cb1f4662fb28f68e539f2c8930c0f48ccea3521 (patch)
tree1a4fbf5d3022a8981b97e1d7102574705b841135 /src/modules/fixedwing_att_control/fixedwing_att_control_att.c
parent85b5da8078873a13a5fc0fd4ee3fe0a02917e87c (diff)
downloadpx4-firmware-5cb1f4662fb28f68e539f2c8930c0f48ccea3521.tar.gz
px4-firmware-5cb1f4662fb28f68e539f2c8930c0f48ccea3521.tar.bz2
px4-firmware-5cb1f4662fb28f68e539f2c8930c0f48ccea3521.zip
multirotor_attitude_control performance improved, tested in flight. PID library new functionality and bugfixes.
Diffstat (limited to 'src/modules/fixedwing_att_control/fixedwing_att_control_att.c')
-rw-r--r--src/modules/fixedwing_att_control/fixedwing_att_control_att.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/fixedwing_att_control/fixedwing_att_control_att.c b/src/modules/fixedwing_att_control/fixedwing_att_control_att.c
index 769b8b0a8..2aeca3a98 100644
--- a/src/modules/fixedwing_att_control/fixedwing_att_control_att.c
+++ b/src/modules/fixedwing_att_control/fixedwing_att_control_att.c
@@ -128,8 +128,8 @@ int fixedwing_att_control_attitude(const struct vehicle_attitude_setpoint_s *att
if (!initialized) {
parameters_init(&h);
parameters_update(&h, &p);
- pid_init(&roll_controller, p.roll_p, 0, 0, 0, p.rollrate_lim, PID_MODE_DERIVATIV_NONE); //P Controller
- pid_init(&pitch_controller, p.pitch_p, 0, 0, 0, p.pitchrate_lim, PID_MODE_DERIVATIV_NONE); //P Controller
+ pid_init(&roll_controller, p.roll_p, 0, 0, 0, p.rollrate_lim, PID_MODE_DERIVATIV_NONE, 0.0f); //P Controller
+ pid_init(&pitch_controller, p.pitch_p, 0, 0, 0, p.pitchrate_lim, PID_MODE_DERIVATIV_NONE, 0.0f); //P Controller
initialized = true;
}