Read IMU data at Serial port (p28, p27), data rate <100Hz @115200bps Read 5 channels PPM signal at p11 using InterruptIn Send data via RF Modem at serial port (p13, p14) in 36Hz @115200 Drive i2C motor speed controller at I2C port (p9, p10) in every 10mS (control loop delay time)
setup.h@0:bd282c11d296, 2010-08-12 (annotated)
- Committer:
- agiembed
- Date:
- Thu Aug 12 01:08:40 2010 +0000
- Revision:
- 0:bd282c11d296
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
agiembed | 0:bd282c11d296 | 1 | Serial pc(USBTX, USBRX); |
agiembed | 0:bd282c11d296 | 2 | Serial ahrs(p28, p27); |
agiembed | 0:bd282c11d296 | 3 | Serial radio(p13, p14); |
agiembed | 0:bd282c11d296 | 4 | Ticker SendData; |
agiembed | 0:bd282c11d296 | 5 | Ticker Proccess; |
agiembed | 0:bd282c11d296 | 6 | DigitalOut myled(LED1); |
agiembed | 0:bd282c11d296 | 7 | |
agiembed | 0:bd282c11d296 | 8 | void setup(){ |
agiembed | 0:bd282c11d296 | 9 | pc.baud(115200); |
agiembed | 0:bd282c11d296 | 10 | radio.baud(115200); |
agiembed | 0:bd282c11d296 | 11 | ahrs.baud(115200); |
agiembed | 0:bd282c11d296 | 12 | } |
agiembed | 0:bd282c11d296 | 13 |