static mavlink_system_t mavlink_sys = { 20, MAV_COMP_ID_GIMBAL };
static uint8_t system_type = MAV_TYPE_GIMBAL;static uint8_t autopilot_type = MAV_AUTOPILOT_GENERIC;
static uint8_t system_mode = MAV_MODE_TEST_ARMED;static uint32_t custom_mode = 0; ///< Custom mode, can be defined by user/adopterstatic uint8_t system_state = MAV_STATE_ACTIVE;Could you reference the electronics and gimbal hardware to use with this branch? We're happy to help you with th full integration.
-Lorenz
Matas,
Great news that you’re resurrecting this fully open source gimbal (both software and hardware).
We should really rename the “MAVLink” gimbal driver to the “SoloGimbal” driver. Although this driver speaks MAVLink, the solo gimbal is quite different from most gimbals in that the attitude estimation runs on the flight controller so the mavlink messages contain very low level gimbal IMU data.
The SToRM32 gimbal driver is much closer to what I think a MAVLink driver should use so it makes sense that you’re having better luck with that one. We can also write you a new driver specific to the EvvGC-Plus if you like.
If you stick with the SToRM32 driver for now at least I think the gimbal will see heartbeats both from the GCS (normally sysid 255) and the flight controller (normally sysid 1) although it depends on the sys-id that the gimbal uses. I should mention that one oddity of the SToRM32 gimbal driver is that it uses a sys-id of 71 – we probably should have instead used the sys-id of the vehicle. The idea is that a gimbal is a part of a particular vehicle so it should share the same sys-id as the vehicle and have component id of 154 (search here for “MAV_COMP_ID_GIMBAL” http://mavlink.org/messages/common). This was not all decided at the time we wrote the SToRM32 gimbal driver though.
If you do consider changing the hardware you could also consider writing alternative (open source) software that runs on the SToRM32 gimbal hardware. OlliW is a friend of this group and this is by no means a challenge to the great work he’s done. I’m just suggesting that the SToRM32 hardware is a good starting point because it’s open, readily available and cheap. There are other successful examples of open source projects (including ardupilot and the px4 stack!) that share hardware but then both compete and cooperate on the software side. It’s your time and your choice though of course!
-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,
Yes, and we may have to change the SToRM32 setup instructions to ask users to change that sysid and component id – and maybe we should do that before the AC3.3 release (what do you think?). At the moment, the gimbal driver is hard-coded to look for the SToRM32 using the sysid/component-id defaults.. but it will lead to problems in the future if for example we had two copters both with SToRM32 gimbals on the same network. It’s currently an unlikely situation but this multivehicle setup I demo’d is an example of this:
If I’d had gimbals attached to two vehicles, both vehicle’s messages to their gimbals would have been acted upon by both gimbals.
-Randy
From: drones-...@googlegroups.com [mailto:drones-...@googlegroups.com] On Behalf Of Luis Vale Gonçalves
Sent: 26-Jun-15 11:05 AM
To: drones-...@googlegroups.com
Subject: Re: [drones-discuss] Re: EvvGC-PLUS gimbal software now supports MAVLink!
Matas,
Great news that you’re resurrecting this fully open source gimbal (both software and hardware).
We should really rename the “MAVLink” gimbal driver to the “SoloGimbal” driver. Although this driver speaks MAVLink, the solo gimbal is quite different from most gimbals in that the attitude estimation runs on the flight controller so the mavlink messages contain very low level gimbal IMU data.
The SToRM32 gimbal driver is much closer to what I think a MAVLink driver should use so it makes sense that you’re having better luck with that one. We can also write you a new driver specific to the EvvGC-Plus if you like.
If you stick with the SToRM32 driver for now at least I think the gimbal will see heartbeats both from the GCS (normally sysid 255) and the flight controller (normally sysid 1) although it depends on the sys-id that the gimbal uses. I should mention that one oddity of the SToRM32 gimbal driver is that it uses a sys-id of 71 – we probably should have instead used the sys-id of the vehicle. The idea is that a gimbal is a part of a particular vehicle so it should share the same sys-id as the vehicle and have component id of 154 (search here for “MAV_COMP_ID_GIMBAL” http://mavlink.org/messages/common). This was not all decided at the time we wrote the SToRM32 gimbal driver though.
If you do consider changing the hardware you could also consider writing alternative (open source) software that runs on the SToRM32 gimbal hardware. OlliW is a friend of this group and this is by no means a challenge to the great work he’s done. I’m just suggesting that the SToRM32 hardware is a good starting point because it’s open, readily available and cheap. There are other successful examples of open source projects (including ardupilot and the px4 stack!) that share hardware but then both compete and cooperate on the software side. It’s your time and your choice though of course!
-Randy