#include <Arduino.h>
#include "dynamixel.h"
#include "axialMotor.h"
#include "encoder/Encoder.cpp"
Go to the source code of this file.
|
| bool | readDataToStruct (dataPack *data) |
| | Iterates through message one byte at a time casts it to a dataPack struct. More...
|
| |
| void | readMessage (char *message) |
| | Iterates through message one character at a time until the end character is found and returns a char array of the message. More...
|
| |
| void | sendMessage (dataPack message) |
| | Sends an encoded message over serial. More...
|
| |
| void | moveAbsolute (uint16_t p1, uint16_t p2, uint16_t p3, uint16_t p4, uint16_t p5, uint16_t p6) |
| | move motors to an absolute position More...
|
| |
| void | moveIncremental (uint16_t p1, uint16_t p2, uint16_t p3, uint16_t p4, uint16_t p5, uint16_t p6) |
| | move motors to an incremental position More...
|
| |
| void | setDrawerGoalState (bool drawer1, bool drawer2, bool drawer3) |
| |
| void | stopMotors () |
| |
| void | startMotors () |
| |
| void | setup () |
| |
| void | loop () |
| |
| void moveAbsolute |
( |
uint16_t |
p1, |
|
|
uint16_t |
p2, |
|
|
uint16_t |
p3, |
|
|
uint16_t |
p4, |
|
|
uint16_t |
p5, |
|
|
uint16_t |
p6 |
|
) |
| |
move motors to an absolute position
- Parameters
-
| p1,...,p6 | : position for each motor |
Definition at line 211 of file main.ino.
| void moveIncremental |
( |
uint16_t |
p1, |
|
|
uint16_t |
p2, |
|
|
uint16_t |
p3, |
|
|
uint16_t |
p4, |
|
|
uint16_t |
p5, |
|
|
uint16_t |
p6 |
|
) |
| |
move motors to an incremental position
- Parameters
-
| p1,...,p6 | : position for each motor |
Definition at line 221 of file main.ino.
| bool readDataToStruct |
( |
dataPack * |
data | ) |
|
Iterates through message one byte at a time casts it to a dataPack struct.
- Parameters
-
| data | : empty dataPack object the message will be written to |
- Returns
- data : dataPack object containging the unpacked message data
Definition at line 182 of file main.ino.
| void readMessage |
( |
char * |
message | ) |
|
Iterates through message one character at a time until the end character is found and returns a char array of the message.
- Parameters
-
| message | : empty character array |
- Returns
- message : character array containing message
Definition at line 161 of file main.ino.
Sends an encoded message over serial.
- Parameters
-
| message | : empty dataPack object the message will be written to |
Definition at line 202 of file main.ino.
| void setDrawerGoalState |
( |
bool |
drawer1, |
|
|
bool |
drawer2, |
|
|
bool |
drawer3 |
|
) |
| |
| char endOfMessageChar = '\0' |
| const int MESSAGE_SIZE = 19 |