Servers by jDrones

Help with adding a bumper switch as a safety backup

Hello,

I would like to add a bumper switch to my skidsteer rover which has 50 kg and most of the power converted to torque.I dont want it to harm any humans in case someone apears near and all my fancy sensors fail for one or another reason.I would like a simple endswitch to trigger some reversing routine but continue mission after some delay.I was thinking to add another arduino to alter servo outputs, but it would be better to do it within Pixhawk.

@AnJu, I think this could be done with Lua scripts using Rover-4.0.0. We have some documentation here on how to setup lua scripts although it’s still quite limited.

Wow, that looks like a whole new paralel world :grinning: .That might be quite a challenge for me, but there is a tutorial on how to add new bindings to lua, so that may help.Thank you rmackay9.

@AnJu, the only documentation we have at the moment is in the link above including some limited docs on adding new bindings near the bottom. Without adding bindings I think you could make a bumper disarm the vehicle but not make it backup (yet).

Thanks, if i add arduino i would simply modify PWM upon event. My skills are just about at a level to do that. I was able to modify some stuff back with old Ardupilot 2.4 within arduino ide, but i dont have an environment for modifying the code since Pixhawk.But i can see it would be well worth investing some time in that.Thanks for response. I have another question about nongps nav which i will post in proper theme.

1 Like
Servers by jDrones