Hotfix: Fixed telemetry transmission of RC channels - we always sent one set too much - by lieron

This commit is contained in:
Lorenz Meier
2014-01-28 11:13:37 +01:00
parent 8149bf95fc
commit 19c3525f58
+1 -1
View File
@@ -352,7 +352,7 @@ l_input_rc(const struct listener *l)
const unsigned port_width = 8;
for (unsigned i = 0; (i * port_width) < (rc_raw.channel_count + port_width); i++) {
for (unsigned i = 0; (i * port_width) < rc_raw.channel_count; i++) {
/* Channels are sent in MAVLink main loop at a fixed interval */
mavlink_msg_rc_channels_raw_send(chan,
rc_raw.timestamp / 1000,