I got two (minor) problems with the Siyi a8 camera implementation.
I am running 4.6.0 beta4 arducopter.
First issue is that I can not generate a switch over from normal mode to FPV mode (by activating Mount Roll/Pitch Lock).
I assigned Channel 15 for this, and set the option of Mount Roll/Pitch lock which appears as 185 in Mission Planner.
When I start the arducopter and try to activate the switch, I get a message “Invalid channel option (185)”
I assume that somewhere in the arducopter the correct number was somehow mixed up, but I can not see an easy way of finding which number corresponds to this option.
Second issue: the zoom, I assigned a pot to RC13, while I move it, I get messages RC13: Camera Zoom MIDDLE, LOW, HIGH, but the image really zooms from totally in to totally out, without any intermediate positions, and only when pot reaches the limits of its movement.
Tried to implement it, 163 is yaw lock, and it works. However, what I am looking for is the pitch/roll lock.
It is virtually impossible to fly in acro mode without this lock, i.e. without the lock, the image is stabilized DJI style, so there is no visual indication about the inclination of the copter.
In mission planner there is both yaw lock, with value 163
From Siyi manual, it should change the Motion with values 3, 4, and 5, with Pitch/Roll lock probably corresponding to Motion 5. and normal mode to Motion 3. I can modify these parameters through the Siyi setup application, but I have to have the option to change that during the flight.
Photo and Record CMD_ID:0x0C------Photo and Record Send data format No. Data Type Data Name Description uint8_t func_type
0: Take a picture
1: Switch on / off HDR (not supported yet)
2: Start / Stop Recording
3: Motion – Lock Mode
4: Motion – Follow Mode
5: Motion – FPV Mode
6: Set video output as HDMI (Only available on ZT6 and A8 mini, restart gimbal to take effect)
7: Set video output as CVBS (Only available on ZT6 and A8 mini, restart gimbal to take effect)
8: Turn off both HDMI and CVBS video output (Only available on ZT6 and A8 mini, restart gimbal to take effect
Just wonder, if I set Serial to 28 scripting using param:set, obtain Serial port:find_serial(0), then port:write to it a string which changes the motion mode and then set back Serial to 8 (gymbal), would it work? Would the gymbal communication coming from ardupilot resume normally or not?
This routine would be called once in a while when there is a change in the switch responsable for gymbal mode.
I do not want to take over all communications through Lua (lilke pointing) because of the complication of implementing CRC check sum, but the switching between Motion modes is easy as there are defined strings in Siyi a8 manual
I have uploaded the newest DEV 4.8.0 version, indeed, now when I set the parameter for RC15_OPTION to 185 it shows correctly in the messages, i.e. switching back and forth I get MOUNT ROLL/PITCH LOCK HIGH or LOW.
However, the behaviour of the stabilization does not change. Meaning, if I roll or pitch the copter by hand, the camera continues to point to the same spot, i.e. is fully stabilized, and the switch does not change anything…
I am trying to get a mode where the camera remains fixed with reference to the copter, not to the ground, to be able to fly in acro mode.
Any ideas how to achieve it? Could there be some issue in the programming?
The only workaround I see is to install another small, non-stabilized camera, and to switch from Siyi to that camera using the two video channel switch available on Matek 743. But it is a very clumsy way of doing things…
Just a comment: I decided to go the two camera route. The advantage is that it turned out to be very simple to setup. Additional advantage is that the secondary camera is absolutely fixed. One potential issue with the gymbal is that even if I could find a way to switch it to the FPV mode, the roll and yaw pointing through RC controls must also be disabled and the camera centered to some fixed position. That would be another small complication.
Finally, I discovered that you can connect cameras which use different signals (i.e. PAL and NTSC), despite the fact that the Matek Manual says that cameras of the same type should be used.
The need for fixed camera is due to the fact that only in acro mode one can make high speed descents (10..15 m/s), and without a fixed camera the risk of loosing control is very high. And if one flies high, the ability to go down in 3 to 5 minutes is an absolute must.