Yes. I have this issue with beta4 installed through MP. Also I checked that with latest master I build myself before this small change and after.
I suspect this is somehow caused by some convoluted behavior of implicit type conversion for switch. Tried to find quickly where this enum is defined, but I did not setup proper debug session.
I am testing on Matek H743-SLIM, perhaps this is that particular hardware related.
I just did simple test, as I suspected that resend_now is not set properly, but the only way that happening is switch falling into wrong mode, or default. So i just added this to default and that immediately fixed the issue, that is why I went this direction.
However that might need some proper debugging in the future, as this getMode is used same way in other gimals code.
Would be nice to get some confirmation this is actually happening, but not sure how many people can actually test it.
Neverthless, change is very minor and I would say very low risk and seems to be fixing this issue on my desk.
Also for future reference - without this change initialization takes 60s and You can do nothing with gimbal during that time. With this change initialization also takes 60s to get default mode applied, but onece you touch rc control and cause it to switch into targetting mode it starts to work earlier than this time period.
BTW - I also validated by setup by building beta4 myself and comparing hex file with the one I downloaded from firmware.ardupilot.org and the hex files are identical.
I did some additional testing and for sure beta4 is not working correctly with my gimbal, but… there has to be something that fixes that issues after beta4 release. I just build master without this small change and gimbal works fine, reverted to beta4 and 1s refresh issues is back. Sooo this “fix” is not the factor. I fixed it for me, as I was just not building beta4 but master testing it.
With this change or without it HEX files are identical, so I did not make sense. I had to check it.
Conculision some change after beta4 release fixes that issue.
I closed PR as nor required to fix anything.