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 QEI
Safty.cpp
00001 #include "Safty.h" 00002 00003 #include "../Communication/Controller/Controller.h" 00004 #include "../Input/Switch/Switch.h" 00005 00006 using namespace SWITCH; 00007 00008 00009 namespace SAFTY { 00010 ErrorStatus ErrorCheck::Check() { 00011 ErrorStatus error = 0; 00012 CONTROLLER::Controller::CheckControllerLost() ? error |= Error::ControllerLost : error &=~ Error::ControllerLost; 00013 // #ifdef USE_DRIVECHECK 00014 (DRIVECHECK_LIMITSW == SW_OFF) ? error |= Error::DrivePowerLost : error &=~ Error::DrivePowerLost; 00015 // #endif 00016 return error; 00017 } 00018 }
Generated on Thu Aug 11 2022 13:16:31 by
