T Nara / R1370

Dependents:   quadOmni_yanagi R1370 gyro_test wheel_test3 wheel_test3 ... more

Fork of R1307 by Wataru Nakata

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers R1370.h Source File

R1370.h

00001 #ifndef _R1370_H
00002 #define _R1370_H
00003 #include <mbed.h>
00004 
00005 class R1370
00006 {
00007 public:
00008     R1370(PinName Tx,PinName Rx);
00009     int update();
00010     float getAngle();
00011 private:
00012     Serial serial;
00013     uint8_t data[15];
00014     int16_t angle;
00015     float gyro;
00016 };
00017 #endif /*_R1370_H*/