Actuator messages - Torrib/EIT GitHub Wiki
Action messages are messages that will trigger something on the device and/or actuators.
Move actuators
Moves a set of actuators
{
"action": "move",
"actuators": [
{"id": 4, "speed": -50 },
{"id": 2, "speed": 70 }
]}
Note: Speed is a value between -100 and 100. -100 is max reverse and 100 is max speed.
Set actuator angle
Sets the actuators to the given positions.
{
"action": "setAngle",
"actuators": [
{"id": 4, "angle": 240 },
{"id": 2, "angle": 20 }
]}
Note: Max angle is 300
Set angle limit
Sets the limit of where the actuator can move
{
"action": "setAngleLimit",
"actuators": [
{"id": 4, "clockwise": 10, "counterclockwise": 30},
{"id": 2, "clockwise": 220, "counterclockwise": 240 }
]}