mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
Fix typos (#4839)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user