Arduino {code}racer API
... better know the details.
|
Functions | |
void | CodeRacer::usonic_set_stop_distance_cm (unsigned long stop_distance_cm) |
Sets the stop distance in cm. More... | |
void | CodeRacer::usonic_set_stop_distance_us (unsigned long stop_distance_us) |
Sets the stop distance in cm. More... | |
unsigned long | CodeRacer::usonic_distance_us () |
Returns the last measured distance in microseconds. More... | |
unsigned long | CodeRacer::usonic_distance_cm () |
Returns the last measured distance in cm. More... | |
void CodeRacer::usonic_set_stop_distance_cm | ( | unsigned long | stop_distance_cm | ) |
Sets the stop distance in cm.
If start_stop_at_min_distance() is used and distance measured with one of the measurement methods - the racer will be stopped immediately. All except the singe shot methods of the ultra sonic measurements methods supports that. Internally the stop distance will be set as both - in cm and in microseconds.
stop_distance_cm | Distance in cm the racer will be stopped if that features was enabled by start_stop_at_min_distance() before. |
Definition at line 825 of file CodeRacer.cpp.
void CodeRacer::usonic_set_stop_distance_us | ( | unsigned long | stop_distance_us | ) |
Sets the stop distance in cm.
If start_stop_at_min_distance() is used and distance measured with one of the measurement methods - the racer will be stopped immediately. All except the singe shot methods of the ultra sonic measurements methods supports that. Internally the stop distance will be set as both - in cm and in microseconds.
stop_distance_us | Distance in cm the racer will be stopped if that features was enabled by start_stop_at_min_distance() before. |
Definition at line 837 of file CodeRacer.cpp.
unsigned long CodeRacer::usonic_distance_us | ( | ) |
Returns the last measured distance in microseconds.
Definition at line 845 of file CodeRacer.cpp.
unsigned long CodeRacer::usonic_distance_cm | ( | ) |
Returns the last measured distance in cm.
Definition at line 852 of file CodeRacer.cpp.