Skip to content

Commit

Permalink
Fix id
Browse files Browse the repository at this point in the history
  • Loading branch information
abhaybd committed Aug 12, 2024
1 parent 723c6fd commit bda1882
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/camera/Camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ bool Camera::open(int camera_id, CameraParams intrinsic_params, Mat extrinsic_pa
if (camera_id == 20) {
gstr_ss << "image/jpeg,width=640,height=480,framerate=30/1 ! "
"jpegdec ! videoconvert ! appsink";
} else if (camera_id == 40 || camera_id == 60) {
} else if (camera_id == 40 || camera_id == 30) {
gstr_ss << "image/jpeg,width=1024,height=768,framerate=30/1 ! "
"jpegdec ! videoconvert ! appsink";
} else if (camera_id == 100) {
Expand Down
1 change: 1 addition & 0 deletions src/control/SwerveController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ drive_commands_t SwerveController::setCrabCmdVel(double dtheta, double dy,

bool SwerveController::checkWheelRotation(DriveMode mode,
const swerve_rots_t& wheel_rots) const {
return true;
std::array<int, 4> rots = {wheel_rots.lfRot, wheel_rots.rfRot, wheel_rots.lbRot,
wheel_rots.rbRot};
swerve_rots_t target = getSteerRots(mode);
Expand Down

0 comments on commit bda1882

Please sign in to comment.