use msgpack_rpc::Value;
#[derive(Debug, Clone, Copy)]
pub enum DrivetrainType {
MaxDegreeOfFreedom,
ForwardOnly,
}
impl DrivetrainType {
pub(crate) fn as_msgpack(&self) -> Value {
let val = match self {
DrivetrainType::MaxDegreeOfFreedom => 0_i64,
DrivetrainType::ForwardOnly => 1_i64,
};
Value::Integer(val.into())
}
}