Fixed problem with errors not showing up when repair process finished

Started working on issue to release tesla gun only when target voltage has been reached

git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@430 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
mmi
2018-02-05 15:58:06 +00:00
parent f02bd2002b
commit d5a10b7c2e
11 changed files with 242 additions and 17 deletions

View File

@@ -85,7 +85,7 @@ extern void TeslaGunSafety_destruct(void);
/** ----------------------------------------------------------------------------
* TeslaGunSafety_unlock
* TeslaGunSafety_release
* Opens the TeslaGunSafety
*
* @param self
@@ -98,6 +98,18 @@ extern void TeslaGunSafety_destruct(void);
extern ErrorStatus TeslaGunSafety_release(void);
/** ----------------------------------------------------------------------------
* TeslaGunSafety_isRreleased
* Opens the TeslaGunSafety
*
* @return bool TRUE if released
*
* @todo
* -----------------------------------------------------------------------------
*/
extern bool TeslaGunSafety_release(void);
/** ----------------------------------------------------------------------------
* TeslaGunSafety_block
* Blocks the TeslaGunSafety

View File

@@ -99,6 +99,16 @@ ErrorStatus TeslaGunSafety_release(void)
}
bool TeslaGunSafety_isReleased(void)
{
bool returnValue;
GPIO_getValue(self.gpio, &returnValue);
return returnValue;
}
ErrorStatus TeslaGunSafety_block(void)
{
ErrorStatus returnValue = SUCCESS;