aboutsummaryrefslogtreecommitdiff
path: root/apps/uORB/topics/rc_channels.h
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2012-10-02 22:28:14 +0200
committerLorenz Meier <lm@inf.ethz.ch>2012-10-02 22:28:14 +0200
commit7ef4655b0e1a186f55c41375bd34133a6f8cde58 (patch)
treea872984278619156528a9bc84f215e254d4fc68a /apps/uORB/topics/rc_channels.h
parent6005077d54e6b96a5284752eedbd026ef7952341 (diff)
downloadpx4-firmware-7ef4655b0e1a186f55c41375bd34133a6f8cde58.tar.gz
px4-firmware-7ef4655b0e1a186f55c41375bd34133a6f8cde58.tar.bz2
px4-firmware-7ef4655b0e1a186f55c41375bd34133a6f8cde58.zip
Fixed HIL joystick support
Diffstat (limited to 'apps/uORB/topics/rc_channels.h')
-rw-r--r--apps/uORB/topics/rc_channels.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/uORB/topics/rc_channels.h b/apps/uORB/topics/rc_channels.h
index e34376e82..2c487cf3b 100644
--- a/apps/uORB/topics/rc_channels.h
+++ b/apps/uORB/topics/rc_channels.h
@@ -86,10 +86,9 @@ struct rc_channels_s {
uint64_t timestamp_last_valid; /**< timestamp of last valid RC signal. */
struct {
uint16_t mid; /**< midpoint (0). */
- float scaling_factor; /**< scaling factor from raw counts to 0..1 */
+ float scaling_factor; /**< scaling factor from raw counts to -1..+1 */
uint16_t raw; /**< current raw value */
- int16_t scale;
- float scaled; /**< Scaled */
+ float scaled; /**< Scaled to -1..1 (throttle: 0..1) */
uint16_t override;
enum RC_CHANNELS_STATUS status; /**< status of the channel */
} chan[RC_CHANNELS_FUNCTION_MAX];