You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After properly configuring the RobotConig and Swerve Setpoint Generator, I attempt to call the method generateSetpoint in my Drive method, but when called after the robot is enabled, it throws a runtime error with the following message:
vector::_M_range_check: __n (which is 2) >= this->size() (which is 2)
terminate called after throwing an instance of 'std::out_of_range'
what(): vector::_M_range_check: __n (which is 2) >= this->size() (which is 2)
To Reproduce
Steps to reproduce the behavior:
Initialize and create everything as outlined in the docs here.
Deploy and enable the program and the error should immediately be thrown.
Expected behavior
No error should be thrown, and the new setpoint should be created and used to drive the robot.
Screenshots
This is where the next setpoint is generated:
And this is the definition of SetModuleStates:
Versions:
OS: Windows 11
GUI Version: 2024.2.2
PPLib Version: 2024.2.3
PPLib Language: C++
The text was updated successfully, but these errors were encountered:
After properly configuring the RobotConig and Swerve Setpoint Generator, I attempt to call the method generateSetpoint in my Drive method, but when called after the robot is enabled, it throws a runtime error with the following message:
vector::_M_range_check: __n (which is 2) >= this->size() (which is 2)
terminate called after throwing an instance of 'std::out_of_range'
what(): vector::_M_range_check: __n (which is 2) >= this->size() (which is 2)
To Reproduce
Steps to reproduce the behavior:
Initialize and create everything as outlined in the docs here.
Deploy and enable the program and the error should immediately be thrown.
Expected behavior
No error should be thrown, and the new setpoint should be created and used to drive the robot.
Screenshots
This is where the next setpoint is generated:
And this is the definition of SetModuleStates:
Versions:
The text was updated successfully, but these errors were encountered: