aboutsummaryrefslogtreecommitdiff
path: root/src/modules/attitude_estimator_ekf
diff options
context:
space:
mode:
authorDaniel Agar <daniel@agar.ca>2014-12-22 17:09:43 -0500
committerDaniel Agar <daniel@agar.ca>2014-12-22 17:56:59 -0500
commitd511e39ea7a3f1e0cb672b14598e18a7df18156a (patch)
tree1c2994b2cc65558bd469b111ffd92eafa5460f15 /src/modules/attitude_estimator_ekf
parentd54b46355ce0f8c128a5e7fce94564c7cb338987 (diff)
downloadpx4-firmware-d511e39ea7a3f1e0cb672b14598e18a7df18156a.tar.gz
px4-firmware-d511e39ea7a3f1e0cb672b14598e18a7df18156a.tar.bz2
px4-firmware-d511e39ea7a3f1e0cb672b14598e18a7df18156a.zip
turn on -Werror and fix resulting errors
Diffstat (limited to 'src/modules/attitude_estimator_ekf')
-rwxr-xr-xsrc/modules/attitude_estimator_ekf/attitude_estimator_ekf_main.cpp5
-rw-r--r--src/modules/attitude_estimator_ekf/module.mk5
2 files changed, 8 insertions, 2 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 6068ab082..a9205b6fd 100755
--- a/src/modules/attitude_estimator_ekf/attitude_estimator_ekf_main.cpp
+++ b/src/modules/attitude_estimator_ekf/attitude_estimator_ekf_main.cpp
@@ -134,7 +134,7 @@ int attitude_estimator_ekf_main(int argc, char *argv[])
SCHED_PRIORITY_MAX - 5,
7200,
attitude_estimator_ekf_thread_main,
- (argv) ? (const char **)&argv[2] : (const char **)NULL);
+ (argv) ? (char * const *)&argv[2] : (char * const *)NULL);
exit(0);
}
@@ -275,7 +275,8 @@ const unsigned int loop_interval_alarm = 6500; // loop interval in microseconds
/* keep track of sensor updates */
uint64_t sensor_last_timestamp[3] = {0, 0, 0};
- struct attitude_estimator_ekf_params ekf_params = { 0 };
+ struct attitude_estimator_ekf_params ekf_params;
+ memset(&ekf_params, 0, sizeof(ekf_params));
struct attitude_estimator_ekf_param_handles ekf_param_handles = { 0 };
diff --git a/src/modules/attitude_estimator_ekf/module.mk b/src/modules/attitude_estimator_ekf/module.mk
index 749b0a91c..c4bf34229 100644
--- a/src/modules/attitude_estimator_ekf/module.mk
+++ b/src/modules/attitude_estimator_ekf/module.mk
@@ -42,3 +42,8 @@ SRCS = attitude_estimator_ekf_main.cpp \
codegen/AttitudeEKF.c
MODULE_STACKSIZE = 1200
+
+EXTRACFLAGS = -Wno-float-equal -Wno-error
+
+EXTRACXXFLAGS = -Wno-error
+