NagaokaRoboticsClub_mbedTeam / Mbed OS NHK2017_octopus2

Dependencies:   2017NHKpin_config FEP HMC6352 PID QEI R1307 ikarashiMDC omni_wheel

Fork of KANIv3 by NagaokaRoboticsClub_mbedTeam

bot/slider/slider.h

Committer:
takeuchi
Date:
2017-10-18
Revision:
38:fbd5242ab2b3
Parent:
37:6b6616008e78

File content as of revision 38:fbd5242ab2b3:

#ifndef SLIDER_H
#define SLIDER_H

#include "mbed.h"
#include "pin_config.h"
#include "ikarashiMDC.h"

class Slider {
public:
	Slider(DigitalOut* RS485Controller, Serial *RS485);

	void slide(float speed);
private:
	ikarashiMDC slideMotor;
	DigitalIn downLimitSwitch;
	DigitalIn upLimitSwitch;
	Serial slideSerial;
};

#endif