[hal] Add more shutdown checks and motor safety shutdown (#4510)

This commit is contained in:
Thad House
2022-10-23 21:59:04 -07:00
committed by GitHub
parent 023a5989f8
commit ba850bac3b
4 changed files with 51 additions and 3 deletions

View File

@@ -6,9 +6,18 @@
#include "gtest/gtest.h"
#ifndef __FRC_ROBORIO__
namespace frc::impl {
void ResetMotorSafety();
}
#endif
int main(int argc, char** argv) {
HAL_Initialize(500, 0);
::testing::InitGoogleTest(&argc, argv);
int ret = RUN_ALL_TESTS();
#ifndef __FRC_ROBORIO__
frc::impl::ResetMotorSafety();
#endif
return ret;
}