Package joy :: Module safety
[hide private]
[frames] | no frames]

Module safety

source code


Python module joy.safety

Contains classes implementing the safety protocols enforced by JoyApp

Main classes:
  SafetyError -- exception class for indicating safety violations
  BatteryVoltage -- a safety check that uses get_voltage calls and
    enforces a lower bound on voltage

Classes [hide private]
  SafetyError
Error used to indicate termination because of an unsafe working condition being detected
  BatteryVoltage
Concrete class managing battery safety via a collection of objects that support the get_voltage method.