![]() |
MercurySDK
Software development kit for Mercury digital servos
|
Go to the source code of this file.
Macros | |
| #define | ADDR_MX_TORQUE_ENABLE 0x30 |
| #define | ADDR_MX_GOAL_POSITION 0x4e |
| #define | ADDR_MX_PRESENT_POSITION 0x56 |
| #define | MCY_ID 1 |
| #define | BAUDRATE 1000000 |
| #define | DEVICENAME "/dev/ttyACM0" |
| #define | TORQUE_ENABLE 1 |
| #define | TORQUE_DISABLE 0 |
| #define | MCY_POSITION_VALUE 0x02cd |
| #define | ESC_ASCII_VALUE 0x1b |
Functions | |
| int | getch () |
| int | kbhit (void) |
| int | main () |
| #define ADDR_MX_GOAL_POSITION 0x4e |
Definition at line 46 of file reg_write.cpp.
| #define ADDR_MX_PRESENT_POSITION 0x56 |
Definition at line 47 of file reg_write.cpp.
| #define ADDR_MX_TORQUE_ENABLE 0x30 |
Definition at line 45 of file reg_write.cpp.
| #define BAUDRATE 1000000 |
Definition at line 51 of file reg_write.cpp.
| #define DEVICENAME "/dev/ttyACM0" |
Definition at line 52 of file reg_write.cpp.
| #define ESC_ASCII_VALUE 0x1b |
Definition at line 59 of file reg_write.cpp.
| #define MCY_ID 1 |
Definition at line 50 of file reg_write.cpp.
| #define MCY_POSITION_VALUE 0x02cd |
Definition at line 57 of file reg_write.cpp.
| #define TORQUE_DISABLE 0 |
Definition at line 56 of file reg_write.cpp.
| #define TORQUE_ENABLE 1 |
Definition at line 55 of file reg_write.cpp.
| int getch | ( | ) |
Definition at line 61 of file reg_write.cpp.
| int kbhit | ( | void | ) |
Definition at line 78 of file reg_write.cpp.
| int main | ( | ) |
Definition at line 109 of file reg_write.cpp.