Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.
This repository was archived by the owner on Apr 29, 2024. It is now read-only.

Rework the DriveTrain class #12

Description

@RED-M0CKING-LINE

Go though and make general improvements. add in a sinusoidal curve as well with the same features as the driveExp() method.
add default values for the driveExp() method. required parameters should be drive and turn speeds, whereas optional values can be modification of the X and Z exaggeration values, the deadzone, and the place value of speed to pass.

also clip the values passed into the motors rounded to the thousandths place for each drive function. consider a private function that is designed to handle clipping output values, applying the dead zone, and passing values to the motors.
If this feature is implemented, move the curves to their own function class and have the functions in the DriveTrain class refer to those curves with default values already implemented. This would allow the curves to be applied to any feature of the robot quickly and saving code.

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions