![]() |
roneos
Operating System for the r-one robot
|
This code controls the 4 IR LEDS on the top center of the rone robot These are the IR_beacons, and an IR sensitive camera can use these to track the robots. More...
Go to the source code of this file.
Functions | |
void | IRBeaconPreinit (void) |
Initializes IRBeacon. More... | |
void | IRBeaconInit (void) |
Initializes IRBeacon interrupt. More... | |
void | IRBeaconDisable (void) |
Disables IRBeacon. More... | |
void | IRBeaconSetData (uint32 data) |
Sets the data in IRBeacon. More... | |
This code controls the 4 IR LEDS on the top center of the rone robot These are the IR_beacons, and an IR sensitive camera can use these to track the robots.
The init and preinit functions are typically called by functions in system.c.
void IRBeaconDisable | ( | void | ) |
Disables IRBeacon.
Turns off IRBeacon LED and sets the timer to 0.
void IRBeaconInit | ( | void | ) |
Initializes IRBeacon interrupt.
Enables the 60hz IRBeacon interrupt.
void IRBeaconPreinit | ( | void | ) |
Initializes IRBeacon.
Enables the IRBeacon pin as an output. Turns IRBeacon off in the process.
void IRBeaconSetData | ( | uint32 | data) |
Sets the data in IRBeacon.
Sets what the IRBeacon is going to output; also sets the timer for IRBeacon to 60.
This function, when called "IRBeaconSetData(roneID);" gives each robot a unique ID.
data | the output data (32 bit unsigned int) |