mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[wpilib] Make protected fields in accelerometers/gyros private (#6134)
This avoids needing add redundant JavaDocs to them, and better reflects how we design our modern classes (the classes modified here were around with minimal changes since 2008 or so).
This commit is contained in:
@@ -70,13 +70,13 @@ public class ADXL345_I2C implements NTSendable, AutoCloseable {
|
||||
public double ZAxis;
|
||||
}
|
||||
|
||||
protected I2C m_i2c;
|
||||
private I2C m_i2c;
|
||||
|
||||
protected SimDevice m_simDevice;
|
||||
protected SimEnum m_simRange;
|
||||
protected SimDouble m_simX;
|
||||
protected SimDouble m_simY;
|
||||
protected SimDouble m_simZ;
|
||||
private SimDevice m_simDevice;
|
||||
private SimEnum m_simRange;
|
||||
private SimDouble m_simX;
|
||||
private SimDouble m_simY;
|
||||
private SimDouble m_simZ;
|
||||
|
||||
/**
|
||||
* Constructs the ADXL345 Accelerometer with I2C address 0x1D.
|
||||
|
||||
@@ -67,13 +67,13 @@ public class ADXL345_SPI implements NTSendable, AutoCloseable {
|
||||
public double ZAxis;
|
||||
}
|
||||
|
||||
protected SPI m_spi;
|
||||
private SPI m_spi;
|
||||
|
||||
protected SimDevice m_simDevice;
|
||||
protected SimEnum m_simRange;
|
||||
protected SimDouble m_simX;
|
||||
protected SimDouble m_simY;
|
||||
protected SimDouble m_simZ;
|
||||
private SimDevice m_simDevice;
|
||||
private SimEnum m_simRange;
|
||||
private SimDouble m_simX;
|
||||
private SimDouble m_simY;
|
||||
private SimDouble m_simZ;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
|
||||
@@ -25,7 +25,7 @@ import edu.wpi.first.util.sendable.SendableRegistry;
|
||||
*/
|
||||
public class AnalogGyro implements Sendable, AutoCloseable {
|
||||
private static final double kDefaultVoltsPerDegreePerSecond = 0.007;
|
||||
protected AnalogInput m_analog;
|
||||
private AnalogInput m_analog;
|
||||
private boolean m_channelAllocated;
|
||||
|
||||
private int m_gyroHandle;
|
||||
|
||||
Reference in New Issue
Block a user