aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorLorenz Meier <lorenz@px4.io>2014-12-25 17:44:44 +0100
committerLorenz Meier <lorenz@px4.io>2014-12-25 17:44:44 +0100
commit6fae021a0091a6706b3cb0d4892b0f6891489dc2 (patch)
treeed59a4a917af445d42e9216f6b9a89d00bde5a8f /src/lib
parent4574c752c1e22eee779ee9d1a647ff9e9d5370b5 (diff)
parent5b600a815c13af56e879029196a24e544c110b97 (diff)
downloadpx4-firmware-6fae021a0091a6706b3cb0d4892b0f6891489dc2.tar.gz
px4-firmware-6fae021a0091a6706b3cb0d4892b0f6891489dc2.tar.bz2
px4-firmware-6fae021a0091a6706b3cb0d4892b0f6891489dc2.zip
Merge pull request #1527 from dagar/Werror
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..1fe36d395 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: {
+ tmp = z; z = -y; y = tmp;
+ tmp = x; x = y; y = -tmp;
+ 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;