Skip to content

Conversation

@eirisak
Copy link

@eirisak eirisak commented Jan 8, 2026

Added operation mode message type
Added operation mode service type

@eirisak eirisak self-assigned this Jan 8, 2026
@eirisak eirisak linked an issue Jan 8, 2026 that may be closed by this pull request
3 tasks
Copy link
Contributor

@jorgenfj jorgenfj left a 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

Comment on lines 5 to 7
uint8 KILLSWITCH = 0
uint8 AUTONOMOUS = 1
uint8 MANUAL = 2
Copy link
Contributor

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
Copy link
Contributor

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

uint8 mode
bool absolute

uint8 KILLSWITCH = 0
Copy link
Contributor

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

@Andeshog
Copy link
Contributor

Andeshog commented Jan 8, 2026

I think it makes more sense to name the service something like ChangeOperationMode or RequestOperationMode or something along those lines depending on what you are doing with it

@eirisak eirisak force-pushed the 32-task-operation-mode-msg-srv branch from 4eff02f to 9549a9d Compare January 9, 2026 15:02
Copy link
Contributor

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?

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.

[TASK] Operation Mode msg + srv

4 participants