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 coroutine command support #12

Draft
wants to merge 30 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
e4d360c
Add coroutine command support
TheTripleV Apr 22, 2022
8488fbc
Allow setting runs_when_disabled for coroutines
TheTripleV Apr 22, 2022
5de62e0
black
TheTripleV Apr 22, 2022
3ee269a
formatting
TheTripleV Apr 22, 2022
d285fb0
underscore c++ trigger
TheTripleV Apr 23, 2022
70f5715
fix bitwise operators for and/or/not
TheTripleV Apr 23, 2022
9122d07
add trigger constructor and debounce
TheTripleV Apr 23, 2022
7174dfb
add missing trigger api
TheTripleV Apr 23, 2022
decd650
add missing button api
TheTripleV Apr 23, 2022
1c7e4d9
remove old c++ wrapping
TheTripleV Apr 23, 2022
ed5b106
add __iter__ docstring
TheTripleV Apr 23, 2022
aafde42
better networkbutton error message
TheTripleV Apr 23, 2022
0bb3251
add docstrings
TheTripleV Apr 23, 2022
8f91b2b
change commandify implementation to function
TheTripleV Apr 23, 2022
71322a3
black
TheTripleV Apr 23, 2022
bac4080
fix test
TheTripleV Apr 24, 2022
7815111
Update commands2/button/networkbutton.py
TheTripleV Apr 24, 2022
021ce43
Update commands2/coroutinecommand.py
TheTripleV Apr 24, 2022
401aa5f
ci and nt args
TheTripleV Apr 28, 2022
04d90d7
Merge branch 'hotchocolate' of https://github.com/TheTripleV/robotpy-…
TheTripleV Apr 28, 2022
ffbeeca
better error messages
TheTripleV Apr 28, 2022
f2cae93
3.7 support
TheTripleV Apr 29, 2022
6068723
skip test
TheTripleV Apr 29, 2022
d8078e7
more 3.7
TheTripleV Apr 29, 2022
c977711
fix whileHeld instant command
TheTripleV Apr 30, 2022
4028320
black
TheTripleV Apr 30, 2022
243072c
most tests
TheTripleV May 3, 2022
748c84c
merge b3
TheTripleV Nov 23, 2022
a2da722
merge b4
TheTripleV Nov 23, 2022
cb5af47
get it testable
TheTripleV Nov 24, 2022
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
Prev Previous commit
Next Next commit
underscore c++ trigger
  • Loading branch information
TheTripleV committed Apr 23, 2022
commit d285fb04bfa0deacbe554f7924a65f8bc09e58b8
2 changes: 1 addition & 1 deletion commands2/__init__.py
Original file line number Diff line number Diff line change
@@ -86,7 +86,7 @@
"TrapezoidProfileCommandRadians",
"TrapezoidProfileSubsystem",
"TrapezoidProfileSubsystemRadians",
# "Trigger",
# "_Trigger",
"WaitCommand",
"WaitUntilCommand",
# "button",
2 changes: 1 addition & 1 deletion commands2/trigger.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Callable, Optional, overload, List, Union

from ._impl import Command, Subsystem
from ._impl import Trigger as _Trigger
from ._impl import _Trigger

from .coroutinecommand import CoroutineCommand, Coroutineable, Coroutine

1 change: 1 addition & 0 deletions gen/Trigger.yml
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@ extra_includes:

classes:
Trigger:
rename: "_Trigger"
shared_ptr: true
methods:
Trigger: