eBoard ๐Ÿ‰  โ‘ โ‘งโ‘จ
Written for SIA 2017/2018
DynamixelBoard Struct Reference

[COPY&PASTE] This is the DynamixelBoard ghost struct :D More...

#include <eBoard.h>

+ Collaboration diagram for DynamixelBoard:

Public Member Functions

 DynamixelBoard (SoccerBoard &)
 The constructor. More...
 
void changeId (optVAL_t)
 ๐Ÿ”ง I prevent errors! More...
 
void changeMotorID (optVAL_t)
 ๐Ÿ”ง I prevent errors! More...
 
void ledOn (optVAL_t)
 ๐Ÿ”ง I prevent errors! More...
 
void ledOff (optVAL_t)
 ๐Ÿ”ง I prevent errors! More...
 
void action (void)
 will force every AX12Servo to drive to AX12Servo::storedPos with AX12Servo::storedSpeed More...
 

Protected Attributes

AX12Servoconnected [2]
 stores the pointers to the registerd AX12Servo More...
 

Detailed Description

[COPY&PASTE] This is the DynamixelBoard ghost struct :D

Author
EagleoutIce

[COPY&PASTE] You can use this class like this:

#include <eBoard.h>
//manual: '#include "/path/to/eBoard.h"'
DynamixelBoard servoBoard(board);
AX12Servo Links(servoBoard,1);
AX12Servo Rechts(servoBoard,2);
int main() {
Links.setPosition(500);
Rechts.setPosition(200);
for(;;) {}
}

Definition at line 3305 of file eBoard.h.

Constructor & Destructor Documentation

◆ DynamixelBoard()

DynamixelBoard::DynamixelBoard ( SoccerBoard )
inline

The constructor.

Member Function Documentation

◆ action()

void DynamixelBoard::action ( void  )
inline

will force every AX12Servo to drive to AX12Servo::storedPos with AX12Servo::storedSpeed

Referenced by main().

+ Here is the caller graph for this function:

◆ changeId()

void DynamixelBoard::changeId ( optVAL_t  )
inline

๐Ÿ”ง I prevent errors!

◆ changeMotorID()

void DynamixelBoard::changeMotorID ( optVAL_t  )
inline

๐Ÿ”ง I prevent errors!

◆ ledOff()

void DynamixelBoard::ledOff ( optVAL_t  )
inline

๐Ÿ”ง I prevent errors!

◆ ledOn()

void DynamixelBoard::ledOn ( optVAL_t  )
inline

๐Ÿ”ง I prevent errors!

Member Data Documentation

◆ connected

AX12Servo* DynamixelBoard::connected[2]
protected

stores the pointers to the registerd AX12Servo

Note
in the docs, the Number will appear as 2, but it's the value of EBOARD_SPI_SERVO_MAX

Definition at line 3332 of file eBoard.h.


The documentation for this struct was generated from the following file: