pub struct JointDriverLowSpeedFeedback {
pub joint_index: u8,
pub voltage: u16,
pub driver_temp: i16,
pub motor_temp: i8,
pub status: DriverStatus,
pub bus_current: u16,
}Expand description
关节驱动器低速反馈 (0x261~0x266)
包含电压、温度、驱动器状态和母线电流反馈。
- 电压单位:0.1V(原始值)
- 温度单位:1℃(原始值)
- 电流单位:0.001A(原始值)
Fields§
§joint_index: u8§voltage: u16§driver_temp: i16§motor_temp: i8§status: DriverStatus§bus_current: u16Implementations§
Source§impl JointDriverLowSpeedFeedback
impl JointDriverLowSpeedFeedback
Sourcepub fn voltage_raw(&self) -> u16
pub fn voltage_raw(&self) -> u16
获取电压原始值(0.1V 单位)
Sourcepub fn driver_temp_raw(&self) -> i16
pub fn driver_temp_raw(&self) -> i16
获取驱动器温度原始值(1℃ 单位)
Sourcepub fn motor_temp_raw(&self) -> i8
pub fn motor_temp_raw(&self) -> i8
获取电机温度原始值(1℃ 单位)
Sourcepub fn bus_current_raw(&self) -> u16
pub fn bus_current_raw(&self) -> u16
获取母线电流原始值(0.001A 单位)
Sourcepub fn driver_temp(&self) -> f64
pub fn driver_temp(&self) -> f64
获取驱动器温度(℃)
Sourcepub fn motor_temp(&self) -> f64
pub fn motor_temp(&self) -> f64
获取电机温度(℃)
Sourcepub fn bus_current(&self) -> f64
pub fn bus_current(&self) -> f64
获取母线电流(A)
Trait Implementations§
Source§impl Clone for JointDriverLowSpeedFeedback
impl Clone for JointDriverLowSpeedFeedback
Source§fn clone(&self) -> JointDriverLowSpeedFeedback
fn clone(&self) -> JointDriverLowSpeedFeedback
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JointDriverLowSpeedFeedback
impl Debug for JointDriverLowSpeedFeedback
Source§impl Default for JointDriverLowSpeedFeedback
impl Default for JointDriverLowSpeedFeedback
Source§fn default() -> JointDriverLowSpeedFeedback
fn default() -> JointDriverLowSpeedFeedback
Returns the “default value” for a type. Read more
Source§impl TryFrom<PiperFrame> for JointDriverLowSpeedFeedback
impl TryFrom<PiperFrame> for JointDriverLowSpeedFeedback
Source§type Error = ProtocolError
type Error = ProtocolError
The type returned in the event of a conversion error.
impl Copy for JointDriverLowSpeedFeedback
Auto Trait Implementations§
impl Freeze for JointDriverLowSpeedFeedback
impl RefUnwindSafe for JointDriverLowSpeedFeedback
impl Send for JointDriverLowSpeedFeedback
impl Sync for JointDriverLowSpeedFeedback
impl Unpin for JointDriverLowSpeedFeedback
impl UnwindSafe for JointDriverLowSpeedFeedback
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more