-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
⚠️ Issue: Temporal Alias & Fixed-Loop Coupling
Your current setup relies on a manually managed loop (bin.run), which is vulnerable to Clock Drift and won't sync with ROS bags or simulations. If the system lags, your "10Hz" pump might actually be running at 7Hz, and your data gets squashed like a bug on a windshield.
🎯 Location:
/robot/vtc/run_pump_cycle
/robot/vtc/pump.py
🩺 Diagnosis:
- Blocking Operations: Manual
whileloops ortime.sleep()calls prevent the ROS 2 executor from handling other threads (like your Display or Regulator) efficiently. Moving tocreate_timerallows the ROS executor to schedule these cycles precisely, even whenuse_sim_timeis set totrue.
💡 Proposal:
The Multi-Frequency ROS Timer Strategy
- Scrap the single
bin.runand create three independent ROS timers. This ensures that a slow "LO" flow harvest (like checking the battery) never delays your critical "HI" flow (the CPU pulse).
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Projects
Status
Todo