Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Parfenov <a1994ndrey@gmail.com>
  • Loading branch information
Andrey1994 committed Jun 21, 2023
1 parent 4816cee commit 289d287
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions src/board_controller/openbci/galea_serial_v4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,25 +447,25 @@ void GaleaSerialV4::read_thread ()
timestamp_device;
// accel
aux_package[board_descr["auxiliary"]["accel_channels"][0].get<int> ()] =
accel_scale * cast_16bit_to_int32 (b + 96);
accel_scale * cast_16bit_to_int32 (b + 96 + offset);
aux_package[board_descr["auxiliary"]["accel_channels"][1].get<int> ()] =
accel_scale * cast_16bit_to_int32 (b + 98);
accel_scale * cast_16bit_to_int32 (b + 98 + offset);
aux_package[board_descr["auxiliary"]["accel_channels"][2].get<int> ()] =
accel_scale * cast_16bit_to_int32 (b + 100);
accel_scale * cast_16bit_to_int32 (b + 100 + offset);
// gyro
aux_package[board_descr["auxiliary"]["gyro_channels"][0].get<int> ()] =
gyro_scale * cast_16bit_to_int32 (b + 102);
gyro_scale * cast_16bit_to_int32 (b + 102 + offset);
aux_package[board_descr["auxiliary"]["gyro_channels"][1].get<int> ()] =
gyro_scale * cast_16bit_to_int32 (b + 104);
gyro_scale * cast_16bit_to_int32 (b + 104 + offset);
aux_package[board_descr["auxiliary"]["gyro_channels"][2].get<int> ()] =
gyro_scale * cast_16bit_to_int32 (b + 106);
gyro_scale * cast_16bit_to_int32 (b + 106 + offset);
// magnetometer
aux_package[board_descr["auxiliary"]["magnetometer_channels"][0].get<int> ()] =
magnetometer_scale * cast_16bit_to_int32 (b + 108);
magnetometer_scale * cast_16bit_to_int32 (b + 108 + offset);
aux_package[board_descr["auxiliary"]["magnetometer_channels"][1].get<int> ()] =
magnetometer_scale * cast_16bit_to_int32 (b + 110);
magnetometer_scale * cast_16bit_to_int32 (b + 110 + offset);
aux_package[board_descr["auxiliary"]["magnetometer_channels"][2].get<int> ()] =
magnetometer_scale * cast_16bit_to_int32 (b + 112);
magnetometer_scale * cast_16bit_to_int32 (b + 112 + offset);
push_package (aux_package, (int)BrainFlowPresets::AUXILIARY_PRESET);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/board_controller/openbci/galea_v4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ void GaleaV4::read_thread ()

for (int cur_package = 0; cur_package < num_packages; cur_package++)
{
int offset = cur_package * package_size;
int offset = cur_package * GaleaV4::package_size;
// exg (default preset)
exg_package[board_descr["default"]["package_num_channel"].get<int> ()] =
(double)b[0 + offset];
Expand Down

0 comments on commit 289d287

Please sign in to comment.