Search found 18 matches

by matt_prox
Tue Oct 06, 2015 10:29 pm
Forum: Getting Started - MultiWii config and setup
Topic: Bug in MW2.4 when using magnetometer on GY-88 IMU board
Replies: 3
Views: 2154

Re: Bug in MW2.4 when using magnetometer on GY-88 IMU board

Also, a quick google search shows that the HMC5883L magnetometer is connected to the i2c bus, not the aux connection on the MPU6050. So the line being included in MW2.4 is definitely a bug.

http://www.haoyuelectronics.com/Attachm ... 88.SCH.jpg
by matt_prox
Tue Oct 06, 2015 4:30 pm
Forum: Getting Started - MultiWii config and setup
Topic: Bug in MW2.4 when using magnetometer on GY-88 IMU board
Replies: 3
Views: 2154

Re: Bug in MW2.4 when using magnetometer on GY-88 IMU board

The board is definitely correct, and is configured correctly in config.h, and also in def.h (except for the error above). I've double- and triple-checked.
by matt_prox
Tue Oct 06, 2015 3:28 pm
Forum: Getting Started - MultiWii config and setup
Topic: Bug in MW2.4 when using magnetometer on GY-88 IMU board
Replies: 3
Views: 2154

Bug in MW2.4 when using magnetometer on GY-88 IMU board

Hi all, I recently upgraded my quad to use MW2.4. Initially my compass would not work (and consequently the navigation functions too), until I commented out the following line in def.h: #define MPU6050_I2C_AUX_MASTER // MAG connected to the AUX I2C bus of MPU6050 Apparently, the magnetometer is on t...
by matt_prox
Mon Oct 05, 2015 12:36 pm
Forum: Getting Started - MultiWii config and setup
Topic: [solved] Waypoint navigation using i2c GPS module?
Replies: 11
Views: 4425

Re: [solved] Waypoint navigation using i2c GPS module?

Ed, I don't think my mods would be particularly useful to others. They largely revolve around the custom radio module (which I am actually moving away from because it wreaks havoc on the cycle time). One exception to this (also in the alt-hold code you and I were discussing in my other thread) is in...
by matt_prox
Sun Oct 04, 2015 8:19 am
Forum: Getting Started - MultiWii config and setup
Topic: [solved] Waypoint navigation using i2c GPS module?
Replies: 11
Views: 4425

Re: Waypoint navigation using i2c GPS module?

OK. Following Ed's advice I upgraded to the new version of MW, and it seems to have solved the problem. Thanks Ed! I have made a lot of hacks to the code in 2.3, and I will need to begin implementing these in the new version (which will be tight, given that compiling MW2.4 gives me low memory warnin...
by matt_prox
Sat Oct 03, 2015 10:42 pm
Forum: Getting Started - MultiWii config and setup
Topic: [solved] Waypoint navigation using i2c GPS module?
Replies: 11
Views: 4425

Re: Waypoint navigation using i2c GPS module?

Here is my config.h file: m I have been hesitant to move over to the newer MW version, but maybe it's time. When I compile my code in Arduino, the results are as follows: Sketch uses 26,858 bytes (83%) of program storage space. Maximum is 32,256 bytes. Global variables use 1,342 bytes (65%) of dynam...
by matt_prox
Sat Oct 03, 2015 9:44 pm
Forum: Getting Started - MultiWii config and setup
Topic: [solved] Waypoint navigation using i2c GPS module?
Replies: 11
Views: 4425

Re: Waypoint navigation using i2c GPS module?

I'm afraid that didn't work for me. Mission planner is still disabled in EZgui.
by matt_prox
Sat Oct 03, 2015 9:39 pm
Forum: Getting Started - MultiWii config and setup
Topic: Multiwii SE V2 GPS hold problem?
Replies: 2
Views: 1634

Re: Multiwii SE V2 GPS hold problem?

To answer your second question, GPS Hold will maintain the new position. See the following lines from the config.h file (MW v2.3): /************************ AP FlightMode **********************************/ /* Temporarily Disables GPS_HOLD_MODE to be able to make it possible to adjust the Hold-posit...
by matt_prox
Sat Oct 03, 2015 8:48 pm
Forum: Getting Started - MultiWii config and setup
Topic: [solved] Waypoint navigation using i2c GPS module?
Replies: 11
Views: 4425

[solved] Waypoint navigation using i2c GPS module?

Hi all, I'm fairly new to multiwii and I have a question that may be quite silly. I have a promini-based setup (MW version 2.3), and I have recently added a GPS to my rig. I have a question about the i2c navigation modules, necessary with promini setups due to serial port constraints. I used EOSBand...
by matt_prox
Thu Oct 01, 2015 12:12 pm
Forum: Software development
Topic: How does Althold use the vertical accelerometer?
Replies: 11
Views: 6657

Re: How does Althold use the vertical accelerometer?

My radio modules are transmitting at 150Hz. The air data transfer rate is supposed to be 2mbps, and my data packets are only 16 bytes (8 channels, 2 bytes each) plus a few bytes in the acknowledgement packet. There will be some overhead with checksums, etc, but ultimately I think the majority of the...
by matt_prox
Wed Sep 30, 2015 11:02 pm
Forum: Software development
Topic: How does Althold use the vertical accelerometer?
Replies: 11
Views: 6657

Re: How does Althold use the vertical accelerometer?

Off the top of my head, I agree with you about neglecting the D-term complimentary filter. The (thisVal - lastVal)/time for the D term would probably be enough to stabilize the P and I terms so that higher P and I values can be used (the ultimate goal of the D term). Essentially, I am not suggesting...
by matt_prox
Wed Sep 30, 2015 10:36 pm
Forum: Software development
Topic: How does Althold use the vertical accelerometer?
Replies: 11
Views: 6657

Re: How does Althold use the vertical accelerometer?

You may well be correct there. I agree, it's late and I need to sleep too. Originally, I envisioned the algorithm should be as follows: - read baro, yields Altitude_baro (prone to noise) - apply double integral on the acc data, yields Altitude_acc (prone to drift due to cumulative errors from the in...
by matt_prox
Wed Sep 30, 2015 7:49 pm
Forum: Software development
Topic: How does Althold use the vertical accelerometer?
Replies: 11
Views: 6657

Re: How does Althold use the vertical accelerometer?

Thanks Ed, I see that in the original code there is an algorithm to correct for pitch/roll already, to work out the true vertical component of the acceleration. So I'll just copy that! I will definitely be testing the new complimentary filter method out but, as I said, I am not a coder so I will pro...
by matt_prox
Wed Sep 30, 2015 3:45 pm
Forum: Software development
Topic: How does Althold use the vertical accelerometer?
Replies: 11
Views: 6657

How does Althold use the vertical accelerometer?

Apologies if this is the wrong place to post this question. I am proficient in coding but by no means an expert. Looking at the code (in IMU.cpp, MW version 2.3), I see that the barometer is used with a simple low pass filter: alt.EstAlt = (alt.EstAlt * 6 + BaroAlt * 2) >> 3; // additional LPF to re...
by matt_prox
Wed Sep 02, 2015 9:45 am
Forum: Getting Started - MultiWii config and setup
Topic: Multiwii: Cannot seem to engage GPS Hold
Replies: 6
Views: 2394

Re: Multiwii: Cannot seem to engage GPS Hold

@JoacimW, I am using a ublox LEA-6 GPS unit, connected to the FC via an i2c module so the serial speed shouldn't matter, but just in case, it is communicating at 57600. The compass/accelerometer work fine because the drone flies great and mag lock works perfectly. @Kbev5709, in my original post, I s...
by matt_prox
Tue Sep 01, 2015 3:27 pm
Forum: Getting Started - MultiWii config and setup
Topic: Multiwii: Cannot seem to engage GPS Hold
Replies: 6
Views: 2394

Re: Multiwii: Cannot seem to engage GPS Hold

Well the 5 satellite was just a bare minimum. I've tried this morning with 7 sats, and more in the past, with no luck. Interestingly, I can get GPS Home to engage (or so my bluetooth GUI says - I can't check due to a damaged bullet connector on one of my motors). But not GPS Hold. I would assume tha...
by matt_prox
Tue Sep 01, 2015 2:19 pm
Forum: Getting Started - MultiWii config and setup
Topic: Multiwii: Cannot seem to engage GPS Hold
Replies: 6
Views: 2394

Multiwii: Cannot seem to engage GPS Hold

Hi all. I'm new(ish) to drones, and I'm trying to get GPS Hold working on my home-built multiwii drone. I'm running version 2.3 on an arduino nano, with a GPS receiver connected using an i2c module. I have the drone connected to my phone via bluetooth and using the EZ-GUI app. I can engage baro mode...