Function orbita3d_set_control_mode

Source
#[no_mangle]
pub extern "C" fn orbita3d_set_control_mode(
    uid: u32,
    mode: &u8,
) -> i32
Expand description

Set the control mode ( CiA402 control mode - u8) : 1 - Profile Position Mode, 3 - Profile Velocity Mode, 4 - Profile Torque Mode

  • See more info here

§Arguments

  • uid: u32 - The unique identifier of the controller.
  • mode: *const u8 - The control mode.

§Returns

  • i32 - 0 if the control mode was set successfully, 1 otherwise.