Arduino code is at the top level. For other files, see the directory .other, in which the following can be found:
docs/system_architecture: documentation regarding the structure of the codesrc/java.sim.nocompile/*: java code for the OR simulator atMDNich/ActiveControl_MIT_RktTeam. It will not compile in this repository, and it is purely for reference purposes.
See this diagram for an overview of the simulation clases (updated continually).
constructor
Set range to +/- 40G, Set LPF to 125Hz and ODR to 500HZ, begin measurements
updates accelerometer values if available
returns x axis acceleration in m/s^2
returns y axis acceleration in m/s^2
returns z axis acceleration in m/s^2
hardware serial constructor
USB serial constructor
begins serial port
moves any available serial data into the data buffer, and if any data is available, parses the buffer
returns PDOP
returns VDOP
returns HDOP
returns latitude
returns longitude
returns altitude in meters
returns true if GPS fix; false otherwise
constructor
starts the servo drive signal to the zero (+offset) point
updates the servo control mode, rocket velocity for scaling, and angle (if in SERVO_ANGLE mode).
SERVO_STATE is either SERVO_ZERO, SERVO_ANGLE, or SERVO_PD
returns time in us the servo 6 drive signal is a logic high
conversion to degrees is (us - 1500) / 500 * 60
returns time in us the servo 7 drive signal is a logic high
conversion to degrees is (us - 1500) / 500 * 60