You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is about the functions in iso15118/secc/controller/interface.py
The functions are written as if they are checks for the contactor, however the documentation is unclear.
Especially the is_contactor_opened confuses me while making an implementation.
I would suggest either changing the function name in case it actually opens the contactor (this would surprise me)
or writing a doc as something like "Check if the contactor is opened. (open contactor -> terminated energy flow)"
That of course is a draft, but I hope you get the gist of it.
@abstractmethod
async def is_contactor_opened(self) -> bool:
"""
Sends a command to the SECC to get the contactor status is opened to terminate
energy flow
Relevant for:
- all protocols
"""
raise NotImplementedError
@abstractmethod
async def is_contactor_closed(self) -> Optional[bool]:
"""
Sends a command to the SECC to get the contactor status is closed
Relevant for:
- all protocols
"""
raise NotImplementedError
The text was updated successfully, but these errors were encountered:
This is about the functions in
iso15118/secc/controller/interface.py
The functions are written as if they are checks for the contactor, however the documentation is unclear.
Especially the
is_contactor_opened
confuses me while making an implementation.I would suggest either changing the function name in case it actually opens the contactor (this would surprise me)
or writing a doc as something like "Check if the contactor is opened. (open contactor -> terminated energy flow)"
That of course is a draft, but I hope you get the gist of it.
The text was updated successfully, but these errors were encountered: