mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-19 06:21:40 +00:00
Addressing issue #7 by reading CANCoder values until successful with 10ms delay between readings. Fall back to reading relative encoder.
This commit is contained in:
@@ -43,8 +43,11 @@ public class SwerveDriveConfiguration
|
||||
* @param maxSpeed Max speed of the robot in meters per second.
|
||||
* @param invertedIMU Invert the IMU.
|
||||
*/
|
||||
public SwerveDriveConfiguration(SwerveModuleConfiguration[] moduleConfigs, SwerveIMU swerveIMU, double maxSpeed,
|
||||
boolean invertedIMU)
|
||||
public SwerveDriveConfiguration(
|
||||
SwerveModuleConfiguration[] moduleConfigs,
|
||||
SwerveIMU swerveIMU,
|
||||
double maxSpeed,
|
||||
boolean invertedIMU)
|
||||
{
|
||||
this.moduleCount = moduleConfigs.length;
|
||||
this.imu = swerveIMU;
|
||||
|
||||
Reference in New Issue
Block a user