NagaokaRoboticsClub_mbedTeam / Mbed OS NHK2017_octopus2

Dependencies:   2017NHKpin_config FEP HMC6352 PID QEI R1307 ikarashiMDC omni_wheel

Fork of KANIv3 by NagaokaRoboticsClub_mbedTeam

Committer:
uchitake
Date:
Thu Sep 28 17:32:01 2017 +0900
Branch:
develop1
Revision:
18:78df87e20590
Parent:
16:50651ff960b9
Child:
37:6b6616008e78
doc fix

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 18:78df87e20590 10 const int MAX_HEIGHT = 4700;
uchitake 9:39be1525dfe0 11
uchitake 9:39be1525dfe0 12 class Slider {
uchitake 9:39be1525dfe0 13 public:
uchitake 9:39be1525dfe0 14 Slider(DigitalOut* RS485Controller, Serial *RS485);
uchitake 9:39be1525dfe0 15
uchitake 9:39be1525dfe0 16 void slide(float speed);
uchitake 9:39be1525dfe0 17 private:
uchitake 9:39be1525dfe0 18 void resetheight();
uchitake 16:50651ff960b9 19 bool isReseted;
uchitake 9:39be1525dfe0 20
uchitake 9:39be1525dfe0 21 ikarashiMDC slideMotor;
uchitake 9:39be1525dfe0 22 QEI encoder;
uchitake 9:39be1525dfe0 23 InterruptIn limitSwitch;
uchitake 16:50651ff960b9 24 Serial slideSerial;
uchitake 9:39be1525dfe0 25 };
uchitake 9:39be1525dfe0 26
uchitake 9:39be1525dfe0 27 #endif