Lab4
Dependencies: HEPTA_SENSOR mbed HEPTA_EPS
main.cpp
- Committer:
- HeptaSatTraining2019
- Date:
- 2019-08-21
- Revision:
- 25:c5fa5fc8320b
- Parent:
- 24:3659e0c223c8
- Child:
- 26:c27c56c3fe93
File content as of revision 25:c5fa5fc8320b:
#include "mbed.h" #include"HEPTA_EPS.h" #include"HEPTA_SENSOR.h" Serial pc(USBTX, USBRX); HEPTA_EPS eps(p16,p26); HEPTA_SENSOR sensor(p17, p28,p27,0xD0,0x18, p13, p14,p25,p24); int main() { pc.baud(9600); float ax,ay,az; pc.printf("Accel Sensor Mode\r\n"); for(int i = 0; i<50; i++) { sensor.sen_acc(&ax,&ay,&az); pc.printf("%f,%f,%f\r\n",ax,ay,az); wait(1.0); } }