Though many methods are static for convenience, they will error if a
a RobotBase
has not already been constructed.
Create a new robot, initializing hardware in the process.
Call before initializing any other wpilib stuff.
Call when your robot is ready to be enabled.
Make sure your hardware and threads have been created, etc.
Return the FPGA Version number.
For now, expect this to be competition year.
Return the FPGA Revision number.
The format of the revision is 3 numbers. The 12 most significant bits are the
Major Revision. The next 8 bits are the Minor Revision. The 12 least
significant bits are the Build Number.
Read the microsecond-resolution timer on the FPGA.
Returns The current time in microseconds according to the FPGA (since FPGA
reset).
Read the microsecond-resolution timer
on the FPGA as a std::time::Duration
.
Get the state of the "USER" button on the roboRIO.
True if the button is currently pressed.
Reuturns true if the robot is browned out.
Returns true if outputs are enabled.
A false result could be caused by a disabled robot or a brownout.
Get the robot's current battery voltage.
Executes the destructor for this type. Read more
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static