The last version programs
Dependencies: mbed TrapezoidControl Pulse QEI
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
Generated on Fri Jul 15 2022 03:24:23 by 1.7.2