Expand description
Orbita3dController
This crate provides a controller for the Orbita3d actuator.
The main Class is Orbita3dController
which allows to control the Orbita3d actuator.
§Examples
use orbita3d_controller::Orbita3dController;
let mut orbita3d = Orbita3dController::with_config("./config/fake.yaml").unwrap();
let orientation = orbita3d.get_current_orientation().unwrap();
println!("Current orientation: {:?}", orientation);
orbita3d.enable_torque(true).unwrap();
let target = [0.0, 0.0, 0.7, 0.7];
orbita3d.set_target_orientation(target).unwrap();
let orientation = orbita3d.get_current_orientation().unwrap();
println!("Current orientation: {:?}", orientation);
Modules§
Structs§
- Approximate
Hardware Zero - ApproximateHardwareZero config
- Disks
Config - Disks Config
- Firmware
Zero - Firmwarezero config
- Hall
Zero - HallZero config
- Orbita3d
Config - Orbita3d Config
- Orbita3d
Controller - Orbita3d Controller
- Orbita3d
Feedback - Feedback struct
- Zero
Startup - ZeroStartup config
Enums§
- Zero
Type - Zero type config This is used to configure the zero of each disk