[SW] Uniemożliwienie jednoczesnego ruchu 2 serw na tej samej przetwornicy

Open
#501 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp
Domain
embedded-iot

Research direction

Start by reading the servo movement code and the JSON configuration handling to see how servos are mapped to power converters and how movement duration is managed. Implement a per-converter mechanism that allows simultaneous movement on different converters, prevents overlap on the same converter, and releases safely when pulsing exceeds the nominal two seconds. Document its behavior and verify the acceptance criteria, including that it cannot deadlock.

Written by the indexing model from the issue text.

Description

W liquidBoard z uwagi na brak miejsca trzeba było ograniczyć ilość przetwornic przy jednoczesnym zwiększeniu ilości serw. podjęta została decyzja o pozostawieniu 4 przetowornic i każda z nich zasila 2 serwa. W normalnym użytkowaniu rakiety nie jest to problemem jako że serwa zostąły pogrupowane w ten sposób aby nie ruszały się jednocześnie. Natomiast po SOMEIP i tak istnieje możliwośc ruszenia nimi jednocześnie co może prowadzić do spalenia przetwornicy która nie jest przystosowana do tak dużych obciążeń.
Należy dodać mechanizm który na bazie configu (plik .json) wdrozy jakis mutex na ruch serw natych samych przetwornicach.

Kryteria odbioru:

  • niemożliwośc ruchu 2 serw na tej samej przetwornicy, ale 2 na różnych przetwornicach już tak
  • należy pamiętać ze kazde serwo moze miec ustawiony tryb pulsowania i pracować dluzej niz nominalne 2s
  • brak dead-lock
  • dokumentacja działania mechanizmu
image
Dominant language
C++
Stars
1
Forks
3
Avg merge
14h 51m
Merged PRs (30d)
7

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Simba-Avionic/srp

All issues in Simba-Avionic/srp

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.