NHK2017 octopus robot

Dependencies:   2017NHKpin_config mbed FEP ikarashiMDC PID jy901 omni HMC6352 omni_wheel

Fork of KANI2017v2 by NagaokaRoboticsClub_mbedTeam

bot/limitSwitch/limitSwitch.h

Committer:
number_key
Date:
2017-10-25
Revision:
26:7258d5ad0bff
Parent:
23:37bb9afe9fdc

File content as of revision 26:7258d5ad0bff:

#ifndef LIMITSWITCH_H
#define LIMITSWITCH_H

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



class Limit {
public :

    Limit(PinName limitSwitch1, PinName limitSwitch2);


    void frontLimit();

    void backLimit();

    void resetPosition();

    int getPosition();

private :
    InterruptIn frontSwitch;
    InterruptIn backSwitch;

protected :
    int position;
};

#endif