OnTasksDone

Finish actions that can be taken following the completion of all tasks in the queue.

Since

7.0.0

Entries

Link copied to clipboard

Executes finish and automatically halts all hardware via the safeHaltHardware method when all tasks are completed. This is the default behaviour.

Link copied to clipboard

Executes finish, but does not safe halt hardware when all tasks are completed. This is useful for situations where servos should remain powered for the rest of the OpMode, and motor powers left at their last value. This mode is not appropriate for controls that require an active loop, as system controllers will receive no updates.

Link copied to clipboard

Continue running the OpMode, allowing default tasks on subsystems and periodic to continue execution when all tasks are completed. This is most appropriate for PID loops that need to continue, such as holding a position until the rest of the OpMode is completed.

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.