OlliW, Luis,
Ā
Ā Ā Ā Ā Ā I got the storm32 gimbal working today with master!
Ā
Ā Ā Ā Ā To get it working I needed to:
Ā·Ā Ā Ā Ā Ā Ā Ā Ā connect the gimbalās UART to Telem2
Ā·Ā Ā Ā Ā Ā Ā Ā Ā set SERIAL2_BAUD to ā115ā
Ā·Ā Ā Ā Ā Ā Ā Ā Ā set MNT_TYPE to ā4ā and reboot the Pixhawk
Ā
Ā Ā Ā Ā I managed to control any of the 3 axis of the camera using using knobs on the transmitter (ardupilotās mount library converts these to mavlink messages and sends down to the gimbal), and was partially successful at getting ROI (region of interest = point camera at a lat,lon,alt location) working.
Ā
Ā Ā Ā Ā Some issues I found were:
Ā·Ā Ā Ā Ā Ā Ā Ā Ā if arducopter sends COMMAND_LONG messages at more than 10 hz the gimbal cannot keep up and itās response slows as it seems to buffer messages.Ā Iāve slowed the update to 10hz.
Ā·Ā Ā Ā Ā Ā Ā Ā Ā tilt and yaw angle response seems reversed with pitch=-45 pointing up when it should point down and yaw +45 rotating left instead of right.Ā Iāve fixed this in the arducopter driver but I can switch it back if OlliW decides to reverse it on his side instead (which would probably be best)
Ā·Ā Ā Ā Ā Ā Ā Ā Ā providing yaw angle of 180deg correctly made the gimbal point backwards but providing -180 would make it spin around too far by 90deg.
Ā·Ā Ā Ā Ā Ā Ā Ā Ā the gimbal seems to be sending ACK messages with sysid = -1, compid = -1 (although this appeared as 4294967295) instead of using its own sysid,compid (i.e. 71, 67).Ā We donāt look at the ACKs anyway but probably best to fix this.
Ā·Ā Ā Ā Ā Ā Ā Ā Ā If connecting through the o323BGCTool with mavlink heartbeats enabled it loses connection after about 10seconds.Ā This is no big deal except the user must be quick to disable the mavlink heartbeats before attempting making any other config changes (and then must remember to turn it back on again later).
Ā
Ā Ā Ā Ā Iāve checked some changes into ardupilot master and these will go out with AC3.3-rc1 (release candidate #1) in the near future. Ā Iām also working on a wiki page to make it clear how to connect the Pixhawk & SToRM gimbal.
Ā
-Randy
Ā
Ā Ā Ā Ā Hereās the new wiki page.Ā http://copter.ardupilot.com/wiki/common-storm32-gimbal/
Ā
Ā Ā Ā Ā Itās not exhaustive, not trying to recreate OlliWās wiki, I just provided some links and highlight the critical bits that are special to the pixhawk+storm32 setup.
Ā
-Randy
--
You received this message because you are subscribed to the Google Groups "drones-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drones-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ā
Luis mentioned that I was using an old version so Iāve re-tested with the latest SToRM32 firmware (v0.67e) and it fixes these issues mentioned earlier:
Ā·Ā Ā Ā Ā Ā Ā Ā Ā if arducopter sends COMMAND_LONG messages at more than 10 hz the gimbal cannot keep up -- FIXED
Ā·Ā Ā Ā Ā Ā Ā Ā Ā If connecting through the o323BGCTool with mavlink heartbeats enabled it loses connection after about 10seconds -- FIXED
Ā
These remain:
Ā·Ā Ā Ā Ā Ā Ā Ā Ā tilt and yaw angle response seems reversed with pitch=-45 pointing up when it should point down and yaw +45 rotating left instead of right (temporarily fixed in arducopter).
Ā·Ā Ā Ā Ā Ā Ā Ā Ā yaw angle seems incorrect.Ā Providing 180deg makes the copter move to 270.
Ā·Ā Ā Ā Ā Ā Ā Ā Ā the gimbal seems to be sending ACK messages with sysid = -1, compid = -1 Ā instead of using its own sysid,compid (i.e. 71, 67).
Ā
.. This testing uncovered an existing bug in the mount code in which ROI for 3-axis gimbals was using absolute headings instead of relative.Ā With this fixed ROI now seems to work for SToRM (except for the yaw angle issue mentioned above).
Ā
By the way, when doing ROI with this mount and a 3-axis gimbal do we want the copter to point at the target or should it just let the gimbal do all the rotation?Ā I think we still want the vehicle to rotate so the gimbal will simply take out any yaw shakes.Ā People agree?
Ā
-Randy
By the way, when doing ROI with this mount and a 3-axis gimbal do we want the copter to point at the target or should it just let the gimbal do all the rotation?Ā I think we still want the vehicle to rotate so the gimbal will simply take out any yaw shakes.Ā People agree?
I vote yes to that.Ā However,Ā once the next point is accepted a slow yaw would be advisable to ensure you don't stress the gimbal to compensate in the event the airframe is pointing aft at the last way point and is now yawing to the next ROI which may be ahead flight path.