Skip to content

Commit

Permalink
Fix galea beta aux timestamps (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
MusaMahmood authored Aug 29, 2024
1 parent 6118510 commit 76d6cdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/board_controller/openbci/galea_v4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,11 +497,11 @@ void GaleaV4::read_thread ()
aux_package[board_descr["auxiliary"]["battery_channel"].get<int> ()] =
(double)b[77 + offset];
aux_package[board_descr["auxiliary"]["timestamp_channel"].get<int> ()] =
timestamp_device + time_delta - half_rtt;
timestamp_device_converted + time_delta - half_rtt;
aux_package[board_descr["auxiliary"]["other_channels"][0].get<int> ()] =
pc_timestamp;
aux_package[board_descr["auxiliary"]["other_channels"][1].get<int> ()] =
timestamp_device;
timestamp_device_converted;
// accel
aux_package[board_descr["auxiliary"]["accel_channels"][0].get<int> ()] =
accel_scale * (double)cast_16bit_to_int32_swap_order (b + 96 + offset);
Expand Down

0 comments on commit 76d6cdc

Please sign in to comment.