actuator: make arming sequences owner-local
This commit is contained in:
1 parent
f200e88ef0
commit
c44286bdcf
3 files changed
+59
-83
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user