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.
Safty/Safty.cpp
- Committer:
- yabahiro
- Date:
- 2019-11-13
- Revision:
- 52:4394a1debceb
- Parent:
- 30:8f092276b2ba
File content as of revision 52:4394a1debceb:
#include "Safty.h" #include "../Communication/Controller/Controller.h" #include "../Switch/Switch.h" using namespace SWITCH; namespace SAFTY { ErrorStatus ErrorCheck::Check() { ErrorStatus error = 0; CONTROLLER::Controller::CheckControllerLost() ? error |= Error::ControllerLost : error &=~ Error::ControllerLost; // #ifdef USE_DRIVECHECK (DRIVECHECK_LIMITSW == SW_OFF) ? error |= Error::DrivePowerLost : error &=~ Error::DrivePowerLost; // #endif return error; } }