UMRT Arm Firmware Library
SYSEX_COMMANDS.hpp
Go to the documentation of this file.
1 
7 #ifndef UMRT_ARM_FIRMWARE_LIB_SYSEX_COMMANDS_HPP
8 #define UMRT_ARM_FIRMWARE_LIB_SYSEX_COMMANDS_HPP
9 
10 // Using stdint.h because Arduino interprets this file and doesn't have cstdint...
11 #include <stdint.h> // NOLINT(modernize-deprecated-headers)
12 
16 // TODO: Consider adding a keep-alive
17 // Note: Only allowed to use 0x00-0x0F, beyond that would have to nest commands
18 // Multi-byte numbers are always transmitted in little-endian
19 enum SysexCommands : uint8_t {
25  ARDUINO_ECHO = 0x00,
26 
35  SET_SPEED = 0x01,
36 
44  GET_SPEED = 0x02,
45 
56  SEND_STEP = 0x03,
57 
69  SEEK_POS = 0x04,
70 
78  GET_POS = 0x05,
79 
89  SET_GRIPPER = 0x06
90 };
91 
92 #endif //UMRT_ARM_FIRMWARE_LIB_SYSEX_COMMANDS_HPP
SysexCommands
Lists the command IDs and associated requirements which can be sent over Firmata to a Stepper Control...
Definition: SYSEX_COMMANDS.hpp:19
@ SET_GRIPPER
Sets the target position of the gripper servo.
Definition: SYSEX_COMMANDS.hpp:89
@ GET_POS
Gets the current number of steps from the zero point for a motor.
Definition: SYSEX_COMMANDS.hpp:78
@ SEEK_POS
Moves a motor to a specific step position.
Definition: SYSEX_COMMANDS.hpp:69
@ SEND_STEP
Moves a motor a specific number of steps.
Definition: SYSEX_COMMANDS.hpp:56
@ GET_SPEED
Gets the current speed of a motor.
Definition: SYSEX_COMMANDS.hpp:44
@ SET_SPEED
Sets the speed of a motor.
Definition: SYSEX_COMMANDS.hpp:35
@ ARDUINO_ECHO
Respond back with the payload.
Definition: SYSEX_COMMANDS.hpp:25