Bugfixes and improvements to the Failure Manager 271
authorAnton Gomez Alvedro <galvedro@gmail.com>
Sun, 21 Dec 2014 11:39:52 +0000 (12:39 +0100)
committerAnton Gomez Alvedro <galvedro@gmail.com>
Sun, 21 Dec 2014 11:39:52 +0000 (12:39 +0100)
commit99bba43c86212b3737a4ae663a1da056bfd90a3b
treed0db5ca6cfaaa5e6bf6fcabe623eabefe16f50f3
parentbbe81d8ebc7c80b7bb453224c4d75bbf642ffabd
Bugfixes and improvements to the Failure Manager

  - Fix: runtime exception in remove_failure_mode()
  - Fix: keep failure & trigger status on teleport.
  - Fix: allow random failures from the gui to be enabled/disabled multiple times.
  - Fix: mcbf/mtbf are set to zero when they fire, so they can be reactivated from the gui.
  - Fix: string casts of several trigger types had syntax errors.
  - Usability: screen messages related to failures now use positive logic:
         "condition 100%" instead of "failure level 0%"
  - Performance: Time triggers now use internal timers, instead of requiring being polled.
  - Reviewed Trigger interface for more rational usage. reset() is replaced by arm()/disarm()
  - Added a subscription interface to listen to FailureMgr events.
  - Added an internal log buffer to keep a record of relevant events and present them to gui elements.
  - Several usability improvements to the FailureMgr Nasal API.
Aircraft/Generic/Systems/compat_failure_modes.nas
Aircraft/Generic/Systems/failures.nas
Nasal/FailureMgr/private.nas
Nasal/FailureMgr/public.nas
Nasal/events.nas [new file with mode: 0644]