Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Ros_Controller_GetActiveAlarmCodes(..) #105

Merged
merged 3 commits into from
Aug 2, 2023

Conversation

gavanderhoorn
Copy link
Collaborator

Fixes #104.

Should fix it, at least. I haven't had an opportunity to test it.

But only if it hasn't been defined already.

According to available information, there can only ever be a single active error at the same time, so set it to 1.
It's actually just the error code itself.

MAX_ERROR_COUNT is always 1 (on supported generations of controllers), but let's still treat it as something that can change, to facilitate future updates.
@gavanderhoorn gavanderhoorn added this to the 0.1.1 milestone Aug 1, 2023
@gavanderhoorn gavanderhoorn marked this pull request as draft August 1, 2023 10:10
src/ControllerStatusIO.h Outdated Show resolved Hide resolved
This is needed as otherwise MAX_ERROR_COUNT is undefined when we use it in the ControllerStatusIO.h header.
@gavanderhoorn gavanderhoorn marked this pull request as ready for review August 2, 2023 13:47
@gavanderhoorn
Copy link
Collaborator Author

I don't know how to (reliably, easily) trigger an error, so I'm not sure how to test this.

@ted-miller
Copy link
Collaborator

I don't know how to (reliably, easily) trigger an error, so I'm not sure how to test this.

Just push PLAY when the robot is in TEACH mode.

I tested. All good.

@ted-miller ted-miller merged commit 258372a into main Aug 2, 2023
10 checks passed
@ted-miller ted-miller deleted the fix_get_active_alarm_codes branch August 2, 2023 18:03
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.

A pendant error causes failure in Ros_Controller_GetActiveAlarmCodes
2 participants