wpilibsuite / allwpilib

Official Repository of WPILibJ and WPILibC
https://wpilib.org/
Other
1.07k stars 614 forks source link

The differential Drivetrain simulator example for cpp will not build #5060

Closed OneGneissGuy closed 1 year ago

OneGneissGuy commented 1 year ago

Describe the bug The differential Drivetrain simulator example for cpp will not build.

To Reproduce Steps to reproduce the behavior:

  1. Copy the following to src/main/cpp
  1. Copy the following to src/main/include
  1. Build robot code

Expected behavior

Desktop:

Original:

Edit:

Additional context

Error thrown when build fails:

Robot.cpp(25): error C2039: 'Restart': is not a member of 'frc::Timer'

Restart either needs to be a member of frc::Timer or the source could be changed to a supported member such as Reset.

sciencewhiz commented 1 year ago

Restart was added in wpilib 2023.3.1. You can update to the latest wpilib version or use the example from the version of wpilib you have installed. All examples are available from the vscode "create a new project".

Because of issues with vendor libraries with 2023.3.1, 2023.3.2 should be released soon.