LemLib  0.4.7
An easy to use and feature-rich PROS template
Loading...
Searching...
No Matches
lemlib::Drivetrain_t Struct Reference

Struct containing constants for a drivetrain. More...

#include <chassis.hpp>

Public Attributes

pros::Motor_Group * leftMotors
 
pros::Motor_Group * rightMotors
 
float trackWidth
 
float wheelDiameter
 
float rpm
 

Detailed Description

Struct containing constants for a drivetrain.

The constants are stored in a struct so that they can be easily passed to the chassis class Set a constant to 0 and it will be ignored

Parameters
leftMotorspointer to the left motors
rightMotorspointer to the right motors
trackWidththe track width of the robot
wheelDiameterthe diameter of the wheels (2.75, 3.25, 4, 4.125)
rpmthe rpm of the wheels

The documentation for this struct was generated from the following file: