code style, warnings

This commit is contained in:
Holger Steinhaus
2014-11-12 09:52:35 +01:00
parent 0800fa4715
commit 7bc9a62577
3 changed files with 19 additions and 22 deletions

View File

@@ -346,13 +346,12 @@ int UavcanNode::run()
// can we mix?
if (_test_in_progress) {
float outputs[NUM_ACTUATOR_OUTPUTS] = {};
outputs[_test_motor.motor_number] = _test_motor.value*2.0f-1.0f;
float test_outputs[NUM_ACTUATOR_OUTPUTS] = {};
test_outputs[_test_motor.motor_number] = _test_motor.value*2.0f-1.0f;
// Output to the bus
_esc_controller.update_outputs(outputs, NUM_ACTUATOR_OUTPUTS);
}
else if (controls_updated && (_mixers != nullptr)) {
_esc_controller.update_outputs(test_outputs, NUM_ACTUATOR_OUTPUTS);
} else if (controls_updated && (_mixers != nullptr)) {
// XXX one output group has 8 outputs max,
// but this driver could well serve multiple groups.