mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 15:23:57 -04:00
AP_PiccoloCAN: Change from division to multiplication
This commit is contained in:
parent
4eca7383b8
commit
af3fbac118
@ -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…
Reference in New Issue
Block a user