Skip to content

Conversation

@wmostrenko
Copy link
Contributor

Please fill out the following before requesting review on this PR

Description

Added the ability to toggle between "m/s or m" power mode or "pulse width" power mode when kicking/chipping in robot diagnostics. Also added a slider to manually control the pulse width for the kicker and chipper. Also works for autokick/autochip.

Testing Done

Testing will need to be done with robots as when we tried previously there we too many technical difficulties connecting my computer to the robots.

Resolved Issues

resolves #3329

Length Justification and Key Files to Review

Review Checklist

It is the reviewers responsibility to also make sure every item here has been covered

  • [X ] Function & Class comments: All function definitions (usually in the .h file) should have a javadoc style comment at the start of them. For examples, see the functions defined in thunderbots/software/geom. Similarly, all classes should have an associated Javadoc comment explaining the purpose of the class.
  • [ X] Remove all commented out code
  • [X ] Remove extra print statements: for example, those just used for testing
  • [X ] Resolve all TODO's: All TODO (or similar) statements should either be completed or associated with a github issue

williamckha
williamckha previously approved these changes Mar 8, 2025
Copy link
Contributor

@itsarune itsarune left a comment

Choose a reason for hiding this comment

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

Looks good, I like saurav's suggestion about hiding the control sliders when the mode isn't selected. Let's try to get that in as well.

@github-actions
Copy link
Contributor

This PR is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale Inactive pull requests label Apr 27, 2025
@itsarune itsarune removed the Stale Inactive pull requests label Apr 29, 2025
…l_pulse_width

# Conflicts:
#	src/software/thunderscope/robot_diagnostics/chicker_widget.py
Copy link
Contributor

@itsarune itsarune left a comment

Choose a reason for hiding this comment

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

looks good, left something minor comments! have you field tested this version yet?

@wmostrenko
Copy link
Contributor Author

looks good, left something minor comments! have you field tested this version yet?

Not yet!! I believe last time we tried to field test it there was some sort of issue connecting to the robots so perhaps we could try again if you're available sometime soon to show me how as I completely forgot? Thanks!

@williamckha
Copy link
Member

looks good, left something minor comments! have you field tested this version yet?

Not yet!! I believe last time we tried to field test it there was some sort of issue connecting to the robots so perhaps we could try again if you're available sometime soon to show me how as I completely forgot? Thanks!

We're in the mezz every saturday, so feel free to swing by and I can help! (or lmk if you want me to just field test for you)

@wmostrenko
Copy link
Contributor Author

looks good, left something minor comments! have you field tested this version yet?

Not yet!! I believe last time we tried to field test it there was some sort of issue connecting to the robots so perhaps we could try again if you're available sometime soon to show me how as I completely forgot? Thanks!

We're in the mezz every saturday, so feel free to swing by and I can help! (or lmk if you want me to just field test for you)

Great sounds good!! I'll drop by soon when find some time! Thanks!

)

chicker_widget_vbox_layout.addWidget(self.auto_kick_chip_buttons_box)
chicker_widget_vbox_layout.addWidget(self.power_mode_buttons_box)
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add the power_mode_buttons_box below the kick_chip_sliders_box? The sliders looks a bit stranded from the buttons that actually toggles their capability

Copy link
Contributor

@itsarune itsarune left a comment

Choose a reason for hiding this comment

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

looks good, left another comment

Copy link
Contributor

@Thunderbots Thunderbots left a comment

Choose a reason for hiding this comment

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

Looks good to me! Unfortunately kicking and chipping is broken on the robot we have right now, so we can't really test this out :( We'll merge your PR in as soon as #3493 is resolved.

William

case TbotsProto::PowerControl::ChickerControl::kChipPulseWidth:
{
LOG(FATAL)
<< "Chiper control using pulse widths is not supported in simulation";
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<< "Chiper control using pulse widths is not supported in simulation";
<< "Chipper control using pulse widths is not supported in simulation";

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.

Add ability to control pulse_width for kick commands in RobotDiagnostics

5 participants