Skip to content

Flights

Offer Shmuely edited this page Mar 8, 2024 · 8 revisions

Horus Widget that count number of flights

  • flight considered successful: after 30sec the engine above 25%, and telemetry is active (to indicated that the model connected), and safe switch ON
  • flight considered ended: after 8sec of battery disconnection (detected by no telemetry)
  • warning: do NOT use this widget if model is using GV9!!!

widget assume the following:

  • the model have motor
  • the motor is activated on channel 3 (can be change in settings)
  • there is telemetry with one of the above [RSSI|RxBt|A1|A2|1RSS|2RSS|RQly]
  • there is a safe switch (arm switch)
  • global variable GV9 is free (i.e. not used)

state machine:

  • ground --> flight-starting --> flight-on --> flight-ending --> ground
  • all-flags on for 30s => flight-on
  • no telemetry for 8s => flight-completed

Tips:

  • if widget size 1/2 or 1/1 (instead in the top bar where it design to) it will enter a debug mode
  • there are two options of voice indication (just copy flight_logged2.wav-->flight_logged.wav, flight_ended2.wav-->flight_ended.wav)
  • you can also put your own
  • if you do not like the sound, just delete the files
  • for Heli, for Heli, the motor-switch=arm-switch (same value for both)
  • if you need a reversed arm switch (e.g. !SF) you need to do change it (for now) in the script: inverted_arm_switch_logic=0
  • if you prefer different logics, do them on logical switches, and put that logical switch in both Arm & motor channel
  • if you do not use telemetry, set the: use_telemetry=0
  • special sound every 10 round flights

The widget was designed to be put in the Top Bar

image

Debug-Mode (when placed on 1/1 or 1/2 sized widget)

image

To change the existing number of flight, edit the value of GV9

image

image