Rename the FMU->IO output controls to reflect the fact that they are controls, not servo values.

This commit is contained in:
px4dev
2012-12-29 17:15:48 -08:00
parent b8250de1e6
commit 85375c2201
4 changed files with 6 additions and 7 deletions
+2 -2
View File
@@ -171,8 +171,8 @@ comms_handle_command(const void *buffer, size_t length)
irqstate_t flags = irqsave();
/* fetch new PWM output values */
for (unsigned i = 0; i < PX4IO_OUTPUT_CHANNELS; i++)
system_state.fmu_channel_data[i] = cmd->servo_command[i];
for (unsigned i = 0; i < PX4IO_CONTROL_CHANNELS; i++)
system_state.fmu_channel_data[i] = cmd->output_control[i];
/* if the IO is armed and the FMU gets disarmed, the IO must also disarm */
if (system_state.arm_ok && !cmd->arm_ok) {