No serialcontroller

Files at this revision

API Documentation at this revision

Comitter:
ec30109b
Date:
Fri Aug 09 13:21:35 2019 +0000
Parent:
13:ea34af94e90c
Commit message:
komitto

Changed in this revision

ikarashiMDC.cpp Show annotated file Show diff for this revision Revisions of this file
ikarashiMDC.h Show annotated file Show diff for this revision Revisions of this file
--- a/ikarashiMDC.cpp	Sat Nov 11 10:50:30 2017 +0000
+++ b/ikarashiMDC.cpp	Fri Aug 09 13:21:35 2019 +0000
@@ -1,10 +1,8 @@
 #include "ikarashiMDC.h"
 
 
-ikarashiMDC::ikarashiMDC(DigitalOut* serialcontrol,uint8_t taddr,uint8_t tmotorNum,bool tmode,Serial *tserial)
+ikarashiMDC::ikarashiMDC(uint8_t taddr,uint8_t tmotorNum,bool tmode,Serial *tserial)
 {
-    serialControl = serialcontrol;
-    serialControl->write(true);
     serial = tserial;
     addr = taddr;
     motorNum = tmotorNum;
--- a/ikarashiMDC.h	Sat Nov 11 10:50:30 2017 +0000
+++ b/ikarashiMDC.h	Fri Aug 09 13:21:35 2019 +0000
@@ -54,7 +54,7 @@
     * @param mdc mode (LAP or SM)
     * @param  address of serial object
     **/
-    ikarashiMDC(DigitalOut* serialcontrol,uint8_t taddr,uint8_t tmotorNum,bool tmode,Serial *tserial);
+    ikarashiMDC(uint8_t taddr,uint8_t tmotorNum,bool tmode,Serial *tserial);
     
     /** drive motor
     * @param speed of motor -1 to 1
@@ -67,7 +67,6 @@
     uint8_t motorNum;
     bool mode;
     Serial* serial;
-    DigitalOut *serialControl;
     
 };
 void estop(Serial *serial);