Fixed HIL joystick support

This commit is contained in:
Lorenz Meier
2012-10-02 22:28:14 +02:00
parent 6005077d54
commit 7ef4655b0e
3 changed files with 5 additions and 5 deletions
-2
View File
@@ -960,8 +960,6 @@ Sensors::ppm_poll()
/* Read out values from HRT */
for (unsigned int i = 0; i < channel_limit; i++) {
_rc.chan[i].raw = ppm_buffer[i];
/* Set the range to +-, then scale up */
_rc.chan[i].scale = (ppm_buffer[i] - _rc.chan[i].mid) * _rc.chan[i].scaling_factor * 10000;
/* scale around the mid point differently for lower and upper range */
if (ppm_buffer[i] > (_parameters.trim[i] + _parameters.dz[i])) {