Skip to content

Commit

Permalink
Merge pull request #216 from robotpy/magicbot-usage-report
Browse files Browse the repository at this point in the history
magicbot: Add usage reporting
  • Loading branch information
virtuald authored Nov 24, 2024
2 parents 27d0580 + db82357 commit dafa2b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion magicbot/magicrobot.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,14 @@ class MagicRobot(wpilib.RobotBase):

def __init__(self) -> None:
super().__init__()
hal.report(
hal.tResourceType.kResourceType_Framework.value,
hal.tInstances.kFramework_MagicBot.value,
)

self._exclude_from_injection = ["logger"]

self.__last_error_report = -10
self.__last_error_report = -10.0

self._components: list[tuple[str, Any]] = []
self._feedbacks: list[tuple[Callable[[], Any], Callable[[Any], Any]]] = []
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ zip_safe = False
include_package_data = True
packages = find:
install_requires =
wpilib>=2025.0.0b1,<2026
wpilib>=2025.0.0b2,<2026
setup_requires =
setuptools_scm > 6
python_requires = >=3.9
Expand Down

0 comments on commit dafa2b7

Please sign in to comment.