NT-ARSV1 Simple code(not completed)

http://ntrexlab.tistory.com/15

http://backup.ntrex.co.kr/mart7/mall.php?cat=049029000&query=view&no=41925

Committer:
SWteamofAREC
Date:
Sat Mar 14 02:45:00 2015 +0000
Revision:
0:609146aec0da
NT-ARSV1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
SWteamofAREC 0:609146aec0da 1 #ifndef MBED_ARSv1_H
SWteamofAREC 0:609146aec0da 2 #define MBED_ARSv1_H
SWteamofAREC 0:609146aec0da 3 #include "mbed.h"
SWteamofAREC 0:609146aec0da 4 #include <iostream>
SWteamofAREC 0:609146aec0da 5 #define READBUFFERSIZE (32)
SWteamofAREC 0:609146aec0da 6 #define rad2degree (57.29579143)
SWteamofAREC 0:609146aec0da 7 #define scaleFactorOfARS (0.001)// The output values of NT-ARSv1 are 1000 times in radians
SWteamofAREC 0:609146aec0da 8 using namespace std;
SWteamofAREC 0:609146aec0da 9
SWteamofAREC 0:609146aec0da 10
SWteamofAREC 0:609146aec0da 11 class ARS
SWteamofAREC 0:609146aec0da 12 {
SWteamofAREC 0:609146aec0da 13 public:
SWteamofAREC 0:609146aec0da 14 ARS(PinName tx,PinName rx);
SWteamofAREC 0:609146aec0da 15 //생성자
SWteamofAREC 0:609146aec0da 16 float getrollangle();
SWteamofAREC 0:609146aec0da 17 float getpitchangle();
SWteamofAREC 0:609146aec0da 18 float getrollvel();
SWteamofAREC 0:609146aec0da 19 float getpitchvel();
SWteamofAREC 0:609146aec0da 20 void getdata();
SWteamofAREC 0:609146aec0da 21 void set(int baudRate);
SWteamofAREC 0:609146aec0da 22
SWteamofAREC 0:609146aec0da 23
SWteamofAREC 0:609146aec0da 24 protected:
SWteamofAREC 0:609146aec0da 25 Serial _ARS;
SWteamofAREC 0:609146aec0da 26
SWteamofAREC 0:609146aec0da 27 float rollAngle;
SWteamofAREC 0:609146aec0da 28 float pitchAngle;
SWteamofAREC 0:609146aec0da 29 float rollVel;
SWteamofAREC 0:609146aec0da 30 float pitchVel;
SWteamofAREC 0:609146aec0da 31
SWteamofAREC 0:609146aec0da 32 };
SWteamofAREC 0:609146aec0da 33
SWteamofAREC 0:609146aec0da 34 #endif