Expand description
Different models of Dynamixel servos use different control tables.
This crate aims to provide a common interface to access the control tables of different models.
Individual model control tables can be accessed through the models module.
Or an exact model name or number can be used to create a new ControlTable instance.
§Example
use dynamixel_ct::{models };
use dynamixel_ct::models::XM430;
use dynamixel_registers::Register;
println!("{:?}", XM430::get(Register::GoalPosition));
println!("{:?}", XM430::get(Register::GoalCurrent));
println!("{:?}", XM430::get(Register::GoalVelocity));
// or
println!("{:?}", XM430::GOAL_POSITION);
println!("{:?}", XM430::GOAL_CURRENT);
println!("{:?}", XM430::GOAL_VELOCITY);§Example
use dynamixel_ct::{models, ControlTable};
use dynamixel_ct::models::{XM430, YM070};
use dynamixel_registers::Register::*;
use dynamixel_registers::models::Model;
let new = ControlTable::new_with_model(Model::XM430_W210);
println!("{:?}", XM430::get(GoalPosition));
println!("{:?}", YM070::get(GoalPosition));
println!("{:?}", new.get(GoalPosition));Re-exports§
pub use control_table::ControlTable;
Modules§
- control_
table - Control table for a specific model.
- models
- The Control Tables for all supported models.
These structs can be used with
no_std
Structs§
- Register
Data - RegisterData is used to store the address and length of register.
Enums§
- Model
- Dynamixel model names and numbers
- Model
Group - Model
OrModel Group - Register