diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-10-02 22:28:14 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-10-02 22:28:14 +0200 |
commit | 7ef4655b0e1a186f55c41375bd34133a6f8cde58 (patch) | |
tree | a872984278619156528a9bc84f215e254d4fc68a /apps/uORB/topics | |
parent | 6005077d54e6b96a5284752eedbd026ef7952341 (diff) | |
download | px4-firmware-7ef4655b0e1a186f55c41375bd34133a6f8cde58.tar.gz px4-firmware-7ef4655b0e1a186f55c41375bd34133a6f8cde58.tar.bz2 px4-firmware-7ef4655b0e1a186f55c41375bd34133a6f8cde58.zip |
Fixed HIL joystick support
Diffstat (limited to 'apps/uORB/topics')
-rw-r--r-- | apps/uORB/topics/rc_channels.h | 5 |
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]; |