Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: NHK2017_octopus2 NHK2017_octopus2_drive 2018NHK_gakugaku_robo 2018NHK_gaku_ver2
Fork of R1307 by
Revision 4:927d58c8eec1, committed 2017-11-01
- Comitter:
- UCHITAKE
- Date:
- Wed Nov 01 08:05:49 2017 +0000
- Parent:
- 3:7105b2e1f51e
- Child:
- 5:47dbcf162951
- Commit message:
- unko oppai
Changed in this revision
| r1307.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/r1307.h Wed Nov 01 08:03:03 2017 +0000
+++ b/r1307.h Wed Nov 01 08:05:49 2017 +0000
@@ -3,18 +3,25 @@
#include "mbed.h"
-class R1307 {
+class R1307
+{
private:
- Serial serial;
- Ticker ticker;
- float gAngle;
- float gRate;
- float gX_acc;
- float gY_acc;
- float gZ_acc;
+ Serial serial;
+ Ticker ticker;
+ float gAngle;
+ float gRate;
+ float gX_acc;
+ float gY_acc;
+ float gZ_acc;
public:
- R1307 (PinName tx_,PinName rx_);
- void update();
+ R1307 (PinName tx_,PinName rx_);
+ void update();
+ float R1307::getRate();
+ float R1307::getAngle();
+ float R1307::getAccX();
+ float R1307::getAccY();
+ float R1307::getAccZ();
+
};
#endif /* end of include guard: R1307_H */
