The hub of all incomming and outgoing connections
Methods
(static) commandTorque()
Sends command torque command
(static) disableHV()
Sends disable HV command
(static) enableHV()
Sends enable HV command
(static) enPrecharge()
Send precharge enable command
(static) primBrakeOff()
Sends primary brake off command
(static) primBrakeOn()
Send primary brake on command
(static) secBrakeOff()
Sends secondary brake off command
(static) secBrakeOn()
Sends Secondary brake on command
(static) sendEBrake()
Sends Emergency Brake Command
(static) sendHVPing()
Sends ping message to HV beaglebone
(static) sendLVPing()
Sends ping message to LV beaglebone
(static) sendOverride()
Sends Override state command
(static) sendPropulse()
Sends Propulsion command
(static) sendPumpDown()
Sends pumpdown command
(static) sendReadyCommand()
Sends Ready for pumpdown command
(static) sendReadyPump()
Sends ready for pumpdown command
(static) toggleLatch(state)
Sends toggle latch command
Parameters:
Name | Type | Description |
---|---|---|
state |
true for on false for off |
(static) toggleSafety(state)
Sends toggle safety command
Parameters:
Name | Type | Description |
---|---|---|
state |
true of on false for off |
(inner) sendHVCommand(msg)
Sends a message to the HV beaglebon
Parameters:
Name | Type | Description |
---|---|---|
msg |
String | Message to send |
(inner) sendLVCommand(msg)
Sends a message to the LV beaglebone
Parameters:
Name | Type | Description |
---|---|---|
msg |
String | Message to send |
(inner) sendPacket(ip, port, msg)
Sends a packet to given ip and port over TCP
Parameters:
Name | Type | Description |
---|---|---|
ip |
String | IP to send packet to |
port |
* | Port to send packet to |
msg |
* | Message to include in packet |