Testing a DIYDrones magnetometer in HK's GCS from Pete Hollands on Vimeo.
I test the DIY Drones magnetometer ( HMC5843 magnetometer breakout board ) using Happy Killmore's Ground Control Station connected using SERIAL_UDB_EXTRA telemetry format, to a UAV DevBoard V3 running
MatrixPilot (revision 729 of trunk).
photos:
picasaweb.google.com/peter.hollands/Twinstar2Build#5547623052830239122
UAVDevBoard / MatrixPilot:
code.google.com/p/gentlenav/wiki/Home?tm=6
HK GCS:
code.google.com/p/happykillmore-gcs/
DIY Drones Store:
store.diydrones.com/HMC5843_Triple_Axis_Magnetometer_p/br-hmc5843-01.htm
Self Calibrating Mathematics, and software to integrate via I2c written by William Premerlani:-
diydrones.com/profile/WilliamPremerlani
Source Code:
code.google.com/p/gentlenav/source/browse/trunk/libUDB/magneto_udb.c
Comments
Well,
I just tried running the same test again and I couldn't get the serial connection. I had to go into the Vista device manager and disable/enable the com port and that did the trick.
Hi pixhawk,
I was using COM port 9 on my Vista laptop and getting data on the debug console window.
I just tried it again and it's working. My only guess is I was doing the wrong sequence of operations?
It didn't work on my first three tries. If I figure out what went wrong, I'll post it. Anyway, here is a picture of the GCS running successfully on Vista......
Hi!
Do the Vista issues persist? In case yes, can you give me the COM port number you were trying to connect to? We're using it on XP, Vista and Win 7, so there should be no issue.
http://qgroundcontrol.org/users/start#communication_debug_console
And another question: Do you see any data in the debug console window when connecting the serial port? If you select the right serial port from the drop-down, you should see some kb/s indication and raw data.
@Bryan. Very Cool. That's super to see these GCS's being put to good use.
BTW: Bill gave some simple and good advice. When positioning the magnetometer, and checking for motor effects, it's best to have an ordinary old fashioned hand compass in hand.
@HK, I actually was not that sure about the units for vx,vy,vz so I went with meters / second. (that is what it should be as MAVlink is using standard SI units).
vx is meter / second East. vy is meters / second North. So you need the square root (vx ** 2 + vy **2) for ground speed in m/s . And a tan2(vx,vy) to get the angle in radians (not sure about parameter order there), before converting to degrees of the compass.
Pete,
I just ran qgrouncontrol on my desktop running XP and it worked. Mystery solved....
Here's a pic of Mag output deviation when a magnet was placed nearby.
Bryan
HK, I think you were looking for the magnetometer data ? It is part of the following message which you are already parsing ...(It's the third triplet after accelerometer and gyros).
mavlink_msg_raw_imu_send(MAVLINK_COMM_0, usec,
(int16_t) udb_yaccel.input,
(int16_t) - udb_xaccel.input, (int16_t) udb_zaccel.input,
(int16_t) ( udb_yrate.input + 32768 ),
(int16_t) - ( udb_xrate.input + 32768 ),
(int16_t) ( udb_zrate.input + 32768 ),
(int16_t) magFieldRaw[0], (int16_t) magFieldRaw[1], (int16_t) magFieldRaw[2]) ;
Pete
@HK, so the MAVLink messages for sensors are starting to come through. I don't think the X-Accel value is always correct. And the X gyro in the enclosed picture is definitely wrong (although usually it's correct). I enclose the corresponding QGroundConrol graph from the same session. Thanks.
You will not in the enclosed picture that HKGCS does not use the "Global Position" message that I'm sending from MatrixPilot. (No Lat, Long or Altitude). I expect you are using the GPS raw message for now ? Pete
@HK MAVLink messages (common messages) should be identical for ArduPilotMega, PixHawk or MatrixPilot. Anyway, I'll go give it a try.
Bryan, That's disappointing.
Looks like that version of QGroundControl ( 0.76 ?) has a problem on Vista then.
As it's Beta code, I'll check to see if anyone else is using Vista QGroundControl in their forum.
You might like to run up HappyKillmore's GCS and test to see if that is working on the same link with the same setup of MatrixPilot Mavlink. If you get anything working (namely the 3D EasyStar), then that proves the problem is definitely in the QGroundControl and Vista and that your version of MatrixPilot is working correctly.
-
1
-
2
-
3
of 3 Next