-
Notifications
You must be signed in to change notification settings - Fork 1
32 task operation mode msg srv #39
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
base: main
Are you sure you want to change the base?
Conversation
jorgenfj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move the constants to the .msg file. For the service the
srv/OperationModeSRV.srv
Outdated
| uint8 KILLSWITCH = 0 | ||
| uint8 AUTONOMOUS = 1 | ||
| uint8 MANUAL = 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move constants to the .msg file
| @@ -0,0 +1,12 @@ | |||
| #request | |||
| uint8 mode | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This field should be the operation mode msg to be more explicit
srv/OperationModeSRV.srv
Outdated
| uint8 mode | ||
| bool absolute | ||
|
|
||
| uint8 KILLSWITCH = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid using 0 as a constant to avoid bugs with uninitialized values
|
I think it makes more sense to name the service something like |
4eff02f to
9549a9d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why have both SetKillswitch and ToggleKillswitch? Is it not sufficient with one of them?
Added operation mode message type
Added operation mode service type