We are building a gimbal camera with zoom controll. We are usgin Herelink and the scroll wheel is used for the pitch, and as we dont have another wheel, we want to use 1 button to zoom out and a second button to the zoom out. The thing is the zoom cotroll from the camera only has 1 channel to do that, 1100 to zoom out, 2000 to zoom in, 1500 to do nothing.
So, to remote the zoom with the HereLink and 2 buttons, I will need to assign the same channel to 2 differents buttons. Is that posible?
I have assigned 2 different buttons to the same SBUS channel for flight mode switching. That works. So your’s should work as well.
great! you did that with the last HereLink FW?
I have updated to the last FW and i still getting the same error, can you show me how ou did it?
Hi, when you assign 2 buttons to the same channel it cannot be momentary or toggle. When you deactivate toggle on both of them it will work. Each button can then set the PWM output to the desired value. Maybe you need 3 buttons then if you need 1100, 2000 and 1500.
Sorry to bother you, but now I have another problem… As the zoom works as 1100 zoom in, 1500 do nothing and 2000 zoom out, with this setup I only can do the max zoom and min zoom. I need to set when the buttons release, set the channel to 1500… any idea?
Suggest you can use a 3rd button to set to 1500.
Or use the long press of the same button to set to 1500.
Or maybe something like this:
Button 1 long press: zoom in
Button 1 short press: 1500, do nothing
Button 2 long press: zoom out
Button 2 short press: 1500, do nothing
Not sure… Would need to be tested…
If you are using a fast autopilot I would go for Arducopter LUA scripting. Then you can use the wheel to modify different channels depending on the state of another channel.
E.G. if rc channel 8 is low, the wheel (rc channel 6) modifies the output of channel 9 (pitch) and if rc channel 8 is high it modifies channel 10 (zoom). If you use long press to switch channel 8 you could use short press for channel 7 and use it to reset channels 9 and 10 whatever you like.
@Sven, how do you do the flight mode switching? My latest information is, that flight mode switching (all but failsafe) should be realized via Mavlink for safety reasons?
Hi @hextd. That’s right. I have only assigned Loiter and RTL to buttons in the Herelink settings. I want to be able to switch to a safe mode in case GCS app crashes and does not recover (however, it never happened to me so far).
I think it is as important to ensure that the flight modes assigned to channel 5 in the FC are only safe ones. So in case of an undefined/unwanted PWM value it can only switch to a safe flight mode.