actuator: make arming sequences owner-local

This commit is contained in:
Onur Özkan committed 2026-08-09 13:56:45 +03:00
1 parent f200e88ef0
commit c44286bdcf
3 files changed
+59 -83

No files matched your search

+7 -11
View File
@@ -1,4 +1,10 @@
//! Protocol-neutral motor-output policy.
//! Protocol-neutral physical-motor protocol reference.
//!
//! This crate deliberately remains in the workspace for future, separately
//! reviewed physical-flight work. No checked-in board platform links it, and
//! its types model DShot/PWM framing and
//! local arming sequences only; they grant neither peripheral access nor
//! flight authority.
#![no_std]
@@ -27,13 +33,3 @@ pub enum MotorProtocol {
Pwm(pwm::Config),
Dshot(dshot::Config),
}
/// 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;
}