Struct drs_0x01::prelude::Servo[][src]

pub struct Servo { /* fields omitted */ }

This struct allows you to quickly build messages for a servomotor.

Methods

impl Servo
[src]

Create a new Servo with the given ID.

Notes

  • Valid ID are in the range 0..253.
  • 254 is the broadcast ID.

Change the servo ID.

Return the servo ID.

Create a reboot message requesting the servo to reboot. During the reboot all changes applied to the EEP memory will take effect.

Request the servo to go to a position.

Request the servo to have a certain speed.

Request the servo to send it's status.

Write to the volatile RAM of the servo. Ram is cleared on every reboot, and populated with data from the EEP memory.

Write to the permanent EEP memory. For the change to take effect you need to reboot the servo so that the values are loaded in RAM.

Request the servo to send back some data from RAM.

Request the servo to send back some data from EEP.

Request the servo to enable torque.

Request the servo to disable torque.

Clear the error register of the servo.

Trait Implementations

impl Copy for Servo
[src]

impl Clone for Servo
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Servo
[src]

Formats the value using the given formatter. Read more

impl Default for Servo
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Servo

impl Sync for Servo