Skip to content

Drive with Time command complete#121

Open
IshanBaliyan wants to merge 16 commits intomasterfrom
IshanDistanceAuto
Open

Drive with Time command complete#121
IshanBaliyan wants to merge 16 commits intomasterfrom
IshanDistanceAuto

Conversation

@IshanBaliyan
Copy link

Tested and completed driving with distance at any speed.

Tested and completed driving with distance at any speed.
Will test Monday and then do pull request/merge.
Copy link
Member

@Zinka010 Zinka010 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So it seems mostly ok with a few minor tweaks, though in the nicest way possible, why is it so complicated?

Copy link
Contributor

@georgetzavelas georgetzavelas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You did a lot of great work here Ishan! I think there is some great opportunities here to refactor this to simply it without loosing your logic. I left you some suggestions.

@georgetzavelas
Copy link
Contributor

You should also rebase before making your changes.

Copy link
Contributor

@nicojopr nicojopr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should look at latest on master as there is a DriveBase2020 so I'm not sure which is being used v.s. Pre2020 and plain DriveBase. Master is no longer compatible with the older bots.

Also, there are still merge conflicts to resolve

@IshanBaliyan
Copy link
Author

IshanBaliyan commented Mar 8, 2020

You should look at latest on master as there is a DriveBase2020 so I'm not sure which is being used v.s. Pre2020 and plain DriveBase. Master is no longer compatible with the older bots.

Also, there are still merge conflicts to resolve

Yes, I changed some code to work with the new drivebase but it needs to be tested with the new robot before I push it.

@georgetzavelas
Copy link
Contributor

Any reason this got closed?

@IshanBaliyan
Copy link
Author

IshanBaliyan commented Mar 9, 2020

Sorry, will reopen. Must have closed by accident.

@IshanBaliyan IshanBaliyan reopened this Mar 9, 2020
@Zinka010
Copy link
Member

Zinka010 commented Mar 10, 2020

So I'll approve this for now but I need you to understand that there are much better ways of doing drive straight commands since CTRE gives us so many great tools. I'd really like it if someone could get something like this for North Bay https://github.com/CrossTheRoadElec/Phoenix-Examples-Languages/blob/master/Java%20General/DriveStraight_AuxPigeon/src/main/java/frc/robot/Robot.java.

What you're doing, while functional I'm sure is just running for a set amount of encoder ticks then stopping. As a next step, we can use the PigeonIMU to ensure we are keeping straight throughout this movement. The robot characterization tool is great for getting PID values for this, though note we'd NEED someone to come to a practice field or Entrust to do it.

@IshanBaliyan
Copy link
Author

So I'll approve this for now but I need you to understand that there are much better ways of doing drive straight commands since CTRE gives us so many great tools. I'd really like it if someone could get something like this for North Bay https://github.com/CrossTheRoadElec/Phoenix-Examples-Languages/blob/master/Java%20General/DriveStraight_AuxPigeon/src/main/java/frc/robot/Robot.java.

What you're doing, while functional I'm sure is just running for a set amount of encoder ticks then stopping. As a next step, we can use the PigeonIMU to ensure we are keeping straight throughout this movement. The robot characterization tool is great for getting PID values for this, though note we'd NEED someone to come to a practice field or Entrust to do it.

I will work on that for North Bay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants