Crate pros_sync

source ·
Expand description

Synchronous robot code trait for pros-rs.

Macros§

  • Allows your sync robot code to be executed by the pros kernel. If your robot struct implements Default then you can just supply this macro with its type. If not, you can supply an expression that returns your robot type to initialize your robot struct. The code that runs to create your robot struct will run in the initialize function in PROS.

Traits§

  • A trait for robot code that runs without the async executor spun up. This trait isn’t recommended. See AsyncRobot in pros-async for the preferred trait to run robot code.