Skip to content

First version of iterativerobotpy.py #161

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

Open
wants to merge 36 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
c454e6d
First version of iterativerobotpy.py
MikeStitt Apr 5, 2025
7042b96
Simulates, but does not update robot position in simulation.
MikeStitt Apr 8, 2025
3f1e12c
Simulates, but does not update robot position in simulation.
MikeStitt Apr 8, 2025
5f793b7
Only call the inits on a transition.
MikeStitt Apr 8, 2025
21bab63
This version does simulate in autonomous and teleop okay. Need to tes…
MikeStitt Apr 9, 2025
ff1713e
Cleaning Up
MikeStitt Apr 25, 2025
0c86080
Cleaning up.
MikeStitt Apr 26, 2025
2a17935
Fix typos
MikeStitt Apr 26, 2025
9429b8c
Correct periodS to be period, use from . to import
MikeStitt Apr 27, 2025
2f0c2e1
Fix up watchdog interface.
MikeStitt Apr 27, 2025
958c909
Cleaning up.
MikeStitt Apr 27, 2025
7522ec2
Cleaning up code.
MikeStitt Apr 28, 2025
3b36199
Running through black
MikeStitt Apr 28, 2025
c5ae00a
Added docstrings, new todo's based upon docstring comparison.
MikeStitt Apr 29, 2025
6553746
Added missing wpimath.units.second
MikeStitt Apr 29, 2025
0adee5a
Fix typo, second to seconds
MikeStitt Apr 29, 2025
55c5e5d
use if rather than match for python 3.9
MikeStitt Apr 30, 2025
0eb421f
Merge branch 'upstream/main' into pyIterativeAndTimedRobot
MikeStitt Apr 30, 2025
6cf2977
simulationPeriodic becomes _simulationPeriodic
MikeStitt Apr 30, 2025
9e27f0a
Get the physics engine to work.
MikeStitt Apr 30, 2025
0cf4834
Fix units bug for getLoopStartTime. now returns microseconds.
MikeStitt Apr 30, 2025
1b009f5
Make work with python 3.9
MikeStitt Apr 30, 2025
d06fe46
Add test of period math, and improve comments.
MikeStitt Apr 30, 2025
4c0baa4
fix black formatting
MikeStitt May 1, 2025
12c90b6
Proof of Concept for TimedRobot Functional Tests
MikeStitt May 3, 2025
4c2379c
WIP still sims.
MikeStitt May 9, 2025
ca1e7e1
Improving simulation.
MikeStitt May 10, 2025
df22b32
Merge branch 'main' into pocTimedRobotFunctionalTests
MikeStitt May 10, 2025
5dd838c
Getting new tests to not break existing tests.
MikeStitt May 11, 2025
acc7385
Limit setuptools versions
MikeStitt May 12, 2025
4cce809
Progress on tests.
MikeStitt May 12, 2025
5f63a20
WIP - tests should pass.
MikeStitt May 13, 2025
9872329
Debugging
MikeStitt May 14, 2025
4cd8be6
Run black, add to test requirements.
MikeStitt May 15, 2025
5895dcc
Only call endCompetition once during tests.
MikeStitt May 20, 2025
2afe3d0
Adjusting tests.
MikeStitt May 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rdev_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ packaging
pydantic<2,!=1.10.20
pytest
requests
setuptools
setuptools < 80.0
setuptools_scm >= 6.2, < 8
tomlkit
tomli
Expand Down
6 changes: 5 additions & 1 deletion subprojects/robotpy-wpilib/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

import pytest
import ntcore
import wpilib
from wpilib.simulation._simulation import _resetWpilibSimulationData

try:
import commands2
Copy link
Member

Choose a reason for hiding this comment

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

This seems to be unused?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixing.

except ImportError:
commands2 = None


@pytest.fixture
def cfg_logging(caplog):
Expand Down
1 change: 1 addition & 0 deletions subprojects/robotpy-wpilib/tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pytest
pytest-reraise
Loading
Loading