robotpy / examples

Repository of RobotPy example projects
45 stars 53 forks source link

Fixing examples for Robotpy 2020 #28

Closed CrispyBacon1999 closed 2 years ago

CrispyBacon1999 commented 4 years ago

List of examples that have been tested and work with the new versions of wpilib (that are uploaded to pypi).

Waiting on updated command based framework

Waiting on cscore update

Waiting on cscore update

Being added in #27

Waiting on updated framework

Partial support, AnalogGyro value can't be modified in simulator

Waiting for robotpy-navx update

Waiting for robotpy-navx update

Waiting for robotpy-navx update

Waiting on updated command based framework

Should probably be removed as it is a demonstration of wpilib.SampleRobot which no longer exists. Removed

wpilib.shuffleboard doesn't exist

Code crash when declaring autonomous modes, seems to be a generator passed in when expecting a list


site-packages\robotpy_ext\autonomous\stateful_autonomous.py", line 359, in __build_states
self.MODE_NAME + "_durations", (name for _, (name, desc) in sorted_states)
TypeError: putStringArray(): incompatible function arguments. The following argument types are supported:
1. (self: _pyntcore._ntcore.NetworkTable, key: str, value: List[str]) -> bool

Invoked with: <_pyntcore._ntcore.NetworkTable object at 0x000001C860FBC7B0>, 'Drive Backwards_durations', <generator object StatefulAutonomous.__build_states.. at 0x000001C860F27C48>



- [x] `tank-drive`
- [x] `timed`
CrispyBacon1999 commented 4 years ago

Command based examples should work now, just need help fixing them since all of them seem to be broken in some way or another. I'm not familiar enough with the command based framework to fix them.

virtuald commented 2 years ago

Tests re-enabled, so good enough for now.