Skip to content

Commit

Permalink
add turnCurveGain in differential.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Raptorly1 committed Nov 29, 2023
1 parent 6013a55 commit d5a7ced
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions include/lemlib/chassis/differential.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ class Differential : public Chassis {
* @param curveGain control how steep the drive curve is. The larger the number, the steeper the curve. A value
* of 0 disables the curve entirely.
*/
void tank(int left, int right, float curveGain = 0.0,
void tank(int left, int right, float leftCurveGain = 0.0, float rightCurveGain = 0.0,
const DriveCurveFunction_t& driveCurve = defaultDriveCurve);

/**
Expand All @@ -284,9 +284,8 @@ class Differential : public Chassis {
* @param curveGain the scale inputted into the drive curve function. If you are using the default drive
* curve, refer to the `defaultDriveCurve` documentation.
*/
void arcade(int throttle, int turn, float curveGain = 0.0,
void arcade(int throttle, int turn, float linearCurveGain = 0.0, float turnCurveGain = 0.0,
const DriveCurveFunction_t& driveCurve = defaultDriveCurve);

/**
* @brief Control the robot during the driver using the curvature drive control scheme. This control scheme is
* very similar to arcade drive, except the second joystick axis controls the radius of the curve that the
Expand All @@ -297,7 +296,7 @@ class Differential : public Chassis {
* @param curveGain the scale inputted into the drive curve function. If you are using the default drive
* curve, refer to the `defaultDriveCurve` documentation.
*/
void curvature(int throttle, int turn, float cureGain = 0.0,
void curvature(int throttle, int turn, float linearCurveGain = 0.0, float turnCurveGain = 0.0,
const DriveCurveFunction_t& driveCurve = defaultDriveCurve);
private:
/**
Expand Down

0 comments on commit d5a7ced

Please sign in to comment.