Skip to main content

pamoja_estop_gate

Function pamoja_estop_gate 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_estop_gate( estop: *const PamojaEStop, desired: PamojaTwist, ) -> PamojaTwist
Expand description

Passes a command through an e-stop.

§Returns

desired while the stop is clear, or a zero twist while it is engaged or if estop is null.

§Safety

estop must be a live handle from pamoja_estop_new, or null.