roneos
Operating System for the r-one robot
 All Data Structures Files Functions Variables Typedefs Groups
ir_beacon.h File Reference

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...
 

Detailed Description

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.

Since
Mar 26, 2011
Author
James McLurkin

Function Documentation

void IRBeaconDisable ( void  )

Disables IRBeacon.

Turns off IRBeacon LED and sets the timer to 0.

Returns
void
void IRBeaconInit ( void  )

Initializes IRBeacon interrupt.

Enables the 60hz IRBeacon interrupt.

Returns
void
void IRBeaconPreinit ( void  )

Initializes IRBeacon.

Enables the IRBeacon pin as an output. Turns IRBeacon off in the process.

Returns
void
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.

Parameters
datathe output data (32 bit unsigned int)
Returns
void