1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
/// The `commands` module contains the ODrive structure, which is used to interact with the ODrive
/// protocol.
pub mod commands;

/// The `enumerations` module contains enums and constants related to different properties and
/// errors.
pub mod enumerations;

#[cfg(test)]
#[cfg_attr(tarpaulin, skip)]
mod test_stream;

pub mod prelude {
    pub use crate::commands::ODrive;
    pub use crate::enumerations::{AxisID, AxisState, EncoderMode, ControlMode, MotorType};
    pub use crate::enumerations::errors::{ODriveError, EncoderError, AxisError, ControllerError, MotorError, ODriveResult};
}