Hi all,
I am a newbie to this UAV thing so I am on a steep learning curve, hence my questions.
I have an Ardupilot and an Arduimu set up in an aircraft and after lots of trial and error seem to have it working properly however I am puzzled by the behavior of the blue leds on the GPS, the Arduimu and the Ardupilot boards.
When I power up the setup all three leds are flashing, the Arduimu goes through its start up routine and settles down with the yellow led on and the blue one flashing as is the led on the Mediatech GPS. The blue led on the Ardupilot shield board goes solid blue at this time and stays on.
Eventually the GPS will get a lock and its blue led goes solid but the one on the Arduimu board continues to flash. If I re-start the Ardimu board it finishes up with both yellow and blue leds on solid. At this point the whole system appears to be working properly - control switch position 1, the controls only work with the transmitter sticks, control switch position 2, the controls work both with the transmitter sticks as well as moving while tilting the model nose up - nose down etc. and I think I would be happy to test fly it.
My question is does the behavior of the leds typical for this configuration? and what are the implications with regard to storing the home GPS point? When does it do this?
Tags:
Permalink Reply by Andrew Brygin on September 6, 2011 at 6:36am There is MTK firmware newer than 1.6? Could you please point where it is available?
Thanks,
Andrew
Permalink Reply by Evan Evans on September 7, 2011 at 7:14am Hi Andrew,
I went back to basics and used the files in the Arduimu 1.8.2 download and it compile OK and uploaded to the Arduimu board.
Everything seems to work fine except the Ardupilot board seems to be unhappy when I switch to Stabilize mode. I will have to check this out in more detail to post what actually seems to be happening.
Thank you for being patient with me.
Evan
Permalink Reply by Evan Evans on September 6, 2011 at 6:53am Sorry Andrew I was probably mistaken there just talking off the top of my head, very late here and past my bedtime. Probably got mixed up with Arduimu software versions.
Regards,
Evan

Permalink Reply by Andrew Brygin on October 6, 2011 at 1:49am To build IMU code with this fix, I have used MTK GPS class from ArduCopter libraries (http://arducopter.googlecode.com/svn/trunk/libraries/AP_GPS). What version of libraries do you use?
Thanks,
Andrew

Hi Andrew, thanks for replying. I'm using the libraries that came in Arduimu.zip, but I'll go get the arducopter ones now

Got the Arducopter libraries (from http://arducopter.googlecode.com/svn/trunk/libraries/AP_GPS) but I'm still getting the same error? BTW I copied the arduimu.pde and output.pde changes from the 'gps_fix.patch' of yours from a few posts back.
Permalink Reply by Andrew Brygin on October 6, 2011 at 6:45am I have downloaded the arduimu archive http://ardu-imu.googlecode.com/files/ArduIMU_1.8.2.zip
and verified that this change compiles fine. So, I am curious why it does not work in your case...
Just to verify, I use arduino-022 to build the arduimu project. What do you use?
Probably, this version of statement may work better:
if(GPS.new_data==1 && GPS::GPS_OK == GPS.status()) {
In any case you can try to substitute the GPS_Status enum's value directly, i.e.
GPS.status() == 2. Another idea is to refer it via AP_GPS_MTK::GPS_OK.
However, if you installed new libraries correctly, I do not see why it is not work...
Thanks,
Andrew

Putting this in: if(GPS.new_data==1 && GPS::GPS_OK == GPS.status()) { gives this error:
'GPS_OK' is not a member of 'GPS'
Yes using Arduino-022
Just busy downloading 1.8.2 again now...
Edit: The same error.
Re: the libraries, let me make sure I've got this right, I've downloaded everything from http://arducopter.googlecode.com/svn/trunk/libraries/AP_GPS and put them into the
"ArduIMU_1.8.2/libraries/AP_GPS" folder overwriting everything that was in there?
Permalink Reply by Andrew Brygin on October 6, 2011 at 7:30am No, you need to install libraries into location specified in 'scetchbook location' field of arduino's preferences. In mu case it is C:\Users\Andrew\Documents\Arduino.
Just take a look to preference dialog (File->Preferences)
Here is the guide: http://code.google.com/p/ardu-imu/wiki/Code
You just need to replace the library folder from arduimu archive with
library folder cloned from ArdyCopter repository.
Thanks,
Andrew

Just did everything from scratch, downloaded new ArduIMU v1.8.2, unzipped it and put 'arduimu' & 'libraries' into my 'sketchbook location' (C:\My Documents\Arduino\)
Re-downloaded everything from http://arducopter.googlecode.com/svn/trunk/libraries/AP_GPS into C:\My Documents\Arduino\libraries\AP_GPS.
Double click 'C:\My Documents\Arduino\arduimu\arduimu.pde', change
#define GPS_PROTOCOL to 4 for Mediatek and:
if(GPS.new_data==1) { to if(GPS.new_data==1 && GPS.GPS_OK == GPS.status()) {
Compile, still I get the error, can't understand it...
Permalink Reply by Evan Evans on October 6, 2011 at 7:26am Hi Graham,
A peculiarity have noticed is that when you open the Arduino sketchbook only Arduimu shows up. In my Arduino directory in C:\ documents etc. I have a number of Arduimu directories, Arduimu_1_7 etc but only the one which is plain Arduimu shows up. I needed to rename the directories so that the one I wished to use was named appropriately ie just Arduimu.
Hope this helps,
Evan
Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.203 members
24 members
207 members
58 members
1355 members
© 2013 Created by Chris Anderson.
Powered by
