This allows eeprom and telem files to be correlated accurately
Signed-off-by: Keith Packard <keithp@keithp.com>
LinkedList<AltosRecord> pad_records;
AltosState state;
LinkedList<AltosRecord> pad_records;
AltosState state;
- static final int ALTOS_CSV_VERSION = 3;
+ static final int ALTOS_CSV_VERSION = 4;
*
* General info
* version number
*
* General info
* version number
* flight number
* callsign
* time (seconds since boost)
* flight number
* callsign
* time (seconds since boost)
+ * clock (tick count / 100)
*/
void write_general_header() {
*/
void write_general_header() {
- out.printf("version,serial,flight,call,time,rssi,lqi");
+ out.printf("version,serial,flight,call,time,clock,rssi,lqi");
}
void write_general(AltosRecord record) {
}
void write_general(AltosRecord record) {
- out.printf("%s, %d, %d, %s, %8.2f, %4d, %3d",
+ out.printf("%s, %d, %d, %s, %8.2f, %8.2f, %4d, %3d",
ALTOS_CSV_VERSION, record.serial, record.flight, record.callsign,
ALTOS_CSV_VERSION, record.serial, record.flight, record.callsign,
+ (double) record.time, (double) record.tick / 100.0,
record.rssi,
record.status & 0x7f);
}
record.rssi,
record.status & 0x7f);
}