Code for an autonomous plane I'm building. Includes process scheduling, process communication, and hardware sensor interfacing (via I2C). NOTE: currently in development, source code will be updated frequently.
steps.cpp
- Committer:
- teamgoat
- Date:
- 2013-10-30
- Revision:
- 0:0c627ff4c5ed
- Child:
- 2:452dd766d212
File content as of revision 0:0c627ff4c5ed:
#include "steps.h" Serial pc(USBTX, USBRX); // in the future, change get_sensor_data to append the sensor data to a rolling list void get_sensor_data() { struct accel s; if (read_accelerometer(&s) == 0) { pc.printf("Error!"); return; } pc.printf("Ax: %i Ay: %i Az: %i\n", s.ax, s.ay, s.az); return; }