Skip to content

Conversation

@ejsears
Copy link
Collaborator

@ejsears ejsears commented Nov 4, 2025

Major Changes in this PR

This pull request updates the error message in the cmd_SET_LANE_LOADED method to provide clearer guidance when a lane is not loaded. The new message now includes troubleshooting steps for users.

Error message improvement:

  • Updated the error message in cmd_SET_LANE_LOADED to instruct users to check the LOAD switch configuration and filament detection, and to use the AFC_STATUS command for switch status.

Closes #566

Notes to Code Reviewers

How the changes in this PR are tested

image

PR Checklist: (Checked-off items are either done or do not apply to this PR)

  • I have performed a self-review of my code
  • CHANGELOG.md is updated (if end-user facing)
  • Documentation updated in AT-Documentation repository
  • Sent notification to software-design/software-discussions channel (as appropriate) requesting review
  • If this PR address a GitHub issue, the issue number is referenced in the PR description

NOTE: GitHub Copilot may be used for automated code reviews, however as it is an automated system, it's suggestions
may not be correct. Please do not rely on it to catch all issues. Please review any suggestions it makes and use your
own judgement to determine if they are correct.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves the error message for the SET_LANE_LOADED command to provide more actionable guidance when a lane is not loaded. The updated message now includes instructions to check the LOAD switch configuration and suggests using the AFC_STATUS command to verify switch status.

Key Changes

  • Enhanced the error message in cmd_SET_LANE_LOADED to be more descriptive and helpful for troubleshooting
  • Updated CHANGELOG.md to document this improvement

Reviewed Changes

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

File Description
extras/AFC_lane.py Improved error message clarity with additional troubleshooting guidance for unloaded lane scenarios
CHANGELOG.md Added changelog entry for the error message improvement

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

@ejsears ejsears merged commit e9a11ed into ArmoredTurtle:main Nov 8, 2025
7 checks passed
@ejsears ejsears deleted the issue_566 branch November 8, 2025 00:18
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.

[Enhancement]

2 participants