Skip to main content

pamoja_recording_actuator_commands

Function pamoja_recording_actuator_commands 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_recording_actuator_commands( actuator: *const PamojaRecordingActuator, out_commands: *mut f32, capacity: usize, ) -> usize
Expand description

Copies out the commands an actuator recorded, oldest first.

§Arguments

  • actuator - the actuator.
  • out_commands - receives up to capacity commands.
  • capacity - how many floats out_commands can hold.

§Returns

How many commands were written, which is the smaller of capacity and the count from pamoja_recording_actuator_len.

§Safety

actuator must be a live handle, and out_commands must point to at least capacity writable floats or be null when capacity is 0.