Arduino {code}racer API
... better know the details.
|
Functions | |
bool | CodeRacer::stopped_at_min_distance () |
Returns true if the racer was stopped at minimum distance. This set to false each time start_stop_at_min_distance() is called. More... | |
bool | CodeRacer::is_driving () |
Return true if the racer is driving - forward or backward. More... | |
unsigned long | CodeRacer::turn_left_for_ms () |
Returns the duration of time that is internally stored and used for turning the racer left. More... | |
unsigned long | CodeRacer::turn_right_for_ms () |
Returns the duration of time that is internally stored and used for turning the racer left. More... | |
void | CodeRacer::set_inactive () |
Sets the coderracer_active state to inactive. If start_stop() is used - the inactive mode will be entered. More... | |
void | CodeRacer::set_active () |
Sets the coderracer_active state to active. If start_stop() is used - the active mode will be entered. More... | |
bool | CodeRacer::is_active () |
Checks if coderracer_activ is set. More... | |
bool CodeRacer::stopped_at_min_distance | ( | ) |
Returns true if the racer was stopped at minimum distance. This set to false each time start_stop_at_min_distance() is called.
Definition at line 380 of file CodeRacer.cpp.
bool CodeRacer::is_driving | ( | ) |
Return true if the racer is driving - forward or backward.
Definition at line 387 of file CodeRacer.cpp.
unsigned long CodeRacer::turn_left_for_ms | ( | ) |
Returns the duration of time that is internally stored and used for turning the racer left.
Definition at line 394 of file CodeRacer.cpp.
unsigned long CodeRacer::turn_right_for_ms | ( | ) |
Returns the duration of time that is internally stored and used for turning the racer left.
Definition at line 401 of file CodeRacer.cpp.
void CodeRacer::set_inactive | ( | ) |
Sets the coderracer_active state to inactive. If start_stop() is used - the inactive mode will be entered.
Definition at line 408 of file CodeRacer.cpp.
void CodeRacer::set_active | ( | ) |
Sets the coderracer_active state to active. If start_stop() is used - the active mode will be entered.
Definition at line 415 of file CodeRacer.cpp.
bool CodeRacer::is_active | ( | ) |
Checks if coderracer_activ is set.
coderracer_activ is toggled each time the button is pressed. After power on coderracer_activ is set to False.
Definition at line 424 of file CodeRacer.cpp.