Turning Lumen lights on / off on a BlueBoat

I have designed an ASV and am using ArduRover to control it. I have added 4 Lumen lights and I just want to turn them On & Off - easy in ArduSub but not ArduRover - any suggestions?

Hi @andyfmarsh -

Can you clarify how you want to turn them on and off? Your’e using Cockpit, but do you want a slider on-screen, or joystick buttons, or ?

Hi Tony, I would prefer a joystick button toggle, there is no need for dimming at this stage.

Hi @andyfmarsh -

Understood - worth pointing out that such on/off button control requires a different approach to dimming, as is commonly done and “easy” on ArduSub. That doesn’t mean it’s not possible! I think @EliotBR will be able to combine some existing resources to point you in the right direction.

Hi @andyfmarsh,

There are a few different approaches covered in this comment. If you want full brightness then you can just configure a relay output on your Navigator (per the intro), then use the Relay Toggle Control section to set up a Cockpit Action (which you can assign to a joystick button).

Feel free to follow up if any parts of that aren’t clear :slight_smile:


Perhaps worth noting that you haven’t mentioned which flight controller board you’re using - the described toggling approach will likely only work with a Navigator. A similar approach may be more generally possible with RELAY_STATUS messages, but would require some adjustments to the logic.

Hi Ellot, Tony has already directed me to this page and it makes no sense, I cannot set a text value to RELAY1_FUNCTION, it only accepts a number and SERV04_FUNCTION does not have GPIO in the selection list.

Which ArduRover and BlueOS versions are you using?

  • RELAY1_FUNCTION should be possible to set to the Relay option
    • That’s numerical value 1, if the names are not appearing in the parameter editor for some reason
  • SERVO4_FUNCTION should be possible to set to the GPIO option
    • That’s numerical value -1

If the values you want are not appearing as options then it may work to choose “Custom” and specify the value numerically.

I am using a recently purchased Navigator with BlueOS 1.4.3 and ArduRover 4.6.3

For reasons I cant explain, RELAY_FUNCTION can now be set to Relay (before it was number only) and SERV04_FUNCTION now has GPIO in the list - the power cycling may have helped but its odd.

Ok, its all working correctly now so thank you :+1:

1 Like

It’s possible (though unlikely) that the relevant metadata failed to fetch for some reason. Otherwise there could have been an old browser cache that was keeping around values from a different system/version - I’ve definitely run into issues with that before (which we’ve yet to find a way to replicate consistently, and may not even be possible for us to fix).

Great to hear! :slight_smile:

Feel free to follow up if you decide to pursue more advanced control options, or you can make new posts for other topics. Hopefully you enjoy using Cockpit with your boat! :smiley:

One problem, when I turn the tights on, I get an alert … PreArm: Check Mag Field (xy diff ..

Are the battery or Lumen power wires running close to your Navigator?

It’s possible the current draw is causing enough magnetic disturbance to the compass that the autopilot is concerned about it.

1 Like