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

Issue 203 auto switch cycle mode #229

Merged
merged 10 commits into from
Jun 17, 2024

Conversation

yai-rosejo
Copy link
Collaborator

#203
A continuation of the discussion and development of the cycle mode. These small changes allow Ros_MotionControl_StartMotionMode() to verify that the system is in a continuous cycle mode, and if it isn't it will try to set the cycle mode to continuous.

@ted-miller ted-miller linked an issue Mar 27, 2024 that may be closed by this pull request
@ted-miller
Copy link
Collaborator

Just realized that I missed this. I'll validate in the next day or so. But the code changes look OK with a quick glance.

@ted-miller ted-miller self-requested a review April 8, 2024 19:36
@gavanderhoorn
Copy link
Collaborator

I'm still wondering whether it would help raising an alarm if for some reason we can't change the cycle setting, in addition to the debug log statement.

(the service call will of course still fail with an appropriate message)

@ted-miller
Copy link
Collaborator

I agree that an alarm is warranted if the set-operation fails and the current cycle is STEP.

Copy link
Collaborator

@ted-miller ted-miller left a comment

Choose a reason for hiding this comment

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

@yai-rosejo
I just tested and it works great.

Two things:

  1. It would nice to implement that alarm.
  2. I think it should do a final check to Ros_Controller_IsContinuousCycle to verify the setting was applied. This would require a call to Ros_Controller_IoStatusUpdate to fetch the value.

If you're tied up with Matt, let me know and I'll implement the changes.

@ted-miller ted-miller self-assigned this Apr 17, 2024
ted-miller
ted-miller previously approved these changes Apr 17, 2024
doc/ros_api.md Outdated Show resolved Hide resolved
doc/troubleshooting.md Show resolved Hide resolved
doc/troubleshooting.md Outdated Show resolved Hide resolved
doc/troubleshooting.md Show resolved Hide resolved
src/MotionControl.c Outdated Show resolved Hide resolved
src/MotionControl.c Show resolved Hide resolved
src/MotionControl.c Show resolved Hide resolved
@gavanderhoorn
Copy link
Collaborator

Friendly ping?

@ted-miller
Copy link
Collaborator

Apologies for the delay. I will look at this again later in the week.

@gavanderhoorn
Copy link
Collaborator

I've added (a) named constant(s) in a461aee and rebased on top of main as this was otherwise in conflict (due to move of header to the new lib sub dir).

@ted-miller
Copy link
Collaborator

build-check was verified locally.

@ted-miller ted-miller merged commit d8b75dd into Yaskawa-Global:main Jun 17, 2024
6 checks passed
@gavanderhoorn gavanderhoorn added this to the 0.1.3 milestone Jul 10, 2024
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.

Cycle-switch-mode during setup procedure
3 participants