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.
Diff: sensors/sensors.h
- Revision:
- 22:0ed9de464f40
- Parent:
- 21:14133581387b
- Child:
- 25:c740e6fd5dab
diff -r 14133581387b -r 0ed9de464f40 sensors/sensors.h
--- a/sensors/sensors.h Fri May 03 02:21:47 2019 +0000
+++ b/sensors/sensors.h Fri May 03 09:34:05 2019 +0000
@@ -1,8 +1,32 @@
#ifndef INCLUDED_SENSORS_H
#define INCLUDED_SENSORS_H
#include "hcsr04.h"
+#include "EC.h"
+extern const float kOldWeightLight;
extern LowPassFilter lowpassfilter[2];
-double get_dist_forward();
-double get_dist_back();
-float GetFilteredDist_cm(HCSR04 & sensor, LowPassFilter & filter);
+float get_dist_forward();
+float get_dist_back();
+
+void set_gyro();
+
+extern Ec ec_lo;
+extern Ec ec_li;
+
+extern DigitalIn bus_in;
+extern DigitalIn switch_lo;
+extern DigitalIn switch_li;
+extern DigitalIn mode4;
+
+void wait_gerege();
+
+extern CAN can1;
+void can_send(int mode, float duty);
+enum EVENT {
+ NORMAL,
+ GEREGE,
+ GOAL,
+};
+extern int hand_mode;
+
+void TickerSetUp();
#endif
\ No newline at end of file