Chassis(MotorGroup& left, MotorGroup& right, Positioner& positioner, double trackWidth, double gearRatio, double wheelDiameter, gearSetting cartridge)
Constructs a chassis with the given parameters
Parameters
left- The left side motor groupright- The right side motor grouppositioner- The odometry tracker to usetrackWidth- The distance between the center of the left wheel and the center of the right wheelgearRatio- The ratio of the motor to the wheel (input/output)wheelDiameter- The diameter of the wheelcartridge- The gearset of the motors
Example
motor LeftMot = motor(PORT1);
MotorGroup left = MotorGroup(LeftMot);
motor RightMot = motor(PORT2);
MotorGroup right = MotorGroup(RightMot);
Inertial imu = Inertial(PORT3, 355, 355);
vector<TrackingWheel> xWheels = {};
vector<TrackingWheel> yWheels = {TrackingWheel(PORT4, true, 2.75)};
Positioner positioner = Positioner(xWheels, yWheels, imu, {0, 0});
Chassis chassis (left, right, positioner, 11, 3.0/2.0, 3.25/2.0, ratio18_1);