[COPY&PASTE] This is the AX12Servo ghost struct :D
More...
#include <eBoard.h>
[COPY&PASTE] This is the AX12Servo ghost struct :D
- Author
- EagleoutIce
[COPY&PASTE] You can use this class like this:
#include "/home/eagleoutice/Dokumente/proj/_sia/src/eBoard.h"
Links.setPosition(500);
Rechts.setPosition(200);
for(;;) {}
}
Definition at line 3086 of file eBoard.h.
◆ AX12Servo() [1/2]
AX12Servo::AX12Servo |
( |
void |
| ) |
|
The constructor.
- Warning
- This constructor shouldn't be called!
◆ AX12Servo() [2/2]
The constructor.
- Parameters
-
dBoard | this will be used to register new Servos |
servoID | the ID of the AX-12 Servo |
◆ changeMotorID()
void AX12Servo::changeMotorID |
( |
optVAL_t |
newID | ) |
|
|
inline |
change the AX-12 Servo this object should speak to
- Parameters
-
newID | the new ID of the Servo |
- Note
- this should change the hardwareID of the Servo... but we don't want to mess things up do we?
-
if we want to: _servoHandler.setID(this->id, newID);
◆ getPosition()
optVAL_t AX12Servo::getPosition |
( |
void |
| ) |
|
|
inline |
This "kind of" returns the Servo-Position.
- Returns
- The position the servo is (actually driving to)
Referenced by main().
◆ isMoving()
bool AX12Servo::isMoving |
( |
void |
| ) |
|
|
inline |
Use this if you wan't to have a nice way of writing false.
- Note
- this doesnt talk to the servo
- Returns
- false
◆ ledOff()
void AX12Servo::ledOff |
( |
void |
| ) |
|
|
inline |
Noone needs the AX-12 Servo LED^^.
◆ ledOn()
void AX12Servo::ledOn |
( |
void |
| ) |
|
|
inline |
Noone needs the AX-12 Servo LED^^.
◆ setID()
change the AX-12 Servo this object should speak to
- Parameters
-
newID | the new ID of the Servo |
- Note
- why should anyone need that?
◆ setPosition()
void AX12Servo::setPosition |
( |
int |
pos, |
|
|
int |
speed = 0x3FF |
|
) |
| |
This moves the Servo to the new position.
This will overwrite storedPos and storedSpeed!
- Parameters
-
pos | the Position the Servo should go to [0;1023 (w EBOARD_CLAMP)] |
speed | the speed of the Servo |
◆ setPositionMode()
void AX12Servo::setPositionMode |
( |
void |
| ) |
|
|
inline |
set the AX-12 Servo to positionMode
- Note
- as there is no rotationMode there is nothing this does
◆ setSpeed()
๐ง I prevent errors!
- Note
- as there is no rotationMode there is nothing this does
◆ setSpeedMode()
void AX12Servo::setSpeedMode |
( |
void |
| ) |
|
|
inline |
set the AX-12 Servo NOT to speedMode
- Note
- as there is no rotationMode there is nothing this does
◆ setTorque()
void AX12Servo::setTorque |
( |
uint16_t |
| ) |
|
|
inline |
◆ storePosition()
void AX12Servo::storePosition |
( |
int |
pos, |
|
|
int |
speed = 0x3FF |
|
) |
| |
|
inline |
◆ _conBoard
◆ actPos
◆ actSpe
◆ id
◆ storedPos
◆ storedSpe
The documentation for this struct was generated from the following file: