Hi @tony-white,
I have set up control of 3 relays (RELAY1/2/3) to be triggered by PWM 9, 10 and 11 respectively. I did this following Eliot’s step-by-step guide above - steps ‘Autopilot Relay Setup’ and ‘Basic Relay ON/OFF Control’. Through this I am able to turn the 3 relays on and off using on-screen buttons in Cockpit.
Since these 3 relays are controlling power to some critical survey sensors (INS, MBES, SV Sensor) I want to have a clear visual indicator from the Cockpit on-screen buttons what the state of each relay is. I therefore followed the steps in the ‘Relay Toggle Control’ section with the hope that I could connect this to an on-screen ‘Switch’ in Cockpit, which would give a clearer indication of whether the relevant relay had been turned on or off.
I was able to connect the Relay1 Toggle (and Relay2 Toggle/Relay3 Toggle) action to a single on-screen button for each relay - allowing each relay to be turned on/off on the same button (as opposed to separate on and off buttons).
I then tried to link the ‘Not Relay1’ Data Lake variable to an on-screen ‘Switch’ (toggle switch giving a better visual indication of the state of the relay command) but this does not produce any change in the relay state (both physically testing the relay device and monitoring the relevant Servo output with the Plotter Widget).
Hope that clears up a bit what I have done so far and what my intended outcome is ![]()