Wish: implement an event-driven Log
Posted: Fri 08. Jul 2016 4:24:01
Currently, the unit's status is polled every 10 seconds and recorded in the Log. This generates an overwhelming majority of redundant Good Health Message messages that contribute no new information. A typical log from a three minute flight is as follows:
0:00 Calibration Finished
0:10 Good Health Message (this text is displayed on two lines on many smartphones)
0:20 Good Health Message
0:30 Good Health Message
0:40 Good Health Message
0:50 Good Health Message
1:00 Good Health Message
1:10 Good Health Message
1:20 Good Health Message
1:30 Good Health Message
1:40 Good Health Message
1:50 Good Health Message
2:00 Good Health Message
2:10 Good Health Message
2:20 Good Health Message
2:30 Good Health Message
2:40 Good Health Message
2:50 Good Health Message
3:00 Good Health Message
In this example a total of 18 messages, frequently displayed on 35 lines, is used to communicate two events: Calibration Finished & Good Health.
Log information can be greatly enhanced by recording events instead of unit status at 10 second intervals. For example, the flight above could be reported as:
13:10:15 Unit Power On
13:10:21 Calibration Finished
13:13:21 Power Voltage Low // low voltage at shutdown
In this example, three informative events with the time they occurred is displayed on three lines.
This could make it possible to log multiple flights via a first in, first out buffer, e.g.:
13:10:15 Unit Power On
13:10:21 Calibration Finished
13:13:21 Power Voltage Low // nominal first flight w. low voltage at shutdown
13:20:15 Unit Power On
13:20:21 Calibration Finished
13:21:22 Rescue Initiated
13:21:26 Rescue Completed
13:23:21 Power Voltage Low // flight with rescue
13:30:21 Calibration Finished
13:31:22 Power Voltage Low
13:31:26 Power Voltage Nominal
13:33:21 Power Voltage Low // flight with low voltage event
A log event FIFO could make it possible to display more detailed information from multiple flights in fewer lines than a typical three minute flight.
HTH,
Phil
0:00 Calibration Finished
0:10 Good Health Message (this text is displayed on two lines on many smartphones)
0:20 Good Health Message
0:30 Good Health Message
0:40 Good Health Message
0:50 Good Health Message
1:00 Good Health Message
1:10 Good Health Message
1:20 Good Health Message
1:30 Good Health Message
1:40 Good Health Message
1:50 Good Health Message
2:00 Good Health Message
2:10 Good Health Message
2:20 Good Health Message
2:30 Good Health Message
2:40 Good Health Message
2:50 Good Health Message
3:00 Good Health Message
In this example a total of 18 messages, frequently displayed on 35 lines, is used to communicate two events: Calibration Finished & Good Health.
Log information can be greatly enhanced by recording events instead of unit status at 10 second intervals. For example, the flight above could be reported as:
13:10:15 Unit Power On
13:10:21 Calibration Finished
13:13:21 Power Voltage Low // low voltage at shutdown
In this example, three informative events with the time they occurred is displayed on three lines.
This could make it possible to log multiple flights via a first in, first out buffer, e.g.:
13:10:15 Unit Power On
13:10:21 Calibration Finished
13:13:21 Power Voltage Low // nominal first flight w. low voltage at shutdown
13:20:15 Unit Power On
13:20:21 Calibration Finished
13:21:22 Rescue Initiated
13:21:26 Rescue Completed
13:23:21 Power Voltage Low // flight with rescue
13:30:21 Calibration Finished
13:31:22 Power Voltage Low
13:31:26 Power Voltage Nominal
13:33:21 Power Voltage Low // flight with low voltage event
A log event FIFO could make it possible to display more detailed information from multiple flights in fewer lines than a typical three minute flight.
HTH,
Phil