Skip to content

feat: add headlight node#174

Merged
ConnorNeed merged 2 commits into
mainfrom
headlight-control
Jul 18, 2026
Merged

feat: add headlight node#174
ConnorNeed merged 2 commits into
mainfrom
headlight-control

Conversation

@ConnorNeed

Copy link
Copy Markdown
Member

I haven't added it to any launch file yet - not sure where you want it since it is only used in 1 task.
gpio group outside the container maps to that number so that's why we need to add it to the dev container config.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new ROS 2 node in the gpio_controller package to control left/right headlights via Linux PWM sysfs, and updates development container runtime permissions to support the needed hardware access.

Changes:

  • Register a new headlights console script entry point for the gpio controller package.
  • Introduce HeadlightNode to export/configure PWM and subscribe to left/right headlight duty-cycle topics.
  • Add an extra group to the Jetson devcontainer run args to match the host’s GPIO/PWM access model.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/HW-Devices/gpio_controller/setup.py Adds the new headlights console script entry point.
src/HW-Devices/gpio_controller/gpio_controller/headlights.py New ROS 2 node implementing PWM sysfs setup and topic-driven headlight control.
.devcontainer/jetson/devcontainer.json Adds an additional --group-add for hardware access in the dev container.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/HW-Devices/gpio_controller/gpio_controller/headlights.py
Comment thread src/HW-Devices/gpio_controller/gpio_controller/headlights.py
Comment thread src/HW-Devices/gpio_controller/gpio_controller/headlights.py
@ConnorNeed
ConnorNeed requested a review from codeflight1 July 18, 2026 06:26
@ConnorNeed
ConnorNeed merged commit 2e5465f into main Jul 18, 2026
6 checks passed
@ConnorNeed
ConnorNeed deleted the headlight-control branch July 19, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants