kani

Dependencies:   2017NHKpin_config FEP omni_wheel PID R1307 ikarashiMDC

classDiagram

    \ ̄\                   / ̄/ 
/l     \  \             /  / lヽ  
| ヽ  ヽ   |           |  /  / | 
\ ` ‐ヽ  ヽ  ●        ●         /  / ‐  / 
  \ __ l  |  ||___|| /  l __ / 
     \  \ /      \/ 
      /\|   人__人  |/\    <ズワイガニ  
    //\|             |/\\     
    //\|   ケガニ            |/\\     
    /     . \_____/         \ 

                               ┏┓        ┏━┓┏┓              
     ┏┓         ┏┓┏┓   ┏┓    ┏┓┗┛     ┏┓ ┗┓┃┗┛              
┏┛┗━┓  ┃┃┃┃    ┃┃┏━┛┗┓┏┓┏┛┗━┓┃┃┏┓┏┓┏━━━┓ 
┗┓┏━┛  ┃┃┗┛    ┃┃┗━┓┏┛┗┛┗┓┏┓┃┗┛┗┛┃┃┗━━━┛    
┏┛┃┏━┓┃┗━━┓┃┃┏━┛┗┓      ┏┛┃┃┃        ┃┃              
┃┏┛┗━┛┗━━┓┃┃┃┃┏┓┏┛      ┗━┛┃┃        ┃┃┏┓          
┃┃┏━━┓┏━━┛┃┃┃┃┗┛┃         ┏┛┃        ┃┃┃┗━━┓    
┗┛┗━━┛┗━━━┛┗┛┗━━┛         ┗━┛        ┗┛┗━━━┛  
Committer:
uchitake
Date:
Mon Sep 25 18:15:43 2017 +0900
Branch:
develop1
Revision:
16:50651ff960b9
Parent:
15:9aa11febe517
Child:
18:78df87e20590
fix keybind

Who changed what in which revision?

UserRevisionLine numberNew contents of line
uchitake 9:39be1525dfe0 1 #ifndef SLIDER_H
uchitake 9:39be1525dfe0 2 #define SLIDER_H
uchitake 9:39be1525dfe0 3
uchitake 9:39be1525dfe0 4 #include "mbed.h"
uchitake 9:39be1525dfe0 5 #include "pin_config.h"
uchitake 9:39be1525dfe0 6 #include "ikarashiMDC.h"
uchitake 9:39be1525dfe0 7 #include "QEI.h"
uchitake 9:39be1525dfe0 8
uchitake 16:50651ff960b9 9 const int PULSES_PER_REV = 720;
uchitake 9:39be1525dfe0 10
uchitake 9:39be1525dfe0 11 class Slider {
uchitake 9:39be1525dfe0 12 public:
uchitake 9:39be1525dfe0 13 Slider(DigitalOut* RS485Controller, Serial *RS485);
uchitake 9:39be1525dfe0 14
uchitake 9:39be1525dfe0 15 void slide(float speed);
uchitake 9:39be1525dfe0 16 private:
uchitake 9:39be1525dfe0 17 void resetheight();
uchitake 16:50651ff960b9 18 bool isReseted;
uchitake 9:39be1525dfe0 19
uchitake 9:39be1525dfe0 20 ikarashiMDC slideMotor;
uchitake 9:39be1525dfe0 21 QEI encoder;
uchitake 9:39be1525dfe0 22 InterruptIn limitSwitch;
uchitake 16:50651ff960b9 23 Serial slideSerial;
uchitake 9:39be1525dfe0 24 };
uchitake 9:39be1525dfe0 25
uchitake 9:39be1525dfe0 26 #endif