![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
aa
Dependencies: mbed TrapezoidControl QEI
Safty/Safty.h
- Committer:
- yabahiro
- Date:
- 2019-09-30
- Revision:
- 42:4f9689c0a349
- Parent:
- 0:669ef71cba68
File content as of revision 42:4f9689c0a349:
#ifndef SAFTY_H_ #define SAFTY_H_ #include <stdint.h> #include "Input/Switch/Switch.h" namespace SAFTY { #define DRIVECHECK_LIMITSW SWITCH::LimitSw::IsPressed(11) typedef struct { enum Elem { None = 0x00, DrivePowerLost = 0x01, ControllerLost = 0x02, }; }Error; typedef uint8_t ErrorStatus; class ErrorCheck { public: static ErrorStatus Check(); }; } #endif