HobbyKing.com New Products Flash Sale
Reply
Thread Tools
This thread is privately moderated by pm1, who may elect to delete unwanted replies.
Old Oct 01, 2012, 06:59 PM
Registered User
Três Corações - MG - Brasil
Joined Oct 2008
5 Posts
Mag swap roll and yaw in 5883L

Quote:
Originally Posted by pm1 View Post
Check, if mag orientation is ok. check, if the copter in the gui follows exactly the direction of the copter!
Yes, it folow in left side of multiwii (compass) but on the right side (values of mag) the yaw and roll are swaped.

See video for better explanation
FC Crius SE Mag Error swaped yaw and roll (4 min 18 sec)



If I change the MAG_ORIENTATION in config.h nothing happens, continue the same.

If I change the MAG_ORIENTATION inside def.h the values are ok, but the right side on the gui show wrong compass.

My board is Crius SE 1.0 with 5883L mag.
I use #define Crius_SE in config.h

Search in web i found this http://www.diydrones.com/profiles/bl...o-diagnose-apm

Thanks for helping.
Ébeo is offline Find More Posts by Ébeo
Reply With Quote
Sign up now
to remove ads between posts
Old Oct 06, 2012, 10:50 PM
Registered User
San Marcos, CA
Joined Aug 2009
2,661 Posts
Will this work with any GPS - I have a few 1590R (locosys) laying around.

Does anyone has the PINOUT for the I2C Nav Board on the FTDI solder pads?

The only descriptions are GRN on the left side and BLK on the right side which doesn't really help.
flyandi is offline Find More Posts by flyandi
Reply With Quote
Old Oct 06, 2012, 10:53 PM
Registered User
San Marcos, CA
Joined Aug 2009
2,661 Posts
Uhhh .. I think I am using the wrong board?! I got the I2C-GPS NAV Module ...

http://www.rctimer.com/index.php?gOo...2&productname=
flyandi is offline Find More Posts by flyandi
Reply With Quote
Old Oct 07, 2012, 04:28 AM
pm1
Registered User
Germany, BY, Gestratz
Joined Oct 2008
244 Posts
Quote:
Originally Posted by flyandi View Post
Will this work with any GPS - I have a few 1590R (locosys) laying around.

Does anyone has the PINOUT for the I2C Nav Board on the FTDI solder pads?

The only descriptions are GRN on the left side and BLK on the right side which doesn't really help.
It should work with any gps with serial connection with 5v level. But for nice operation the gps should be capable to make more than 1 measurement/s.

pinout:
It is exactly the same as for most other multiwii boards:
DTR,RX,TX,5V,CTS,GND
pm1 is offline Find More Posts by pm1
Reply With Quote
Old Oct 07, 2012, 04:38 AM
pm1
Registered User
Germany, BY, Gestratz
Joined Oct 2008
244 Posts
Quote:
Originally Posted by Ébeo View Post
Yes, it folow in left side of multiwii (compass) but on the right side (values of mag) the yaw and roll are swaped.
For Multiwii orientation look here:
http://www.multiwii.com/faq#How_shou...xis_directions

Your board is a "new" SE. I don't know the intended orientation, but with the faq you can modify here in def.h until it works as intended:
#if defined(CRIUS_SE)
#define ITG3200
#define BMA180
#define HMC5883
#define BMP085
#define ACC_ORIENTATION(X, Y, Z) {accADC[ROLL] = -X; accADC[PITCH] = -Y; accADC[YAW] = Z;}
#define GYRO_ORIENTATION(X, Y, Z) {gyroADC[ROLL] = Y; gyroADC[PITCH] = -X; gyroADC[YAW] = -Z;}
#define MAG_ORIENTATION(X, Y, Z) {magADC[ROLL] = X; magADC[PITCH] = Y; magADC[YAW] = -Z;}
#endif
pm1 is offline Find More Posts by pm1
Reply With Quote
Old Oct 07, 2012, 11:54 AM
Registered User
San Marcos, CA
Joined Aug 2009
2,661 Posts
So I uploaded the firmware posted in post #1 to the I2C Nav Board .. activated GPS I2C and also made the patches to the code as described in post #1.

Check the screenshot for results. It seems that the MW Board is receiving erroneous values.. it's all over the place.

If I disconnect the GPS, everything is back to normal.

Here is what I did:

- in config.h of i2c-gps firmware I changed the format to NMEA and 115200 bauds - GPS works on that.

Anyone know would could be wrong? Also I uploaded the firmware using the ISP header - is there a difference between ISP and FTDI upload? I am using a USBasp programmer.

Is there a way I can see the communication between the GPS and the I2C Board to the MW Board?

Btw, I am using the Quadrino as the FC.

Sorry I just got started in this world but learning fast :-)
flyandi is offline Find More Posts by flyandi
Reply With Quote
Old Oct 08, 2012, 02:49 PM
pm1
Registered User
Germany, BY, Gestratz
Joined Oct 2008
244 Posts
Quote:
Originally Posted by flyandi View Post
So I uploaded the firmware posted in post #1 to the I2C Nav Board .. activated GPS I2C and also made the patches to the code as described in post #1.

Check the screenshot for results. It seems that the MW Board is receiving erroneous values.. it's all over the place.

If I disconnect the GPS, everything is back to normal.

Here is what I did:

- in config.h of i2c-gps firmware I changed the format to NMEA and 115200 bauds - GPS works on that.

Anyone know would could be wrong? Also I uploaded the firmware using the ISP header - is there a difference between ISP and FTDI upload? I am using a USBasp programmer.

Is there a way I can see the communication between the GPS and the I2C Board to the MW Board?

Btw, I am using the Quadrino as the FC.

Sorry I just got started in this world but learning fast :-)
1. Calibrate ACC
2. Firmware updates for Multiwii and nav board are done by FTDI, USBasp is only needed to flash a new boot loader.
3. How did you update the nav board?
4. At which connector on the FC did you connect the nav board?
pm1 is offline Find More Posts by pm1
Reply With Quote
Old Oct 08, 2012, 03:40 PM
Registered User
San Marcos, CA
Joined Aug 2009
2,661 Posts
1) ACC is calibrated. If I remove the GPS, I get perfect values.
2) I update the FC using the internal FTDI bridge of the Quadrino
3) I used the USBasp for uploading the firmware .. seems to work fine since I can put other code as well on it (e.g. blink example) :-) - I do not have a FTDI programmer here. I am using the same for my Nano boards.
4) Using the Quadrino I2C 3V Connector ...
flyandi is offline Find More Posts by flyandi
Reply With Quote
Old Oct 09, 2012, 02:32 AM
Registered User
San Marcos, CA
Joined Aug 2009
2,661 Posts
Ok here is a sample frame from the GPS:

Quote:
$GPGGA,072852.500,3306.0849,N,11711.4698,W,1,4,2.2 1,238.0,M,-35.0,M,,*61
$GPGLL,3306.0849,N,11711.4698,W,072852.500,A,A*43
$GPGSA,A,3,32,01,11,23,,,,,,,,,2.42,2.21,0.99*06
$GPGSV,4,1,13,32,79,005,29,31,51,043,,20,50,316,,5 1,50,162,35*7F
$GPGSV,4,2,13,01,43,238,34,30,36,129,21,23,33,287, 25,11,25,221,32*76
$GPGSV,4,3,13,16,18,155,19,14,08,072,,25,05,038,,1 3,05,268,*71
$GPGSV,4,4,13,22,04,129,*45
$GPRMC,072852.500,A,3306.0849,N,11711.4698,W,0.31, 123.73,091012,,,A*79
$GPVTG,123.73,T,,M,0.31,N,0.57,K,A*39
$PLSV,13,-8,0,35,30,4*0F
I sniffed the TTL traffic on the FTDI connector on the i2c-nav board and I got a connection to the GPS. Everything worked - even the LED recognized valid GPS signal, however the FC is still getting tons of i2c erros.
flyandi is offline Find More Posts by flyandi
Reply With Quote
Old Oct 09, 2012, 02:36 AM
Registered User
San Marcos, CA
Joined Aug 2009
2,661 Posts
Ah damit - those chinese .. sorry ... they mixed up the board and reversed the SLC/SLA lines on the i2c interface of the board. I just switched the lines and bum it works!

Thanks everyone :-)
flyandi is offline Find More Posts by flyandi
Reply With Quote
Old Oct 09, 2012, 02:47 AM
Registered User
San Marcos, CA
Joined Aug 2009
2,661 Posts
One thing .. firmware related: The LED brightness is really dim on the board. If I upload the Blink Example I get full brightness - so is that something that was set in the firmware? If yes, where do I find this?

Thanks,

Andy
flyandi is offline Find More Posts by flyandi
Reply With Quote
Old Oct 09, 2012, 02:38 PM
pm1
Registered User
Germany, BY, Gestratz
Joined Oct 2008
244 Posts
Quote:
Originally Posted by flyandi View Post
One thing .. firmware related: The LED brightness is really dim on the board. If I upload the Blink Example I get full brightness - so is that something that was set in the firmware? If yes, where do I find this?

Thanks,

Andy
Seems to be your board..., the LED on my board is not dim. The software does only switch it on for 150 ms, and then off again. No idea...
pm1 is offline Find More Posts by pm1
Reply With Quote
Old Oct 09, 2012, 02:43 PM
Registered User
San Marcos, CA
Joined Aug 2009
2,661 Posts
I wonder if there is not enough power for it. I am running the board on 3.3V - probably need to use the 5V I2C header.. but heck it works now - I got GPS hold - pretty awesome!
flyandi is offline Find More Posts by flyandi
Reply With Quote
Old Oct 13, 2012, 03:58 AM
FPV Pilot
Mulder_'s Avatar
Germany, NRW, K
Joined Jun 2010
270 Posts
i have the crius se, the crius i2c-serial bridge and the crius neo-06 all from rctimer. I followed the instructions in post 1 of this thread. I have the red LED blinking 100ms on, 1 second off so coms seem to work OK. only probem is that it stays like that, it will not get a 3d lock. i am testing this outside, should be no issues finding sats. any hints?
Mulder_ is offline Find More Posts by Mulder_
Reply With Quote
Old Oct 13, 2012, 03:38 PM
pm1
Registered User
Germany, BY, Gestratz
Joined Oct 2008
244 Posts
The blinking means, you get valid frames from the GPS. If you get no fix, try your GPS without i2c. Test it with your FTDI board with the ucenter software from the ublox web site. There you can see the reception quality...
pm1 is offline Find More Posts by pm1
Reply With Quote
Reply

Thread Tools

Similar Threads
Category Thread Thread Starter Forum Replies Last Post
Discussion CRIUS GPS with I2C little nellie Multirotor Electronics 64 Mar 29, 2014 04:19 AM
Discussion FC I2C-GPS NAV Module jy0933 Multirotor Electronics 7 Mar 28, 2014 06:46 PM
Discussion Crius NEO-6M Ublox GPS+Nano Mini Board+ Multiwii Control Board I2C GPS Kit godwisper Multirotor Electronics 5 Aug 25, 2012 04:03 AM
Discussion RC Timer GPS and I2C-NAV module for MWC Foam boy Multirotor Electronics 3 Jul 16, 2012 08:41 PM
Sold ArduPilotMega autopilot board, APM IMU Sensor Shield, I2C Magnetometer and GPS pilot006 Aircraft - Electric - Multirotor (FS/W) 3 Mar 13, 2012 05:07 PM