#include "camera.h"
#include "ball_tracking.h"
#include "line_tracking.h"
#include "utility.h"
#include "lcd_16x2.h"
#include "rprintf.h"
#include "uart.h"
#include <stdbool.h>
Go to the source code of this file.
Macros |
#define | NEW_PACKET 0 |
#define | FE_RCV 1 |
#define | T_RCV 2 |
#define | CMU_BAUD 38400 |
Functions |
void | packetRcv (uint8_t c) |
void | lineMode2Rcv (uint8_t c) |
void | trackColorRcv (uint8_t c) |
void | cmuCamInit (void) |
| Initialize the UART for communicating with the CMUcam.
|
void | cameraWhiteBalance () |
| Optimize the white balance for current conditions.
|
void | initCamera (void) |
| Reset the packet receiving state and put the camera into raw send mode.
|
void | cameraStreamingOff (void) |
| Stop the CMUcam from streaming data.
|
void | setVirtualWindow (uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2) |
| Constrain field of view used for subsequent image processing commands.
|
void | cameraHighResMode (void) |
| Set the camera to 176x255 resolution.
|
void | cameraLowResMode (void) |
| Set the camera to 88x143 resolution.
|
Detailed Description
Definition in file camera.c.
Function Documentation
void cameraHighResMode |
( |
void |
| ) |
|
|
inline |
Set the camera to 176x255 resolution.
- Note
- This resolution is truncated from 176x287
Definition at line 159 of file camera.c.
void cameraStreamingOff |
( |
void |
| ) |
|
|
inline |
Stop the CMUcam from streaming data.
- See Also
- CMUcam2 manual p.30
Definition at line 147 of file camera.c.
void cameraWhiteBalance |
( |
void |
| ) |
|
|
inline |
Optimize the white balance for current conditions.
Turn auto-white balance on, give it time to settle, then turn auto-white balance off.
- See Also
- CMUcam2 manual p.31
Definition at line 53 of file camera.c.
Reset the packet receiving state and put the camera into raw send mode.
- See Also
- CMUcam2 manual p.48
Definition at line 65 of file camera.c.
void setVirtualWindow |
( |
uint8_t |
x1, |
|
|
uint8_t |
y1, |
|
|
uint8_t |
x2, |
|
|
uint8_t |
y2 |
|
) |
| |
|
inline |
Constrain field of view used for subsequent image processing commands.
- See Also
- CMUcam2 manual p.55
Definition at line 154 of file camera.c.