Skip to content

Commit db82357

Browse files
committed
magicbot: Add usage reporting
1 parent 27d0580 commit db82357

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

magicbot/magicrobot.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,14 @@ class MagicRobot(wpilib.RobotBase):
6767

6868
def __init__(self) -> None:
6969
super().__init__()
70+
hal.report(
71+
hal.tResourceType.kResourceType_Framework.value,
72+
hal.tInstances.kFramework_MagicBot.value,
73+
)
7074

7175
self._exclude_from_injection = ["logger"]
7276

73-
self.__last_error_report = -10
77+
self.__last_error_report = -10.0
7478

7579
self._components: list[tuple[str, Any]] = []
7680
self._feedbacks: list[tuple[Callable[[], Any], Callable[[Any], Any]]] = []

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ zip_safe = False
2424
include_package_data = True
2525
packages = find:
2626
install_requires =
27-
wpilib>=2025.0.0b1,<2026
27+
wpilib>=2025.0.0b2,<2026
2828
setup_requires =
2929
setuptools_scm > 6
3030
python_requires = >=3.9

0 commit comments

Comments
 (0)