DYNAMIXEL Driver 0.1.0
API reference
Loading...
Searching...
No Matches
Public Attributes | List of all members
dynamixel::Config Struct Reference

Everything the driver needs to know about the bus. More...

#include <dynamixel_types.hpp>

Public Attributes

Protocol protocol {Protocol::V2}
 Packet format of every servo on the bus.
 
uint32_t baud
 Bit rate of the UART; applied through SetBaudRate() when the port has it.
 
uint32_t reply_timeout_us
 Longest wait for the first byte of a reply (kMinTimeoutUs to kMaxTimeoutUs).
 
uint32_t gap_timeout_us {5'000}
 Longest wait for the next byte inside a packet.
 
uint32_t reboot_wait_us {500'000}
 
uint32_t baud_change_wait_us {10'000}
 Wait after a servo's baud rate changed.
 
uint8_t retries
 Repeats of a ping or read after a bad or missing reply, 0 to kMaxRetries.
 
EchoMode echo {EchoMode::None}
 Single-wire loopback verification.
 
AlertPolicy alert_policy
 What a hardware alert in a reply does to the call.
 
StatusReturn status_return
 How much the servos answer (applies to the whole bus).
 
uint32_t broadcast_timeout_us
 Wait for each reply of a broadcast ping (the servos answer in ID order).
 
bool allow_destructive
 Permit Factory Reset, Backup Restore and writes to the ID with broadcast.
 

Detailed Description

Everything the driver needs to know about the bus.

The defaults suit a protocol 2.0 bus at the factory baud rate; the timing fields are driver side (the e-Manual gives no reply deadline: see docs/configuration.md, ambiguities).

Member Data Documentation

◆ alert_policy

AlertPolicy dynamixel::Config::alert_policy
Initial value:

What a hardware alert in a reply does to the call.

◆ allow_destructive

bool dynamixel::Config::allow_destructive
Initial value:
{
false}

Permit Factory Reset, Backup Restore and writes to the ID with broadcast.

◆ baud

uint32_t dynamixel::Config::baud
Initial value:
{
57'600}

Bit rate of the UART; applied through SetBaudRate() when the port has it.

◆ broadcast_timeout_us

uint32_t dynamixel::Config::broadcast_timeout_us
Initial value:
{
100'000}

Wait for each reply of a broadcast ping (the servos answer in ID order).

◆ reboot_wait_us

uint32_t dynamixel::Config::reboot_wait_us {500'000}

Wait after a Reboot, Restore or Factory Reset reply before the next instruction.

◆ reply_timeout_us

uint32_t dynamixel::Config::reply_timeout_us
Initial value:
{
20'000}

Longest wait for the first byte of a reply (kMinTimeoutUs to kMaxTimeoutUs).

◆ retries

uint8_t dynamixel::Config::retries
Initial value:
{
1}

Repeats of a ping or read after a bad or missing reply, 0 to kMaxRetries.

◆ status_return

StatusReturn dynamixel::Config::status_return
Initial value:
{
@ All
Every instruction addressed to one servo is answered. Factory default.

How much the servos answer (applies to the whole bus).


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