aboutsummaryrefslogtreecommitdiff
path: root/apps/examples/kalman_demo/KalmanNav.hpp
diff options
context:
space:
mode:
authorJames Goppert <james.goppert@gmail.com>2013-01-15 12:17:09 -0500
committerJames Goppert <james.goppert@gmail.com>2013-01-15 12:17:09 -0500
commit022c30ea4f8355799b8ef25d8fb31037df527bb9 (patch)
tree7aef27a731528e1c8b9cf1fbbac432f106264645 /apps/examples/kalman_demo/KalmanNav.hpp
parent281372ef3ad14d61eb720ddbe05e701e82aabad0 (diff)
downloadpx4-firmware-022c30ea4f8355799b8ef25d8fb31037df527bb9.tar.gz
px4-firmware-022c30ea4f8355799b8ef25d8fb31037df527bb9.tar.bz2
px4-firmware-022c30ea4f8355799b8ef25d8fb31037df527bb9.zip
Enabled kf to run w/o gps.
Diffstat (limited to 'apps/examples/kalman_demo/KalmanNav.hpp')
-rw-r--r--apps/examples/kalman_demo/KalmanNav.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/examples/kalman_demo/KalmanNav.hpp b/apps/examples/kalman_demo/KalmanNav.hpp
index af4588e20..ba3756f46 100644
--- a/apps/examples/kalman_demo/KalmanNav.hpp
+++ b/apps/examples/kalman_demo/KalmanNav.hpp
@@ -159,6 +159,8 @@ protected:
control::BlockParam<float> _rAccel; /**< accelerometer measurement noise */
control::BlockParam<float> _magDip; /**< magnetic inclination with level */
control::BlockParam<float> _magDec; /**< magnetic declination, clockwise rotation */
+ // status
+ bool _positionInitialized; /**< status, if position has been init. */
// accessors
int32_t getLatDegE7() { return int32_t(lat * 1.0e7 * M_RAD_TO_DEG); }
void setLatDegE7(int32_t val) { lat = val / 1.0e7 / M_RAD_TO_DEG; }