This commit is contained in:
sciencewhiz
2022-12-21 06:53:00 -08:00
committed by GitHub
parent dd8ecfdd54
commit d20594db0d
20 changed files with 30 additions and 25 deletions

View File

@@ -491,12 +491,12 @@ public class ADIS16448_IMU implements AutoCloseable, NTSendable {
/* Check max */
if (m_decRate > 9) {
DriverStation.reportError(
"Attemted to write an invalid decimation value. Capping at 9", false);
"Attempted to write an invalid decimation value. Capping at 9", false);
m_decRate = 9;
}
if (m_decRate < 0) {
DriverStation.reportError(
"Attemted to write an invalid decimation value. Capping at 0", false);
"Attempted to write an invalid decimation value. Capping at 0", false);
m_decRate = 0;
}
@@ -550,7 +550,7 @@ public class ADIS16448_IMU implements AutoCloseable, NTSendable {
m_offset_data_gyro_rate_x = new double[size];
m_offset_data_gyro_rate_y = new double[size];
m_offset_data_gyro_rate_z = new double[size];
// Set acculumate count to 0
// Set accumulate count to 0
m_accum_count = 0;
}
}

View File

@@ -565,7 +565,7 @@ public class ADIS16470_IMU implements AutoCloseable, NTSendable {
return 2;
}
if (m_reg > 1999) {
DriverStation.reportError("Attemted to write an invalid deimation value.", false);
DriverStation.reportError("Attempted to write an invalid deimation value.", false);
m_reg = 1999;
}
m_scaled_sample_rate = (((m_reg + 1.0) / 2000.0) * 1000000.0);

View File

@@ -61,7 +61,7 @@ public class AddressableLEDBuffer {
// Difference between highest and lowest value of any rgb component
final int chroma = (s * v) / 255;
// Beacuse hue is 0-180 rather than 0-360 use 30 not 60
// Because hue is 0-180 rather than 0-360 use 30 not 60
final int region = (h / 30) % 6;
// Remainder converted from 0-30 to 0-255

View File

@@ -87,7 +87,7 @@ public class Color {
// Difference between highest and lowest value of any rgb component
final int chroma = (s * v) / 255;
// Beacuse hue is 0-180 rather than 0-360 use 30 not 60
// Because hue is 0-180 rather than 0-360 use 30 not 60
final int region = (h / 30) % 6;
// Remainder converted from 0-30 to 0-255