R1370

Dependents:   NHK2017_octopus2 NHK2017_octopus2_drive 2018NHK_gakugaku_robo 2018NHK_gaku_ver2

Fork of R1307 by Wataru Nakata

Files at this revision

API Documentation at this revision

Comitter:
takeuchi
Date:
Wed Nov 08 18:42:22 2017 +0900
Parent:
4:927d58c8eec1
Commit message:
fix

Changed in this revision

r1307.cpp Show annotated file Show diff for this revision Revisions of this file
r1307.h Show annotated file Show diff for this revision Revisions of this file
diff -r 927d58c8eec1 -r 47dbcf162951 r1307.cpp
--- a/r1307.cpp	Wed Nov 01 08:05:49 2017 +0000
+++ b/r1307.cpp	Wed Nov 08 18:42:22 2017 +0900
@@ -39,27 +39,28 @@
   gY_acc = y_acc;
   gZ_acc = z_acc;
 }
-float R1307::getRate()
+
+float R1307::getRate() const
 {
     return gRate;
 }
 
-float R1307::getAngle()
+float R1307::getAngle() const
 {
     return gAngle;
 }
 
-float R1307::getAccX()
+float R1307::getAccX() const
 {
     return gX_acc;
 }
 
-float R1307::getAccY()
+float R1307::getAccY() const
 {
     return gY_acc;
 }
 
-float R1307::getAccZ()
+float R1307::getAccZ() const
 {
     return gZ_acc;
 }
diff -r 927d58c8eec1 -r 47dbcf162951 r1307.h
--- a/r1307.h	Wed Nov 01 08:05:49 2017 +0000
+++ b/r1307.h	Wed Nov 08 18:42:22 2017 +0900
@@ -16,11 +16,11 @@
 public:
     R1307 (PinName tx_,PinName rx_);
     void update();
-    float R1307::getRate();
-    float R1307::getAngle();
-    float R1307::getAccX();
-    float R1307::getAccY();
-    float R1307::getAccZ();
+    float getRate() const;
+    float getAngle() const;
+    float getAccX() const;
+    float getAccY() const;
+    float getAccZ() const;
 
 };