Arduino {code}racer API
... better know the details.
|
Functions | |
unsigned long | CodeRacer::usonic_measure_cm () |
Measures the distance to the next object in front of the ultra sonic sensor in cm. More... | |
unsigned long | CodeRacer::usonic_measure_us () |
Measures the distance to the next object in front of the ultra sonic sensor in microseconds. More... | |
unsigned long | CodeRacer::usonic_measure_cm (unsigned long max_echo_run_time_us) |
Measures the distance to the next object in front of the ultra sonic sensor in cm. More... | |
unsigned long | CodeRacer::usonic_measure_us (unsigned long max_echo_run_time_us) |
Measures the distance to the next object in front of the ultra sonic sensor in microseconds. More... | |
unsigned long | CodeRacer::usonic_measure_single_shot_cm () |
Measures the distance to the next object in front of the ultra sonic sensor in cm. More... | |
unsigned long | CodeRacer::usonic_measure_single_shot_us () |
Measures the distance to the next object in front of the ultra sonic sensor in microseconds. More... | |
unsigned long | CodeRacer::usonic_measure_single_shot_cm (unsigned long max_echo_run_time_us) |
Measures the distance to the next object in front of the ultra sonic sensor in cm. More... | |
unsigned long | CodeRacer::usonic_measure_single_shot_us (unsigned long max_echo_run_time_us) |
Measures the distance to the next object in front of the ultra sonic sensor in microseconds. More... | |
unsigned long CodeRacer::usonic_measure_cm | ( | ) |
Measures the distance to the next object in front of the ultra sonic sensor in cm.
This is the medium one out of 3 measurements. The maximum measured distance is about 100cm and defined by the US_MAX_ECHO_TIME_US setting in the header file.
Definition at line 672 of file CodeRacer.cpp.
unsigned long CodeRacer::usonic_measure_us | ( | ) |
Measures the distance to the next object in front of the ultra sonic sensor in microseconds.
This is the medium one out of 3 measurements. The maximum measured distance is about 6000 microseconds and defined by the US_MAX_ECHO_TIME_US setting in the header file.
Definition at line 682 of file CodeRacer.cpp.
unsigned long CodeRacer::usonic_measure_cm | ( | unsigned long | max_echo_run_time_us | ) |
Measures the distance to the next object in front of the ultra sonic sensor in cm.
This is the medium one out of 3 measurements. Be careful with high values for max_echo_run_time_us - this may increase run time due to the fact that if there is nothing in range of the sensor it will wait until this specified run time of the echo is over. The maximum range the sensor is specified for is about 300cm.
max_echo_run_time_us | Defines the maximum echo run time and by that the maximum of distance that can be measured. |
Definition at line 694 of file CodeRacer.cpp.
unsigned long CodeRacer::usonic_measure_us | ( | unsigned long | max_echo_run_time_us | ) |
Measures the distance to the next object in front of the ultra sonic sensor in microseconds.
This is the medium one out of 3 measurements. Be careful with high values for max_echo_run_time_us - this may increase run time due to the fact that if there is nothing in range of the sensor it will wait until this specified run time of the echo is over. The maximum range the sensor is specified for is about 300cm.
max_echo_run_time_us | Defines the maximum echo run time in microseconds and by that the maximum of distance that can be measured. |
Definition at line 711 of file CodeRacer.cpp.
unsigned long CodeRacer::usonic_measure_single_shot_cm | ( | ) |
Measures the distance to the next object in front of the ultra sonic sensor in cm.
This is a one shot measurement. The maximum measured distance is about 6000 microseconds and defined by the US_MAX_ECHO_TIME_US setting in the header file.
Definition at line 748 of file CodeRacer.cpp.
unsigned long CodeRacer::usonic_measure_single_shot_us | ( | ) |
Measures the distance to the next object in front of the ultra sonic sensor in microseconds.
This is a one shot measurement. The maximum measured distance is about 6000 microseconds and defined by the US_MAX_ECHO_TIME_US setting in the header file.
Definition at line 758 of file CodeRacer.cpp.
unsigned long CodeRacer::usonic_measure_single_shot_cm | ( | unsigned long | max_echo_run_time_us | ) |
Measures the distance to the next object in front of the ultra sonic sensor in cm.
This is a one shot measurement. Be careful with high values for max_echo_run_time_us - this may increase run time due to the fact that if there is nothing in range of the sensor it will wait until this specified run time of the echo is over. The maximum range the sensor is specified for is about 300cm.
max_echo_run_time_us | Defines the maximum echo run time in microseconds and by that the maximum of distance that can be measured. |
Definition at line 770 of file CodeRacer.cpp.
unsigned long CodeRacer::usonic_measure_single_shot_us | ( | unsigned long | max_echo_run_time_us | ) |
Measures the distance to the next object in front of the ultra sonic sensor in microseconds.
This is a one shot measurement. Be careful with high values for max_echo_run_time_us - this may increase run time due to the fact that if there is nothing in range of the sensor it will wait until this specified run time of the echo is over. The maximum range the sensor is specified for is about 300cm.
max_echo_run_time_us | Defines the maximum echo run time in microseconds and by that the maximum of distance that can be measured. |
Definition at line 791 of file CodeRacer.cpp.