public class CanOpenMG550P extends CanOpenDevice implements AcceleroInterface
| Modifier and Type | Field and Description |
|---|---|
static double |
ACCELERATION_CF |
static double |
ANGULARVELOCITY_CF |
protected int |
cobid1
define cobid to be able to read values from PDO data.
|
protected int |
cobid2 |
booted, dataProviderDictionaryService, errorHistory, errorRegister, inError, initialized, lastErrorCode, lastErrorName, name, nodeID, path, serialNB, subs, tcpProxyalertSeparator| Constructor and Description |
|---|
CanOpenMG550P() |
| Modifier and Type | Method and Description |
|---|---|
void |
build() |
void |
computeAirmass() |
double |
computeGravity() |
StatusDataPublishedByAccelerometer |
createStatusDataPublishedByAccelerometer() |
void |
doInitializePDOs()
Do nothing if this device doesn't send PDOs except log for debug purpose.
|
static short |
extractValue(long pdo,
int axe)
Extract angular velocity or acceleration for one axe.
|
double[] |
getAccelerations() |
double |
getAirmass() |
double[] |
getAngularVelocities() |
void |
init() |
String |
printAccelerations()
for tests and debug
|
String |
printAngularVelocities()
for tests and debug
|
String |
printSerialNumber()
For accelerometer return deviceType because serial number is not
configured on device.
|
void |
publishDataAccelero() |
void |
updateFromPDO(org.lsst.ccs.drivers.canopenjni.PDOData pdo)
process PDOData to retrieve data from this device.
|
configAsHeartbeatConsumer, configAsHeartbeatProducer, createStatusDataPublishedByCanOpenDevice, displayError, displayErrorHistory, displayErrorRegister, getAlertService, getErrorHistory, getErrorHistoryNB, getErrorRegister, getLastErrorCode, getLastErrorName, getName, getNodeID, getPath, getSerialNB, getSubsystem, getTcpProxy, initializeAndCheckHardware, isBooted, isInError, isInitialized, onEmergencyMessage, publishData, readDeviceType, readErrorRegister, readNumberOfErrors, readSDO, resetError, saveParameters, setBooted, toString, updateDeviceInfo, updateErrorHistory, writeSDO, writeTransmissionTypeToDeviceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckBooted, checkId, checkInitialized, createStatusDataPublishedByHardware, initializePDOs, printState, raiseAlarmIfMissing, raiseWarningIfMissingonFault, onFaultResetclearAlarm, getAlertSeparator, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarmOnlyIfNew, raiseAlertOnlyEveryTenMinutes, raiseAlertOnlyEveryTenMinutes, raiseAlertOnlyIfNew, raiseWarning, raiseWarning, raiseWarning, raiseWarning, raiseWarningOnlyEveryTenMinutes, raiseWarningOnlyIfNewprotected int cobid1
protected int cobid2
public static final double ANGULARVELOCITY_CF
public static final double ACCELERATION_CF
public double getAirmass()
getAirmass in interface AcceleroInterfacepublic double[] getAngularVelocities()
public double[] getAccelerations()
public void build()
build in interface org.lsst.ccs.framework.HasLifecyclebuild in class CanOpenDevicepublic void init()
init in interface org.lsst.ccs.framework.HasLifecycleinit in class CanOpenDevicepublic void doInitializePDOs()
throws org.lsst.ccs.drivers.commons.DriverException
CanOpenDevicedoInitializePDOs in interface PieceOfHardwaredoInitializePDOs in class CanOpenDeviceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void updateFromPDO(org.lsst.ccs.drivers.canopenjni.PDOData pdo)
updateFromPDO in interface PieceOfHardwareupdateFromPDO in class CanOpenDevicepdo - public double computeGravity()
public void computeAirmass()
public String printSerialNumber()
printSerialNumber in class CanOpenDevice@Command(type=QUERY, level=1, description="print values updated by PDOs to debug and test") public String printAngularVelocities()
@Command(type=QUERY, level=1, description="print values updated by PDOs to debug and test") public String printAccelerations()
public static short extractValue(long pdo,
int axe)
pdo - axe - public void publishDataAccelero()
public StatusDataPublishedByAccelerometer createStatusDataPublishedByAccelerometer()
Copyright © 2023 LSST. All rights reserved.