Home        Store        Learn        Blog

Relay status in log file

Hi all,
which parameter should i search to get the status of RELAY PIN in tlog file?

Thank you

Hi, unfortunately it seems that this information is not available on any message.

While it is far from ideal, you could track the MANUAL_CONTROL messages to check the buttons toggling them

Thanks for your reply willian.
Is it really difficult to getting add such information in tlog file? which file should i edit to do this?

There is no apropriate mavlink message for reporting relay status right now.
If you are willing to change de code, you could use something like gcs().send_text() to report changes as messages or maybe send a name_value_float with the state of the relay

Thanks willian,
Worked for me.
i just used gcs().send_named_float() function in joystick.cpp file

1 Like