camera_set_autoexp |
sets the auto exposure of the camera |
x | boolean value determining whether auto exposure is on |
cameraboard_open |
returns a cameraboard struct used to access the data of the cameraboard. |
img_color0 | sets the initial colorspace, using the IMG_COLOR constants |
img_res0 | sets the initial resolution, using the IMG_RES constants |
auto_exposure | sets whether auto exposure is initially turned on/off |
cameraboard_close |
closes cameraboard |
camera_capture_frame |
captures a frame from the camera. The cameraboard struct can be used to access the new frame. retuns 0 if successful |
camera_calibrate_exp |
turns on the auto exposure and allows the camera time to adjust to lighting conditions |
calibration_time | time in seconds to calibrate |
auto_exp_on | whether auto exposure is left on at the end of calibration |
verbose | prints a countdown |
cbpkt_send |
sends a CB packet. returns 0 if successful, 1 if failed |
type | CB packet type |
dest | destination mote ID |
payload | data to be sent |
length | length of payload data |
cbpkt_rcv |
receives a CB packet. returns 1 and populates input pointers if there is a packet to be received. returns 0 if there is no packet to be received |
type | CB packet type of incoming packet |
src_id_actual | actual source id of incoming packet. this is the id of the originating mote in a multihop network (not the id of the last hop) |
payload | incoming data |
length | length of payload data |
outqueue_is_full |
outgoing packets are put in a queue for radio transmission. returns 1 if the queue is full, 0 otherwise |
inqueue_is_empty |
incoming packets are put in a queue to be read. returns 1 if the queue is full, 0 otherwise |
cameraboard_sync_time |
syncs the cameraboard time with the attached mote's time |
cameraboard_get_time |
returns the global time of time synced motes. returns 0 if time was never synced |
write_binary_image |
writes an image to a binary uncompressed file. The contents are a dump of the image array data. The filename is a concatenation of the prefix and count (set to 4 0-filled digits) |
buf | image array |
image_width | width of image |
image_height | height of image |
fn | filename string |
color | specifies whether a color image should be written or grayscale. For color images buf should be of length image_width * image_height * 2. For grayscale images buf should be of length image_width * image_height. |
write_jpeg_image |
writes an image to a JPEG file. The filename is a concatenation of the prefix and count (set to 4 0-filled digits) with a suffix of ".jpg" |
buf | image array |
image_width | width of image |
image_height | height of image |
fn | filename string |
color | specifies whether a color image should be written or grayscale. For color images buf should be of length image_width * image_height * 2. For grayscale images buf should be of length image_width * image_height. |
quality | JPEG quality, from 0-100 |
get_cbprintf_group |
returns boolean value whether the specified cbprintf group is turned on or off |
groupnum | group number |
set_cbprintf_group |
turns the specified cbprintf group on or off |
groupnum | group number |
value | boolean indicating whether group is on or off |
cbprintf |
wireless printf for sending messages (currently only to server), useful for sending debug messages. Input paramaters are exactly like the printf function, with an additional first paramater indicating which group number to print to. There are a total of 8 groups, numbered 0-7, each of which may be turned on or off. This allows messages to be grouped into 8 categories for more organized and powerful debugging |
groupnum | group number |
send_file |
wireless file transfer (currently only to server) |
dest | destination mote ID |
fn | name/path of file to send |