How to check if seatbelts alert(or any event) is on or off?
alptugidin opened this issue · comments
Alptuğ commented
I need to check boolean values of events. But i couldn't find a way.
e.g.
event_to_trigger = ae.find("CABIN_SEATBELTS_ALERT_SWITCH_TOGGLE")
if => Seatbelts switch is on:
do nothing
else =>
event_to_trigger()
Tanks.
iceyrazor commented
aq = AircraftRequests(sm, _time=10)
event=aq.get('CABIN_SEATBELTS_ALERT_SWITCH')
if event==True:
print("true")
also. doing it in a loop may cause it to crash. see #94
note i used aq. not ae.
Alptuğ commented
it works. thanks!