[wpilib] Disambiguate HID Sendable names (#8081)

Fixes #7933
Add Axis to triggers sendable name
This commit is contained in:
sciencewhiz
2025-07-15 21:19:03 -07:00
committed by GitHub
parent 2fc86a155d
commit 2875fd7d7c
8 changed files with 14 additions and 14 deletions

View File

@@ -309,7 +309,7 @@ public class {{ ConsoleName }}Controller extends GenericHID implements Sendable
builder.setSmartDashboardType("HID");
builder.publishConstString("ControllerType", "{{ ConsoleName }}");
{%- for trigger in triggers %}
builder.addDoubleProperty("{{ capitalize_first(trigger.name) }}", this::get{{ capitalize_first(trigger.name) }}Axis, null);
builder.addDoubleProperty("{{ capitalize_first(trigger.name) }} Axis", this::get{{ capitalize_first(trigger.name) }}Axis, null);
{%- endfor -%}
{% for stick in sticks %}
builder.addDoubleProperty("{{ stick.NameParts|map("capitalize")|join }}", this::get{{ stick.NameParts|map("capitalize")|join }}, null);