Skip to content

Commit 642f09f

Browse files
committed
adding comment
1 parent 1c05dba commit 642f09f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/modules/simulation/gz_bridge/GZMixingInterfaceServo.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ bool GZMixingInterfaceServo::updateOutputs(bool stop_motors, uint16_t outputs[MA
6464
for (auto &servo_pub : _servos_pub) {
6565
if (_mixing_output.isFunctionSet(i)) {
6666
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.
6769
double output = math::radians((double)outputs[i] / 10. - 180.);
6870

6971
// std::cout << "outputs[" << i << "]: " << outputs[i] << std::endl;

0 commit comments

Comments
 (0)