We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0091d6d commit 27dd79bCopy full SHA for 27dd79b
src/renesas/Servo.cpp
@@ -84,7 +84,7 @@ static int servo_timer_config(uint32_t period_us)
84
servo_timer.stop();
85
// Read the timer's period count.
86
servo_ticks_per_cycle = servo_timer.get_period_raw();
87
- min_servo_cycle_low = usToticks(MIN_CYCLE_OFF_US);
+ min_servo_cycle_low = us_to_ticks(SERVO_MIN_CYCLE_OFF_US);
88
89
configured = true;
90
}
@@ -255,7 +255,7 @@ void Servo::writeMicroseconds(int us)
255
if (servoIndex != SERVO_INVALID_INDEX) {
256
ra_servo_t *servo = &ra_servos[servoIndex];
257
servo->period_us = constrain(us, servo->period_min, servo->period_max);
258
- servo->period_ticks = usToticks(servo->period_us);
+ servo->period_ticks = us_to_ticks(servo->period_us);
259
260
261
0 commit comments