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

Add more information to rtp packets for motion control upgrades #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kylestach
Copy link
Contributor

With new motion control, we're going to be sending a lot more data down to the robots. This adds in vision data and goal pos/vel/accel to the control structs.

int8_t dribbler;
uint8_t kickStrength;

unsigned motionMode : 2; // 0 = position control, 1 = velocity control
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this supposed to be 2 bits?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah. I can think of a few more modes we might want in the future, so it seems like it makes sense to leave a bit of extra room considering there's space left in the last byte of RTP packet anyway.

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.

2 participants