public final class InternalAccelerometer extends java.lang.Object implements SensorModule, IAccelerometer, LiveWindowSendable
IAccelerometer.AccelRange| Modifier and Type | Field and Description |
|---|---|
private static IAccelerometer.AccelRange |
m_range |
private ITable |
m_table
The m_table.
|
| Modifier | Constructor and Description |
|---|---|
private |
InternalAccelerometer()
Instantiates a new RI o_ accelerometer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disableModule()
Disable the module
|
void |
enableModule()
Enable the module
|
static double |
getAccelerationX()
Gets the x.
|
static double |
getAccelerationY()
Gets the y.
|
static double |
getAccelerationZ()
Gets the z.
|
static IAccelerometer.AccelRange |
getAccelRange() |
boolean |
getModuleEnabled() |
java.lang.String |
getSmartDashboardType() |
ITable |
getTable() |
void |
initTable(ITable subtable) |
static void |
setAccelRange(IAccelerometer.AccelRange range) |
void |
startLiveWindowMode() |
void |
stopLiveWindowMode() |
void |
updateTable() |
private ITable m_table
private static IAccelerometer.AccelRange m_range
private InternalAccelerometer()
range - the rangepublic static void setAccelRange(IAccelerometer.AccelRange range)
public static IAccelerometer.AccelRange getAccelRange()
public static double getAccelerationX()
public static double getAccelerationY()
public static double getAccelerationZ()
public java.lang.String getSmartDashboardType()
getSmartDashboardType in interface Sendablepublic void updateTable()
updateTable in interface UpdatingSendablepublic void startLiveWindowMode()
startLiveWindowMode in interface LiveWindowSendablepublic void stopLiveWindowMode()
stopLiveWindowMode in interface LiveWindowSendablepublic void enableModule()
enableModule in interface Modulepublic void disableModule()
disableModule in interface Modulepublic boolean getModuleEnabled()
getModuleEnabled in interface Module