libs/kaptan-actuator: add protocol-neutral motor policy

Signed-off-by: Onur Özkan <work@onurozkan.dev>
This commit is contained in:
Onur Özkan committed 2026-07-25 21:53:52 +03:00
1 parent d32d9f4d36
commit 57ff85fdbe
8 files changed
+527

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
//! Protocol-neutral motor-output policy.
#![no_std]
pub mod dshot;
mod protocol;
pub mod pwm;
pub use protocol::{ArmingDuration, DshotConfig, MotorProtocol, PwmConfig};
/// Flight-control and MAVLink boundary for motor outputs.
pub trait MotorOutput {
/// Enables the configured armed output sequence.
fn arm(&mut self);
/// Stops output and returns all motor channels to their safe state.
fn disarm(&mut self);
/// Returns whether the output has accepted an arm request.
fn is_armed(&self) -> bool;
}