adds initial motor bravo implementation
This commit is contained in:
@@ -5,6 +5,7 @@ use std::fmt::Debug;
|
||||
pub mod set_pin;
|
||||
pub mod set_rcs;
|
||||
pub mod valid_priority_command;
|
||||
pub mod set_pwm;
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct CommandHeader<'a> {
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
use crate::command::Command;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct SetPwm {
|
||||
pub duty_cycle: u8
|
||||
}
|
||||
|
||||
impl Command for SetPwm {}
|
||||
Reference in New Issue
Block a user