Browse Source

AP_PiccoloCAN: Change from division to multiplication

apm_2208
murata 3 years ago committed by Andrew Tridgell
parent
commit
af3fbac118
  1. 2
      libraries/AP_PiccoloCAN/AP_PiccoloCAN.cpp

2
libraries/AP_PiccoloCAN/AP_PiccoloCAN.cpp

@ -337,7 +337,7 @@ void AP_PiccoloCAN::update() @@ -337,7 +337,7 @@ void AP_PiccoloCAN::update()
timestamp,
ii,
(float) servo.statusA.position, // Servo position (represented in microsecond units)
(float) servo.statusB.current / 100.0f, // Servo force (actually servo current, 0.01A per bit)
(float) servo.statusB.current * 0.01f, // Servo force (actually servo current, 0.01A per bit)
(float) servo.statusB.speed, // Servo speed (degrees per second)
(uint8_t) abs(servo.statusB.dutyCycle) // Servo duty cycle (absolute value as it can be +/- 100%)
);

Loading…
Cancel
Save