Skip to content
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 pure pursuit test #28

Open
wants to merge 60 commits into
base: master
Choose a base branch
from
Open

Add pure pursuit test #28

wants to merge 60 commits into from

Conversation

Skandis
Copy link
Contributor

@Skandis Skandis commented Feb 13, 2019

No description provided.

@codecov-io
Copy link

codecov-io commented Feb 13, 2019

Codecov Report

Merging #28 into master will increase coverage by 9.4%.
The diff coverage is 92.48%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master      #28     +/-   ##
=========================================
+ Coverage   77.15%   86.55%   +9.4%     
=========================================
  Files          18       20      +2     
  Lines        1160     1369    +209     
  Branches      119      129     +10     
=========================================
+ Hits          895     1185    +290     
+ Misses        239      154     -85     
- Partials       26       30      +4
Impacted Files Coverage Δ
pyswervedrive/chassis.py 100% <100%> (+3.26%) ⬆️
tests/test_pure_pursuit.py 100% <100%> (ø) ⬆️
components/hatch.py 100% <100%> (ø) ⬆️
tests/test_vision.py 100% <100%> (ø)
components/vision.py 98.38% <100%> (+33.47%) ⬆️
tests/test_functions.py 100% <100%> (ø)
utilities/functions.py 90% <100%> (+3.33%) ⬆️
automations/alignment.py 56.71% <38.46%> (+3.14%) ⬆️
components/climb.py 79.81% <54.54%> (+14.16%) ⬆️
robot.py 77.92% <82.75%> (-4.44%) ⬇️
... and 18 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 99a5255...8d86ad2. Read the comment docs.

tests/test_pure_pursuit.py Outdated Show resolved Hide resolved
tests/test_pure_pursuit.py Outdated Show resolved Hide resolved
tests/test_pure_pursuit.py Outdated Show resolved Hide resolved
tests/test_pure_pursuit.py Outdated Show resolved Hide resolved
floats(min_value=0, max_value=5),
)
def test_find_speed(distance_along_path, start_speed, end_speed):
PP = pp.PurePursuit(0.2, 0.25)
Copy link
Member

Choose a reason for hiding this comment

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

Is this conceptually a constant?

pp.PurePursuit.last_robot_x = 0
pp.PurePursuit.last_robot_y = 0
robot_pos = (pos_x, 0)
waypoints = [pp.Segment(0, 0, 0, 0, 0), pp.Segment(10, 0, 0, 0, 10)]
Copy link
Member

Choose a reason for hiding this comment

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

Why construct this list when you're not really using it?

mlists and others added 29 commits February 18, 2019 19:52
Means that robot will always move even if throttle is closed.
Cleanup and improvement of various functions
- Remove heights not being used
- Use sparkmaxes for arm motor
- Use victor spx for intake motor
Cargo cleanup and added functionality
@auscompgeek
Copy link
Member

oh no what have you done

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.

8 participants