Skip to content

Commit

Permalink
added tunCurve functin parameter to differential.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Raptorly1 authored Dec 4, 2023
1 parent c2a3416 commit 17885c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/lemlib/chassis/differential.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class Differential : public Chassis {
* of 0 disables the curve entirely.
*/
void tank(int left, int right, float leftCurveGain = 0.0, float rightCurveGain = 0.0,
const DriveCurveFunction_t& driveCurve = defaultDriveCurve);
const DriveCurveFunction_t& leftCurve = defaultDriveCurve, const DriveCurveFunction_t& rightCurve = defaultDriveCurve);

/**
* @brief Control the robot during the driver using the arcade drive control scheme. In this control scheme one
Expand All @@ -285,7 +285,7 @@ class Differential : public Chassis {
* curve, refer to the `defaultDriveCurve` documentation.
*/
void arcade(int throttle, int turn, float linearCurveGain = 0.0, float turnCurveGain = 0.0,
const DriveCurveFunction_t& driveCurve = defaultDriveCurve);
const DriveCurveFunction_t& driveCurve = defaultDriveCurve, const DriveCurveFunction_t& turnCurve = 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 +297,7 @@ class Differential : public Chassis {
* curve, refer to the `defaultDriveCurve` documentation.
*/
void curvature(int throttle, int turn, float linearCurveGain = 0.0, float turnCurveGain = 0.0,
const DriveCurveFunction_t& driveCurve = defaultDriveCurve);
const DriveCurveFunction_t& driveCurve = defaultDriveCurve, const DriveCurveFunction_t& turnCurve = defaultDriveCurve);
private:
/**
* @brief Chassis update function. Updates chassis motion and odometry
Expand Down

0 comments on commit 17885c5

Please sign in to comment.