aaaaaaaaa

Dependencies:   QEI mbed

Fork of MainBoard2018_Auto_Master_A_new by Akihiro Nakabayashi

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Safty.h Source File

Safty.h

00001 #ifndef SAFTY_H_
00002 #define SAFTY_H_
00003 
00004 #include <stdint.h>
00005 #include "Input/Switch/Switch.h"
00006 
00007 namespace SAFTY {
00008     #define DRIVECHECK_LIMITSW SWITCH::LimitSw::IsPressed(11)
00009 
00010     typedef struct
00011     {
00012         enum Elem
00013         {
00014             None = 0x00,
00015             DrivePowerLost = 0x01,
00016             ControllerLost = 0x02,
00017         };
00018     }Error;
00019     typedef uint8_t ErrorStatus;
00020 
00021     class ErrorCheck {
00022         public:
00023         static ErrorStatus Check();
00024     };
00025 }
00026 
00027 #endif