aboutsummaryrefslogtreecommitdiff
path: root/src/lib
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/lib
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/lib')
-rw-r--r--src/lib/conversion/rotation.cpp5
-rw-r--r--src/lib/rc/st24.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/conversion/rotation.cpp b/src/lib/conversion/rotation.cpp
index e17715733..3d3e13355 100644
--- a/src/lib/conversion/rotation.cpp
+++ b/src/lib/conversion/rotation.cpp
@@ -181,6 +181,11 @@ rotate_3f(enum Rotation rot, float &x, float &y, float &z)
x = tmp;
return;
}
+ case ROTATION_ROLL_270_YAW_270: {
+ // unimplemented
+ ASSERT(0 == 1);
+ return;
+ }
case ROTATION_PITCH_90: {
tmp = z; z = -x; x = tmp;
return;
diff --git a/src/lib/rc/st24.c b/src/lib/rc/st24.c
index e8a791b8f..5c53a1602 100644
--- a/src/lib/rc/st24.c
+++ b/src/lib/rc/st24.c
@@ -72,7 +72,7 @@ const char *decode_states[] = {"UNSYNCED",
#define ST24_SCALE_OFFSET (int)(ST24_TARGET_MIN - (ST24_SCALE_FACTOR * ST24_RANGE_MIN + 0.5f))
static enum ST24_DECODE_STATE _decode_state = ST24_DECODE_STATE_UNSYNCED;
-static unsigned _rxlen;
+static uint8_t _rxlen;
static ReceiverFcPacket _rxpacket;