Skip to content

Commit

Permalink
Merge pull request #533 from Coolearthsky/visualServoing
Browse files Browse the repository at this point in the history
Work from today
  • Loading branch information
truher authored Oct 31, 2024
2 parents 7b033ea + cd529e7 commit 8cc79bd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static PIDController cartesian() {
pid.setTolerance(0.01); // 1 cm
return pid;
case SWERVE_ONE:
pid = new PIDController(0.15, 0, 0);
pid = new PIDController(0.3, 0, 0);
pid.setIntegratorRange(-0.1, 0.1);
pid.setTolerance(0.01); // 1 cm
return pid;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public static SwerveModuleCollection get(
DriveRatio.FAST, AnalogTurningEncoder.class,
12,
2,
0.347717,
0.336,
kinodynamics,
EncoderDrive.DIRECT, MotorPhase.REVERSE),
WCPSwerveModule100.getFalconDrive(frontRightLogger,
Expand All @@ -115,7 +115,7 @@ public static SwerveModuleCollection get(
DriveRatio.FAST, AnalogTurningEncoder.class,
11,
1,
0.60923,
0.619,
kinodynamics,
EncoderDrive.DIRECT, MotorPhase.REVERSE),
WCPSwerveModule100.getFalconDrive(rearLeftLogger,
Expand All @@ -125,7 +125,7 @@ public static SwerveModuleCollection get(
DriveRatio.FAST, AnalogTurningEncoder.class,
21,
3,
0.60012,
0.591,
kinodynamics,
EncoderDrive.DIRECT, MotorPhase.REVERSE),
WCPSwerveModule100.getFalconDrive(rearRightLogger,
Expand All @@ -135,7 +135,7 @@ public static SwerveModuleCollection get(
DriveRatio.FAST, AnalogTurningEncoder.class,
33,
0,
0.489393,
0.512,
kinodynamics,
EncoderDrive.DIRECT, MotorPhase.REVERSE));
case BETA_BOT:
Expand Down
4 changes: 2 additions & 2 deletions raspberry_pi/app/camera/real_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ def __mtx_from_model(model: Model) -> Mat:
case Model.GS:
return np.array(
[
[1680, 0, 728],
[0, 1680, 544],
[1780, 0, 728],
[0, 1780, 544],
[0, 0, 1],
]
)
Expand Down

0 comments on commit 8cc79bd

Please sign in to comment.