Fork with cleaned up main and brakes class. Implementation or regen, friction and emergency stop now in brakes.cpp and called in main

Dependencies:   mbed millis

rtc.h

Committer:
cdevarakonda
Date:
24 months ago
Revision:
33:9198b292a8eb
Parent:
0:4788e1df7b55

File content as of revision 33:9198b292a8eb:

#ifndef RTC_H
#define RTC_H

class RoundTrainCircuit {
    public:
        RoundTrainCircuit  (DigitalIn rtc_1, 
                            DigitalIn rtc_2,
                            DigitalIn rtc_3,
                            DigitalIn rtc_4,
                            DigitalIn rtc_5,
                            DigitalIn rtc_6,
                            DigitalIn rtc_7,
                            DigitalIn rtc_override);
        
        DigitalIn deadman;
        DigitalIn emergencyButtonLeft;
        DigitalIn emergencyButtonRight;
        DigitalIn heatDetector;
        DigitalIn driverCord;
        DigitalIn superCapOverVoltage;
        DigitalIn spare;
        DigitalIn override;
                            
        void getTriggerCause();
};

#endif