-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tracking wheel support #21
Labels
enhancement
New feature or request
Comments
ssejrog
added a commit
that referenced
this issue
Nov 20, 2021
tick_per_inch now changes how it calculates depending on if trakcing wheels are used or not. there are 3 drive constructors, one for internal encoders, one for tracking wheels in brain, and one for tracking wheels in an expander. left_sensor and right_sensor output motor/tracking wheel depending on the constructor used.
Added two new constructors for tracking wheels (external encoders). // Chassis constructor
drive chassis (
// Left Chassis Ports (negative port will reverse it!)
{-11, -5, -7}
// Right Chassis Ports (negative port will reverse it!)
,{3, 2, 17}
// IMU Port
,18
// Wheel Diameter (Remember, 4" wheels are actually 4.125!)
// (or tracking wheel diameter)
,3.25
// Cartridge RPM
// (pr tick per rotation if using tracking wheels)
,600
// External Gear Ratio
// (or gear ratio of tracking wheel)
,1.66666666667
// Left Tracking Wheel Ports (negative port will reverse it!)
,{1, 2}
// Right Tracking Wheel Ports (negative port will reverse it!)
,{3, 4}
); and // Chassis constructor
drive chassis (
// Left Chassis Ports (negative port will reverse it!)
{-11, -5, -7}
// Right Chassis Ports (negative port will reverse it!)
,{3, 2, 17}
// IMU Port
,18
// Wheel Diameter (Remember, 4" wheels are actually 4.125!)
// (or tracking wheel diameter)
,3.25
// Cartridge RPM
// (pr tick per rotation if using tracking wheels)
,600
// External Gear Ratio
// (or gear ratio of tracking wheel)
,1.66666666667
// Left Tracking Wheel Ports (negative port will reverse it!)
,{1, 2}
// Right Tracking Wheel Ports (negative port will reverse it!)
,{3, 4}
// 3 Wire Port Expander Smart Port
,1
);
|
#28 adds rotation sensors |
as we decided odom is out of scope of this project, this issue is now complete with the remaining #47 still open. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For now, just support trackers parallel to the drive wheels. Default parameter in drive constructor that can be set. Needs to support 3 wire expanders and different ticks per rotation.
The text was updated successfully, but these errors were encountered: