offline compile base

Dependencies:   mbed SDFileSystem MU2 GPS

Files at this revision

API Documentation at this revision

Comitter:
takepiyo
Date:
Wed Aug 21 02:10:00 2019 +0000
Commit message:
offline compile base

Changed in this revision

GPS.lib Show annotated file Show diff for this revision Revisions of this file
MU2.lib Show annotated file Show diff for this revision Revisions of this file
SDFileSystem.lib Show annotated file Show diff for this revision Revisions of this file
inletclose/inletclose.h Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/GPS.lib	Wed Aug 21 02:10:00 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/teams/KobayashiTakeshi/code/GPS/#e3c59956d8ce
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MU2.lib	Wed Aug 21 02:10:00 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/teams/KobayashiTakeshi/code/MU2/#dcb1eee964d5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SDFileSystem.lib	Wed Aug 21 02:10:00 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/teams/mbed/code/SDFileSystem/#8db0d3b02cec
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/inletclose/inletclose.h	Wed Aug 21 02:10:00 2019 +0000
@@ -0,0 +1,53 @@
+#include "mbed.h"
+
+#ifndef InletClose_H
+#define InletClose_H
+
+class Inlet
+{
+private:
+DigitalOut _Out;//モータ用 1で回転,0で停止
+
+AnalogIn _In1;
+AnalogIn _In2;//感圧センサーとつなぐピン
+
+float value1;//感圧センサーの値をいれる
+float value2;
+
+public:  
+
+    Inlet(PinName Out,PinName In1,PinName In2)
+    :_Out(Out),_In1(In1),_In2(In2){}
+    
+    
+    void Close(float judge)//センサのどっちかがjudgeを超えるとモーターは停止
+    {
+        _Out=1;
+        
+        if(getvalue1()>judge | getvalue2()>judge)
+        {
+            _Out=0;
+        }    
+    }
+    
+    void Stop()
+    {
+        _Out=0;    
+    }
+    
+    float getvalue1()    
+    {
+        value1=_In1.read();
+        return value1;    
+    }    
+
+    float getvalue2()    
+    {
+        value2=_In2.read();
+        return value2;    
+    }   
+
+
+};
+
+#endif
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Aug 21 02:10:00 2019 +0000
@@ -0,0 +1,10 @@
+#include "mbed.h"
+
+DigitalOut motor(p26);
+
+int main() {
+    while(1) 
+    {
+        motor=1;
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Aug 21 02:10:00 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/e1686b8d5b90
\ No newline at end of file