TASRobotics / RaidZero-FRC-2019

Competition code for 2019 season
1 stars 0 forks source link

Zeropath #67

Closed qsctr closed 5 years ago

qsctr commented 5 years ago

Closes #7.

Current features:

In addition to adding the pathing tool, also refactors the pathgen code by separating it into different functions. Should not have any breaking changes though.

Before merging, please test it out on your computer by following the readme to make sure that I didn't accidentally leave out anything in the instructions.

Kof223 commented 5 years ago

I'm having some issues with compiling and installing java code. I'm running the command but I'm getting exceptions.

The command I typed in was ../gradlew installDist -Dorg.gradle.java.home=C:\Users\Public\frc2019\jdk\

I'm getting this: FAILURE: Build failed with an exception.

I'm sure my jdk exists, so did I type the wrong command?

Kof223 commented 5 years ago

Btw, I still ran npm start, and I can see the field and drag the points.

qsctr commented 5 years ago

Did you run

"../gradlew" installDist -Dorg.gradle.java.home=C:\Users\Public\frc2019\jdk\

exactly?

qsctr commented 5 years ago

Actually, try running

"../gradlew" installDist -Dorg.gradle.java.home="C:\Users\Public\frc2019\jdk\"
Kof223 commented 5 years ago

I just found a problem. The coordinates you have in the program is based on display coordinates, so (0, 0) is on the top left corner. However, what we used before is based on the normal coordinate system, where the (0, 0) is at the bottom left corner. Therefore, the robot turns in the wrong direction.

This might just be a problem with pathgen, so we will merge zeropath into base-pid to see if it fixes it. Can you confirm if it is the issue with pathgen being different?

qsctr commented 5 years ago

No, the problem is with zeropath not pathgen. I know what's wrong, I'll fix it when I have time. Thanks

qsctr commented 5 years ago

Wait actually @Kof223 on re-reading your comment I realized that I might have misunderstood. What do you mean by it might be a problem with pathgen?

The issue with the coordinate exists and I will fix that. But I'm not sure if you're talking about a separate issue or not.

qsctr commented 5 years ago

Note to self

Things to fix:

Kof223 commented 5 years ago

Okay, it seems to work fine now. However, when I tried uploading the path, it timed out.

This is the error: Timed out while waiting for handshake

qsctr commented 5 years ago

Ok, will fix that before merging

qsctr commented 5 years ago

never mind i guess