Revision 1378
Modified bom_refresh() to check analog_loop_running()
analog.h | ||
---|---|---|
36 | 36 |
* to analog. |
37 | 37 |
|
38 | 38 |
* @author Colony Project, CMU Robotics Club, based on firefly |
39 |
* code by Tom Lauwers |
|
39 |
* originally taken from fwr analog file (author: Tom Lauwers) |
|
40 |
* loop code written by Kevin Woo and James Kong |
|
40 | 41 |
*/ |
41 | 42 |
|
42 | 43 |
#ifndef _ANALOG_H |
... | ... | |
91 | 92 |
/** @brief Analog port for the battery voltage detector **/ |
92 | 93 |
#define BATT_PORT AN11 |
93 | 94 |
|
95 |
/** @brief Wait for current conversion to complete. Parameter for analog_stop_loop **/ |
|
96 |
#define WAIT_UNTIL_FINISHED 0 |
|
97 |
/** @brief Don't wait for current conversion to complete. Parameter for analog_stop_loop **/ |
|
98 |
#define SKIP_WAIT 1 |
|
99 |
|
|
94 | 100 |
#define ADC_START 1 |
95 | 101 |
#define ADC_STOP 0 |
96 | 102 |
|
... | ... | |
110 | 116 |
void analog_start_loop(void); |
111 | 117 |
/** @brief Stops the analog loop. Doesn't do anything if the loop is already stopped. **/ |
112 | 118 |
void analog_stop_loop(void); |
119 |
/** @brief Returns the status of the analog loop. **/ |
|
120 |
int analog_loop_running(void); |
|
113 | 121 |
/** @brief Returns an 8-bit analog value from the look up table. Use this instead of analog_get8. **/ |
114 | 122 |
unsigned int analog8(int which); |
115 | 123 |
/** @brief Returns an 10-bit analog value from the look up table. Use this instead of analog_get10. **/ |
Also available in: Unified diff