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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user