|
camera.h File Reference
#include <fcntl.h>
#include <termios.h>
#include <stdio.h>
#include <time.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include "playerconfig.h"
Go to the source code of this file.
|
Classes |
| struct | packet_t |
| struct | imager_config |
| struct | color_config |
| struct | rgb |
| struct | image |
Defines |
| #define | IMAGE_WIDTH 174 |
| #define | IMAGE_HEIGHT 143 |
| #define | CONTRAST 5 |
| #define | BRIGHTNESS 6 |
| #define | COLORMODE 18 |
| #define | RGB_AWT_ON 44 |
| #define | RGB_AWT_OFF 40 |
| #define | YCRCB_AWT_ON 36 |
| #define | YCRCB_AWT_OFF 32 |
| #define | AUTOGAIN 19 |
| #define | AUTOGAIN_ON 33 |
| #define | AUTOGAIN_OFF 32 |
| #define | ZERO_POSITION 128 |
| #define | MIN_RGB 16 |
| #define | MAX_RGB 240 |
| #define | T_PACKET_LENGTH 50 |
Functions |
| int | get_t_packet (int fd, packet_t *tpacket) |
| int | set_imager_config (int fd, imager_config ic) |
| int | get_bytes (int fd, char *buf, size_t len) |
| int | open_port (char *devicepath) |
| void | close_port (int fd) |
| void | read_t_packet (int fd, char *tpackChars) |
| int | set_t_packet (packet_t *tpacket, char tpack_chars[]) |
| int | set_servo_position (int fd, int servo_num, int angle) |
| int | get_servo_position (int fd, int servo_num) |
| void | stop_tracking (int fd) |
| int | write_check (int fd, char *msg, int respond_size) |
| int | poll_mode (int fd, int on) |
| void | make_command (char *cmd, int *n, size_t size, char *fullCommand) |
| int | auto_servoing (int fd, int on) |
| void | track_blob (int fd, color_config cc) |
Variables |
| color_config | range |
Define Documentation
| #define ZERO_POSITION 128
|
|
| #define T_PACKET_LENGTH 50
|
|
Function Documentation
| int get_t_packet |
( |
int |
fd, |
|
|
packet_t * |
tpacket |
|
) |
|
|
| int get_bytes |
( |
int |
fd, |
|
|
char * |
buf, |
|
|
size_t |
len |
|
) |
|
|
| int open_port |
( |
char * |
devicepath |
) |
|
|
| void close_port |
( |
int |
fd |
) |
|
|
| void read_t_packet |
( |
int |
fd, |
|
|
char * |
tpackChars |
|
) |
|
|
| int set_t_packet |
( |
packet_t * |
tpacket, |
|
|
char |
tpack_chars[] |
|
) |
|
|
| int set_servo_position |
( |
int |
fd, |
|
|
int |
servo_num, |
|
|
int |
angle |
|
) |
|
|
| int get_servo_position |
( |
int |
fd, |
|
|
int |
servo_num |
|
) |
|
|
| void stop_tracking |
( |
int |
fd |
) |
|
|
| int write_check |
( |
int |
fd, |
|
|
char * |
msg, |
|
|
int |
respond_size |
|
) |
|
|
| int poll_mode |
( |
int |
fd, |
|
|
int |
on |
|
) |
|
|
| void make_command |
( |
char * |
cmd, |
|
|
int * |
n, |
|
|
size_t |
size, |
|
|
char * |
fullCommand |
|
) |
|
|
| int auto_servoing |
( |
int |
fd, |
|
|
int |
on |
|
) |
|
|
Variable Documentation
Generated on Tue May 3 14:15:38 2005 for Player by 1.3.6
|