Arduino {code}racer API
... better know the details.

Functions

uint8_t CodeRacer::servo_position ()
 Get the actual position of the servo. More...
 
unsigned long CodeRacer::servo_position_set_at_ms ()
 Get the system time in ms the servo was set to the actual position. More...
 
unsigned long CodeRacer::servo_position_eta_in_ms ()
 Get the system time in ms the servo will reach its position This is an estimated time. If this is a time in the future, the servo may still moving. If this is a time in the past , the servo should have reached its postion already. More...
 

Detailed Description

Function Documentation

◆ servo_position()

uint8_t CodeRacer::servo_position ( )

Get the actual position of the servo.

Returns
Actual position of the servo

Definition at line 632 of file CodeRacer.cpp.

632  {
633  return(_servo_position);
634 }

◆ servo_position_set_at_ms()

unsigned long CodeRacer::servo_position_set_at_ms ( )

Get the system time in ms the servo was set to the actual position.

Returns
System time in ms the servo was set

Definition at line 639 of file CodeRacer.cpp.

639  {
640  return(_servo_position_set_at_ms);
641 }

◆ servo_position_eta_in_ms()

unsigned long CodeRacer::servo_position_eta_in_ms ( )

Get the system time in ms the servo will reach its position This is an estimated time. If this is a time in the future, the servo may still moving. If this is a time in the past , the servo should have reached its postion already.

Returns
System time in ms the servo will reach its position

Definition at line 649 of file CodeRacer.cpp.

649  {
650  return(_servo_position_eta_in_ms);
651 }