aboutsummaryrefslogtreecommitdiff
path: root/src/modules/commander/rc_calibration.cpp
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-05-12 09:21:27 +0200
committerThomas Gubler <thomasgubler@gmail.com>2014-05-12 09:21:39 +0200
commitcde4c9addbe2e8ccd782c53daf519fcf9669626a (patch)
treeb5f0e7acbb96614073dbfc4f26156a38caf37303 /src/modules/commander/rc_calibration.cpp
parentd9333a199354c0dfbe742cf396a90dc064cc5195 (diff)
downloadpx4-firmware-cde4c9addbe2e8ccd782c53daf519fcf9669626a.tar.gz
px4-firmware-cde4c9addbe2e8ccd782c53daf519fcf9669626a.tar.bz2
px4-firmware-cde4c9addbe2e8ccd782c53daf519fcf9669626a.zip
commander: use new manual control setpoint variable names
Diffstat (limited to 'src/modules/commander/rc_calibration.cpp')
-rw-r--r--src/modules/commander/rc_calibration.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/commander/rc_calibration.cpp b/src/modules/commander/rc_calibration.cpp
index 41f3ca0aa..0776894fb 100644
--- a/src/modules/commander/rc_calibration.cpp
+++ b/src/modules/commander/rc_calibration.cpp
@@ -69,11 +69,11 @@ int do_trim_calibration(int mavlink_fd)
orb_copy(ORB_ID(manual_control_setpoint), sub_man, &sp);
/* set parameters */
- float p = sp.roll;
+ float p = sp.y;
param_set(param_find("TRIM_ROLL"), &p);
- p = sp.pitch;
+ p = sp.x;
param_set(param_find("TRIM_PITCH"), &p);
- p = sp.yaw;
+ p = sp.r;
param_set(param_find("TRIM_YAW"), &p);
/* store to permanent storage */