diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2014-03-04 00:48:20 +0400 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2014-03-04 00:48:20 +0400 |
commit | 14ddf1804aa9d698724fda62288b210fd850d2ac (patch) | |
tree | 01a215d023b4fb5ffbae4d02dcbcbed5b849bad2 /src/modules/mavlink | |
parent | d634f7942297931553b9852ef6917ebd9ac4e322 (diff) | |
download | px4-firmware-14ddf1804aa9d698724fda62288b210fd850d2ac.tar.gz px4-firmware-14ddf1804aa9d698724fda62288b210fd850d2ac.tar.bz2 px4-firmware-14ddf1804aa9d698724fda62288b210fd850d2ac.zip |
mavlink: code style fixed
Diffstat (limited to 'src/modules/mavlink')
-rw-r--r-- | src/modules/mavlink/mavlink_messages.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/mavlink/mavlink_messages.cpp b/src/modules/mavlink/mavlink_messages.cpp index c22289772..d4c77d1fd 100644 --- a/src/modules/mavlink/mavlink_messages.cpp +++ b/src/modules/mavlink/mavlink_messages.cpp @@ -780,6 +780,7 @@ protected: /* set number of valid outputs depending on vehicle type */ unsigned n; + switch (mavlink_system.type) { case MAV_TYPE_QUADROTOR: n = 4; @@ -807,6 +808,7 @@ protected: /* send 0 when disarmed */ out[i] = 0.0f; } + } else { out[i] = -1.0f; } |