Skip to content

Implementacja styków no i nc#44

Open
CZIWELLO wants to merge 2 commits into
devfrom
Implementacja-styków-NO-i-NC

Hidden character warning

The head ref may contain hidden characters: "Implementacja-styk\u00f3w-NO-i-NC"
Open

Implementacja styków no i nc#44
CZIWELLO wants to merge 2 commits into
devfrom
Implementacja-styków-NO-i-NC

Conversation

@CZIWELLO

Copy link
Copy Markdown

Opis

Dodano klasę 'Contact' która ma za zadanie reprezentować styki NO oraz NC.
w tym celu utworzono dwa pliki w odpowiednich folderach oraz nadpisano metodę wirtualną 'evaluate' zgodnie ze specyfikacją.

Powiązane zgłoszenie (Issue)

closes #21

Motywacja i kontekst

self explanatory.

Jak zostało to przetestowane?

projekt poprawnie się buduje.

Zrzuty ekranu (jeśli dotyczy):

Rodzaje zmian

  • Naprawa błędu (zmiana niełamiąca kompatybilności, która naprawia problem)
  • Nowa funkcja (zmiana niełamiąca kompatybilności, która dodaje funkcjonalność)
  • Zmiana łamiąca kompatybilność (naprawa lub funkcja, która spowodowałaby zmianę istniejącej funkcjonalności)

Lista kontrolna:

  • Mój kod jest zgodny ze stylem kodu tego projektu.
  • Moja zmiana wymaga zmiany w dokumentacji.
  • Zaktualizowałem odpowiednio dokumentację.

CZIWELLO added 2 commits May 8, 2026 23:12
Add Contact.h and Contact.cpp introducing a Contact element. Defines ContactType enum (NO/NC) and a Contact class inheriting from VirtualElement with an explicit constructor that accepts an address and contact type. Stores address and type members and adds evaluate(MemoryMap&) as a stub (currently returns false/0). TODO: implement evaluate logic to consult MemoryMap and handle NO/NC behavior. (opis przez copilota)
Include MemoryMap, rename constructor parameters from generic names to address and type, and implement Contact::evaluate. The function now returns true only when powerFlow is true and the contact state matches its type (NO reads true from memory, NC reads false). Keeps existing comment explaining behavior.
@PEXEL2002 PEXEL2002 self-requested a review May 15, 2026 18:03

@PEXEL2002 PEXEL2002 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

next time oznaczaj mnie to szybciej zareaguje
image

ale co do kodu wygląda git

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