We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c05dba commit 642f09fCopy full SHA for 642f09f
src/modules/simulation/gz_bridge/GZMixingInterfaceServo.cpp
@@ -64,6 +64,8 @@ bool GZMixingInterfaceServo::updateOutputs(bool stop_motors, uint16_t outputs[MA
64
for (auto &servo_pub : _servos_pub) {
65
if (_mixing_output.isFunctionSet(i)) {
66
gz::msgs::Double servo_output;
67
+ // Servo output represents values in the range [0, 3600]
68
+ // with an offset of 180 deg, and a scaling of 10.
69
double output = math::radians((double)outputs[i] / 10. - 180.);
70
71
// std::cout << "outputs[" << i << "]: " << outputs[i] << std::endl;
0 commit comments