Difference between revisions of "Tank Drive - Joystick Control"
Jump to navigation
Jump to search
Dsteinmark (talk | contribs) (Created page with "In tank drive, one or two joysticks can be used, but typically two joysticks are used - one joystick is use to control the left half of the drivetrain, and the other joystick...") |
Dsteinmark (talk | contribs) |
||
| Line 2: | Line 2: | ||
There are a few different control mappings to affect how a certain amount of joystick movement is needed to change the requested speed of the drivetrain: | There are a few different control mappings to affect how a certain amount of joystick movement is needed to change the requested speed of the drivetrain: | ||
| − | * Linear | + | * '''Linear''' ''The simplest and most straightforward of the control mappings.'' |
| − | * Quadratic | + | :* Advantages: Simple, linear response, easy to program, easy to drive |
| − | * Linear/Quadratic Average | + | :* Disadvantages: Does not give fine control for slow movements |
| − | * S-Curve | + | * '''Quadratic''' ''Designed to give much finer control over slow movements.'' |
| + | :* Advantages: Gives very fine control over slow movements | ||
| + | :* Disadvantages: Drivers have complained that it feels too ''dead'' and sluggish when getting started. | ||
| + | * '''Linear/Quadratic Average''' ''An averaging of linear and quadratic'' | ||
| + | :*Advantages: Gives finer control over slow movements than linear, without feeling ''dead'' like quadratic. (At least in theory.) | ||
| + | :*Disadvantages: Overall slower feeling compared to linear | ||
| + | * '''S-Curve''': ''Finer control than linear in first half of travel, faster control than linear in second half.'' | ||
| + | :*Advantages: Gives finer control for slow movements, without feeling ''dead'' like quadratic. Gives faster control than linear in second half. Feels ''zippy'' when past about 1/3 or 1/2 travel. | ||
| + | :*Disadvantages: Does not feel linear. Could be an issue in ''feel'' for driver. They may love it. They may hate it. | ||
[[Category:Programming]] | [[Category:Programming]] | ||
Revision as of 14:46, 26 January 2019
In tank drive, one or two joysticks can be used, but typically two joysticks are used - one joystick is use to control the left half of the drivetrain, and the other joystick is used to control the other half. Only forward and backwards motions of the joystick are used for affecting the drivetrain.
There are a few different control mappings to affect how a certain amount of joystick movement is needed to change the requested speed of the drivetrain:
- Linear The simplest and most straightforward of the control mappings.
- Advantages: Simple, linear response, easy to program, easy to drive
- Disadvantages: Does not give fine control for slow movements
- Quadratic Designed to give much finer control over slow movements.
- Advantages: Gives very fine control over slow movements
- Disadvantages: Drivers have complained that it feels too dead and sluggish when getting started.
- Linear/Quadratic Average An averaging of linear and quadratic
- Advantages: Gives finer control over slow movements than linear, without feeling dead like quadratic. (At least in theory.)
- Disadvantages: Overall slower feeling compared to linear
- S-Curve: Finer control than linear in first half of travel, faster control than linear in second half.
- Advantages: Gives finer control for slow movements, without feeling dead like quadratic. Gives faster control than linear in second half. Feels zippy when past about 1/3 or 1/2 travel.
- Disadvantages: Does not feel linear. Could be an issue in feel for driver. They may love it. They may hate it.