Skip to content

refactor(subsystem/drive): add feedforwards config constant and conditional drive function selection #20

Description

@coderabbitai

Summary

Add a feedforwards configuration constant for auto/drive. When feedforwards is not enabled (false), fall back to using the normal driveRobotRelative function instead of the PathPlanner-specific drive function.

Context

Identified while reviewing PR #19 when examining the YAGSL example. The current implementation always uses the feedforwards-enabled drive function regardless of configuration, which may not be desirable in all cases.

Tasks

  • Add a feedforwards config constant (e.g., in a constants file for auto/drive)
  • In the PathPlanner drive consumer, check the feedforwards config constant
  • If feedforwards is false, use the normal driveRobotRelative function instead

References

/cc @Baconing

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions