mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-05 03:21:42 +00:00
Remove add 1 comment
This commit is contained in:
@@ -649,7 +649,7 @@ void ADIS16470_IMU::Acquire() {
|
||||
|
||||
// Read number of bytes currently stored in the buffer
|
||||
int data_count = m_spi->ReadAutoReceivedData(buffer, 0, 0_s);
|
||||
// Check if frame is incomplete. Add 1 because of timestamp
|
||||
// Check if frame is incomplete
|
||||
int data_remainder = data_count % dataset_len;
|
||||
// Remove incomplete data from read count
|
||||
int data_to_read = data_count - data_remainder;
|
||||
|
||||
@@ -700,7 +700,7 @@ public class ADIS16448_IMU implements AutoCloseable, Sendable {
|
||||
|
||||
// Read number of bytes currently stored in the buffer
|
||||
int data_count = m_spi.readAutoReceivedData(buffer, 0, 0);
|
||||
// Check if frame is incomplete. Add 1 because of timestamp
|
||||
// Check if frame is incomplete
|
||||
int data_remainder = data_count % dataset_len;
|
||||
// Remove incomplete data from read count
|
||||
int data_to_read = data_count - data_remainder;
|
||||
|
||||
@@ -691,7 +691,7 @@ public class ADIS16470_IMU implements AutoCloseable, Sendable {
|
||||
|
||||
// Read number of bytes currently stored in the buffer
|
||||
int data_count = m_spi.readAutoReceivedData(buffer, 0, 0);
|
||||
// Check if frame is incomplete. Add 1 because of timestamp
|
||||
// Check if frame is incomplete
|
||||
int data_remainder = data_count % dataset_len;
|
||||
// Remove incomplete data from read count
|
||||
int data_to_read = data_count - data_remainder;
|
||||
|
||||
Reference in New Issue
Block a user