aboutsummaryrefslogtreecommitdiff
path: root/src/modules/attitude_estimator_ekf
diff options
context:
space:
mode:
authorAnton Babushkin <anton.babushkin@me.com>2014-01-24 00:06:10 +0100
committerAnton Babushkin <anton.babushkin@me.com>2014-01-24 00:06:10 +0100
commit58792c5ca6e42bc251dd3c92b0e79217ff5d5403 (patch)
treeea46289f1159857c26ea40f71674a3bbb06cec8e /src/modules/attitude_estimator_ekf
parentb3d98e4a19662af44432a0436a1b5de7fb9649c9 (diff)
downloadpx4-firmware-58792c5ca6e42bc251dd3c92b0e79217ff5d5403.tar.gz
px4-firmware-58792c5ca6e42bc251dd3c92b0e79217ff5d5403.tar.bz2
px4-firmware-58792c5ca6e42bc251dd3c92b0e79217ff5d5403.zip
Use double for lat/lon in vehicle_global_position topic, use filed names lat, lon, alt, vel_n, vel_e, vel_d for global positions
Diffstat (limited to 'src/modules/attitude_estimator_ekf')
-rwxr-xr-xsrc/modules/attitude_estimator_ekf/attitude_estimator_ekf_main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/attitude_estimator_ekf/attitude_estimator_ekf_main.cpp b/src/modules/attitude_estimator_ekf/attitude_estimator_ekf_main.cpp
index 6a1bec153..66ec20b95 100755
--- a/src/modules/attitude_estimator_ekf/attitude_estimator_ekf_main.cpp
+++ b/src/modules/attitude_estimator_ekf/attitude_estimator_ekf_main.cpp
@@ -414,9 +414,9 @@ const unsigned int loop_interval_alarm = 6500; // loop interval in microseconds
vel_valid = true;
if (global_pos_updated) {
vel_t = global_pos.timestamp;
- vel(0) = global_pos.vx;
- vel(1) = global_pos.vy;
- vel(2) = global_pos.vz;
+ vel(0) = global_pos.vel_n;
+ vel(1) = global_pos.vel_e;
+ vel(2) = global_pos.vel_d;
}
}