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
ARS.h
- Committer:
- SWteamofAREC
- Date:
- 2015-03-14
- Revision:
- 0:609146aec0da
File content as of revision 0:609146aec0da:
#ifndef MBED_ARSv1_H #define MBED_ARSv1_H #include "mbed.h" #include <iostream> #define READBUFFERSIZE (32) #define rad2degree (57.29579143) #define scaleFactorOfARS (0.001)// The output values of NT-ARSv1 are 1000 times in radians using namespace std; class ARS { public: ARS(PinName tx,PinName rx); //생성자 float getrollangle(); float getpitchangle(); float getrollvel(); float getpitchvel(); void getdata(); void set(int baudRate); protected: Serial _ARS; float rollAngle; float pitchAngle; float rollVel; float pitchVel; }; #endif