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

RobotStatus should indicate when Thunderloop was last flashed for each robot #3349

Open
4 tasks
sauravbanna opened this issue Oct 5, 2024 · 0 comments
Open
4 tasks
Assignees
Labels
Difficulty - 7 Well-defined tasks that requires some understanding about the relevant system and tools Elaborated Starters Robot Software Thunderscope

Comments

@sauravbanna
Copy link
Contributor

Description of the task

When we make a change to Thunderloop code, we have to flash the robots with the new build to make it take effect. This was done a lot during Robocup, so we want a way to keep track of when a robot was flashed.

So the robot flashing script should store the time of flashing (and possibly a hash ID) in the constants on the robot. This should be read and sent over through the RobotStatus messages, and then displayed by Thunderscope.

Files / Classes to look at

  1. thunderloop.cpp Take a look at the constructor to see how we currently read robot constants. The runLoop method is where the RobotStatus message is constructed
  2. The run_ansible script is what flashes the new code to the robot.
  3. In Thunderscope, the RobotView and RobotInfo widgets currently display RobotStatus messages

Acceptance criteria

  • New field in Thunderscope which displays the time of flashing / a hash ID
  • Test locally, you should just see 0 values (since a real robot is not providing the value)
  • Test on robot after flashing your Thunderloop changes
  • Flash a couple of time and see if the time is updated correctly

Blocked By

@sauravbanna sauravbanna added Difficulty - 7 Well-defined tasks that requires some understanding about the relevant system and tools Thunderscope Robot Software Elaborated Starters labels Oct 5, 2024
@DimitriK24 DimitriK24 self-assigned this Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty - 7 Well-defined tasks that requires some understanding about the relevant system and tools Elaborated Starters Robot Software Thunderscope
Projects
None yet
Development

No branches or pull requests

2 participants