Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 Sun Jul 17 2022 15:33:13 by
