#include <ocameragb.h>
Public Member Functions | |
| oCameraGB (IOLINE, PORT, IOLINE, IOLINE, IOLINE, IOLINE, IOLINE, IOLINE, uint8 subclass=0) | |
Static Public Member Functions | |
| word | exposure (void) |
| Automatically set exposure. | |
| int | exposure (MICROSECOND) |
| Set exposure. (returns C register for debugging). | |
| void | reset (void) |
| Call gbcam_init to reset after chaning parameters. | |
| void | invert (bool) |
| void | gain (uint8 b) |
| Sets the image gain. (5 bits). | |
| void | shoot (void) |
| Takes a picture. | |
| uint8 | status (void) |
| Returns the current state of the top level component. | |
| void | status (uint8 s) |
| Set the status of the component. | |
Protected Attributes | |
| uint8 | _status |
| JAUS status (visual sensor component). | |
#include <hardware/ocameragb.h> #include <hardware/oled.h> #include <oconsole.h> int EXPOSURE_TIME =6000; char RXbuff[251]; char TXbuff[251]; oConsole console; oCameraGB GB(0,PORT_F,3,5,7,6,4,2); // Gameboy camera mounted facing down in front of robot. oGreenLED green; int main() { green.on(); console.buffer(&RXbuff[0],250,&TXbuff[0],250); console.syncronize(); GB.exposure(EXPOSURE_TIME); // set exposure 24000 is about 2 frame/sec; 7000 is about 5-6/second(?) GB.view(); // interactive mode. exit(0); }
|
||||||||||||||||||||||||||||||||||||||||
|
|
|
|
Inverts the image if true (negative). Sets the edge extraction mode. |
1.3