Quite flyable state

This commit is contained in:
Lorenz Meier
2012-09-12 18:50:24 +02:00
parent e4c3a44751
commit 47c96d3d12
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -958,7 +958,7 @@ Sensors::ppm_poll()
_ppm_last_valid = ppm_last_valid_decode;
/* Read out values from HRT */
for (unsigned int i = 0; channel_limit; i++) {
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;