Skip to content

Comments

HeartBeat System & Threads Performance#16

Merged
jose5556 merged 9 commits intomainfrom
fet/heartbeat
Feb 12, 2026
Merged

HeartBeat System & Threads Performance#16
jose5556 merged 9 commits intomainfrom
fet/heartbeat

Conversation

@jose5556
Copy link
Member

@jose5556 jose5556 commented Feb 11, 2026

Pull Request

Summary

The main goal of this PR is to incorporate the Raspberry Pi heartbeat system into the new STM architecture.
Refactored thread priorities in a strategic way to improve emergency brake latency.
The motor and servo threads were integrated into a single thread to reduce CAN message congestion. Careful revision of sleep intervals was performed to avoid disrupting the proper functioning of other threads.
The battery thread bug was fixed and now outputs data every 1500 ms (remaining voltage and percentage).
The emergency brake also received a small refactor.

Related issues

#116

Type of change

  • Bug fix
  • New feature
  • Documentation update
  • Performance improvement
  • Chore / refactor
  • Release
  • Testing

Copy link
Contributor

@AfonsoMota-132 AfonsoMota-132 left a comment

Choose a reason for hiding this comment

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

the code changes were clear and understandable, although in some parts a few more comments would be usefull, but apart from that good job :3

@jose5556 jose5556 merged commit d65ee93 into main Feb 12, 2026
1 check passed
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