![]() |
eBoard
①⑧⑨
Written for SIA 2017/2018
|
This is the AX12Servo ghost struct :D. More...
#include <eagle_AX12Servo.h>
Public Member Functions | |
AX12Servo (void) | |
The constructor. More... | |
AX12Servo (DynamixelBoard &dBoard, optVAL_t servoID) | |
The constructor. More... | |
void | setPosition (int pos, int speed=0x3FF) |
This moves the Servo to the new position. More... | |
void | storePosition (int pos, int speed=0x3FF) |
This saves the Servo Position. More... | |
optVAL_t | getPosition (void) |
This "kind of" returns the Servo-Position. More... | |
bool | isMoving (void) |
Use this if you wan't to have a nice way of writing false. More... | |
Public Attributes | |
DynamixelBoard * | _conBoard |
int | storedPos |
stores the position the Servo should go to DynamixelBoard::action() More... | |
int | storedSpe |
stores the Speed of the Servo DynamixelBoard::action() More... | |
optVAL_t | id |
stores the id of the AX12Servo obejct More... | |
Private Attributes | |
int | actPos |
stores the actual pos or move-to pos of the AX12Servo More... | |
int | actSpe |
stores the actual 'would use speed' of the AX12Servo More... | |
This is the AX12Servo ghost struct :D.
You can use this class like this: You can use this class like this: You can use this class like this: You can use this class like this:
Definition at line 54 of file eagle_AX12Servo.h.
AX12Servo::AX12Servo | ( | void | ) |
The constructor.
AX12Servo::AX12Servo | ( | DynamixelBoard & | dBoard, |
optVAL_t | servoID | ||
) |
The constructor.
dBoard | this will be used to register new Servos |
servoID | the ID of the AX-12 Servo |
|
inline |
|
inline |
Use this if you wan't to have a nice way of writing false.
void AX12Servo::setPosition | ( | int | pos, |
int | speed = 0x3FF |
||
) |
This moves the Servo to the new position.
This will overwrite storedPos and storedSpeed!
pos | the Position the Servo should go to [0;1023 (w EBOARD_CLAMP)] |
speed | the speed of the Servo |
|
inline |
This saves the Servo Position.
Sets the values used by DynamixelBoard::action()
pos | the Position the Servo should go to [0;1023 (w EBOARD_CLAMP)] |
speed | the speed of the Servo |
Referenced by main().
DynamixelBoard* AX12Servo::_conBoard |
Definition at line 68 of file eagle_AX12Servo.h.
|
private |
stores the actual pos or move-to pos of the AX12Servo
Definition at line 162 of file eagle_AX12Servo.h.
|
private |
stores the actual 'would use speed' of the AX12Servo
Definition at line 164 of file eagle_AX12Servo.h.
optVAL_t AX12Servo::id |
stores the id of the AX12Servo obejct
Definition at line 159 of file eagle_AX12Servo.h.
int AX12Servo::storedPos |
stores the position the Servo should go to DynamixelBoard::action()
Definition at line 148 of file eagle_AX12Servo.h.
int AX12Servo::storedSpe |
stores the Speed of the Servo DynamixelBoard::action()
Definition at line 154 of file eagle_AX12Servo.h.