Skip to content

Commit

Permalink
Merge pull request #59 from astuff/fix/lexus_G29
Browse files Browse the repository at this point in the history
G29 joystick fixes for lexus
  • Loading branch information
Joshua Whitley authored May 9, 2019
2 parents ddcd5eb + d6ef0e0 commit 0e6b031
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/pacmod_game_control/globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ static const float ACCEL_SCALE_FACTOR = 0.6;
static const float ACCEL_OFFSET = 0.21;
static const float STEER_SCALE_FACTOR = 1.5;
static const float STEER_OFFSET = 1.0;
static const float MAX_ROT_RAD_VEHICLE2 = 6.5;
static const float MAX_ROT_RAD_VEHICLE2 = 8.5;
static const float MAX_ROT_RAD_VEHICLE4 = 8.5;
static const float MAX_ROT_RAD_VEHICLE5 = 8.1;
static const float MAX_ROT_RAD_VEHICLE6 = 8.5;
Expand Down
2 changes: 1 addition & 1 deletion src/publish_control_board_rev3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void PublishControlBoardRev3::publish_steering_message(const sensor_msgs::Joy::C
}

float range_scale;
if (vehicle_type == VEHICLE_4 || vehicle_type == VEHICLE_6)
if (vehicle_type == VEHICLE_4 || vehicle_type == VEHICLE_6 || vehicle_type == LEXUS_RX_450H)
range_scale = 1.0;
else
range_scale = fabs(msg->axes[axes[steering_axis]]) * (STEER_OFFSET - ROT_RANGE_SCALER_LB) + ROT_RANGE_SCALER_LB;
Expand Down

0 comments on commit 0e6b031

Please sign in to comment.