Skip to content

Commit

Permalink
Updated data recorder
Browse files Browse the repository at this point in the history
  • Loading branch information
thobotics committed Feb 18, 2023
1 parent 62539ce commit 4065531
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data_recorder/data_recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def callback(msg, csv_file):

# Write the message data to the CSV file
writer.writerow([
time.time(),
msg.tick,
msg.angle,
msg.safety_switch_pressed,
msg.flex_myobrick_pos_encoder,
Expand All @@ -38,7 +38,7 @@ def callback(msg, csv_file):
# Write header to CSV file if it is empty
if csv_file.tell() == 0:
csv.writer(csv_file).writerow([
'timestamp',
'tick',
'angle',
'safety_switch_pressed',
'flex_myobrick_pos_encoder',
Expand Down

0 comments on commit 4065531

Please sign in to comment.