Jaime,
Yes, I can imagine how that could be useful. I’m not sure if you’re talking about plane or copter but for copter most people are moving to brushless gimbals. With these types of gimbals the position of the camera is only known to the gimbal which has its own IMU.
The VR Gimbal is open source and they have plans to add support for Mavlink messages so cooperating with them might be a good idea. Alternatively you could try and get the info from a Martinez gimbal but I’m unsure what interfaces they support.
http://copter.ardupilot.com/wiki/common-vrgimbal/
-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/groups/opt_out.
--
I think regardless of the precision of the IMU on the gimbals, which is bound to get better with time, It should be possible to downlink the commanded camera position. Besides, I don’t really need to know exactly what the camera position is, I just want to get an idea of where it is during flight so that in mapping missions I get an idea of what I am covering. I think for a first approach this would be a start.
Like I said, I would just need some pointers on where to start, what would need to be changed, extended, and I can try to get this working.
Jaime Machuca MercadoCTO | Droidika | www.Droidika.com
<EmailSignatureDroidikaLogo.png>
Well, if you are using PWM to command the gimbal, you should have all the data you need on the RC output data?
On 19 February 2014 14:46, Jaime Machuca <ja...@droidika.com> wrote:
I think regardless of the precision of the IMU on the gimbals, which is bound to get better with time, It should be possible to downlink the commanded camera position. Besides, I don’t really need to know exactly what the camera position is, I just want to get an idea of where it is during flight so that in mapping missions I get an idea of what I am covering. I think for a first approach this would be a start.
Like I said, I would just need some pointers on where to start, what would need to be changed, extended, and I can try to get this working.
Jaime Machuca MercadoCTO | Droidika | www.Droidika.com
<EmailSignatureDroidikaLogo.png>
Jaime,
I think you should talk with Roberto, Emile Castelnuovo, and Matteo Murtas of the VR Gimbal team for the specifics of what they’re doing to add mavlink support to the gimbal.
Personally I’m not familiar enough with the gimbal code to give direction but I can imagine it will work something like this:
Pixhawk/AC connects to VR Gimbal using one of the available serial ports which allows 2-way MAVlink based communication (I don’t think it’s worth trying to accomplish this with an APM2 although you’re welcome to try)
Pixhawk/AC is connected to the ground station using 3dr radio (or similar).
When mavlink messages arrive from the ground station the Pixhawk/AC decodes them (this is happening now of course) and if it sees any messages that are meant for the gimbal then it just copies the message out to the serial port that’s connected to the gimbal. It could recognise the messages meant for the gimbal because they’ll be mavlink mount_configure, mount_control or mount_status messages….or maybe it’ll recognise them because the message has the MAV_COMP_ID_CAMERA (not sure). It would also need to parse messages coming in from the gimbal and copy them over to the serial port which sends to the ground station. I think that AC will already consume any mavlink messages shoved into any serial port so it’s probably just about ensuring that it recognises the messages from the gimbal and does the copy as mentioned.
Most of the general purpose mavlink message definitions are here: https://pixhawk.ethz.ch/mavlink/
You’ll find a list of all the ardupilot specific messages in the ../libraries/GCS_MAVLink/include/mavlink/v1.0/ardupilotmega directory.
The arducopter code responsible for sending/receiving mavlink messages is in the GCS_Mavlink.pde file.
Somewhat confusingly there’s also a GCS_MAVLink library which handles some of the non-frame-specific aspects of sending messages (i.e. buffering, etc).
-Randy