TrackingHardware
Software
Mega PlanEtc. |
Main /
CBefore starting to write C code for the robot, you must download and install the Gumstix buildroot and the Brainstem libraries. See the Development section for more details. Cross-compilingRunning C programs on the Gumstix requires they be compiled elsewhere, and then the executable is transfered to the Gumstix. Source code is compiled with a compiler that is designed for embedded architecture. The best compiler is the ARM C compiler provided in the Gumstix buildroot. Communicating with the Brainstem over I2CThe C Brainstem libraries are one of many ways you can communicate to the Brainstem. It is fast, stable, and works well with the serial ports and I2C. Attach:gmuBrainstem.c Include this file in your makefile to access the Brainstem. Building projects for the Gumstix is almost the same as building projects to run on your local machine. See the Brainstem for details on how to build a project on your local machine. The only difference is the value of the CC and ARCH variables. There are two ways to compile your C code:
Communicating with the CMUCam2 over SerialThe following file contains source and binaries for an initial library to communicate with the CMUCam2 over serial: Attach:cmucamlibc.tar.gz The library processes each command and returns a struct with all associated information including reply code, T/S/H packets, etc.. To use the library,
To-Do List
|