Skip to content

Commit

Permalink
adding comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Perrrewi committed Dec 4, 2024
1 parent 1c05dba commit 0c60b0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/simulation/gz_bridge/GZMixingInterfaceServo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ bool GZMixingInterfaceServo::updateOutputs(bool stop_motors, uint16_t outputs[MA
for (auto &servo_pub : _servos_pub) {
if (_mixing_output.isFunctionSet(i)) {
gz::msgs::Double servo_output;
// Servo output represents angles [-180,180] deg
// with an offset of 180 deg, and a scaling of 10.
double output = math::radians((double)outputs[i] / 10. - 180.);

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

0 comments on commit 0c60b0b

Please sign in to comment.