public class TTC580Utils extends Object
| Constructor and Description |
|---|
TTC580Utils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
extractByte(long pdo,
int n) |
static int |
getBrakesPowered(long pdo)
return brakes powered status read on pdo4 byte 3 bit 0
|
static int |
getCheckRotation(long pdo)
return triple switch check rotation read on pdo4 byte 4 bit 5
|
static int |
getEngineeringMode(long pdo)
return engineering mode status read on pdo4 byte 4 bit 2 and 1
|
static int |
getErrorCode(int error) |
static int |
getErrorCounter(int error) |
static int |
getErrorSource(int error) |
static int |
getErrorType(int error) |
static int |
getFilterPresenceXm(long pdo)
return filter presence sensor for clampXminus
|
static int |
getFilterPresenceXp(long pdo)
return filter presence sensor value for clampXplus.
|
static int |
getIOModuleStatus(long pdo)
return io module status.
|
static int |
getLockout(long pdo)
return lockout status read on pdo4 byte 4 bit 4 and 3
|
static int |
getLockXm(long pdo)
return lock sensor for clampXminus
|
static int |
getLockXp(long pdo)
return lock sensor for clampXplus
|
static int |
getOffset1Xminus(long sdo) |
static int |
getOffset1Xplus(long sdo) |
static int |
getOffset2Xminus(long sdo) |
static int |
getOffset2Xplus(long sdo) |
static int |
getSensorValue(long pdo,
int n,
int bit)
extract a one bit sensor value from pdo
|
static int |
getShutterInactive(long pdo)
return shutter inactive status read on pdo4 byte 3 bit 2
|
static int |
getSleep(long pdo)
return sleep status read on pdo4 byte 3 bit 1
|
static int |
getStopRotation(long pdo)
return triple switch stop rotation read on pdo4 byte 4 bit 6
|
static int |
getStopUnclamp(long pdo)
return triple switch stop unclamp read on pdo4 byte 4 bit 7
(name on hyttc580 : force rotation)
|
public static int getLockXm(long pdo)
pdo - public static int getFilterPresenceXm(long pdo)
pdo - public static int getLockXp(long pdo)
pdo - public static int getFilterPresenceXp(long pdo)
pdo - public static int getIOModuleStatus(long pdo)
pdo - public static int getBrakesPowered(long pdo)
pdo - public static int getSleep(long pdo)
pdo - public static int getShutterInactive(long pdo)
pdo - public static int getEngineeringMode(long pdo)
pdo - public static int getLockout(long pdo)
pdo - public static int getCheckRotation(long pdo)
pdo - public static int getStopRotation(long pdo)
pdo - public static int getStopUnclamp(long pdo)
pdo - public static int getOffset1Xminus(long sdo)
sdo - public static int getOffset1Xplus(long sdo)
sdo - public static int getOffset2Xminus(long sdo)
sdo - public static int getOffset2Xplus(long sdo)
sdo - public static int getErrorSource(int error)
public static int getErrorType(int error)
public static int getErrorCounter(int error)
public static int getErrorCode(int error)
public static int getSensorValue(long pdo,
int n,
int bit)
pdo - n - byte numberbit - bit numberpublic static int extractByte(long pdo,
int n)
Copyright © 2023 LSST. All rights reserved.