Merge pull request #3030 from dronecrew/control-update

uORB/ control wrapper update
This commit is contained in:
Lorenz Meier
2015-10-22 00:22:58 +02:00
13 changed files with 314 additions and 222 deletions
+2 -2
View File
@@ -299,8 +299,8 @@ int RoboClaw::update()
// if new data, send to motors
if (_actuators.updated()) {
_actuators.update();
setMotorDutyCycle(MOTOR_1, _actuators.control[CH_VOLTAGE_LEFT]);
setMotorDutyCycle(MOTOR_2, _actuators.control[CH_VOLTAGE_RIGHT]);
setMotorDutyCycle(MOTOR_1, _actuators.get().control[CH_VOLTAGE_LEFT]);
setMotorDutyCycle(MOTOR_2, _actuators.get().control[CH_VOLTAGE_RIGHT]);
}
return 0;