Hi, I'm hoping someone can help me.

I added the code per http://code.google.com/p/ardupilot/wiki/Test

 

then compiled and uploaded the code

#define DEBUG_SUBSYSTEM 6

 

I go to the console and type "test". I get many options when I type "help", but not IMU.

 

I try it in debug and fly modes, but I can't find a way to test the IMU.

Using HappyKillmore I see no data using the USB.

 

When I switch from manual to stabalize I get no movement of the servo's and the motor stops. I can switch back to manual OK.

 

How do I even know the IMU is working?

 

Thanks in advance.

 

Mick

 

Tags: IMU, test

Views: 61

Reply to This

Replies to This Discussion

I found this, and that seems to be what I'm looking for.

http://diydrones.com/profiles/blogs/ardupilot-mega-sensor-shield-1?...

Using the ADC test

http://api.ning.com/files/FL5xyEW2*pSAkfTcqUK6TLZ9SoBs*KljTIG9j2iD7CIRk04Gj1PR7rCiiWply0-HNRFbMAuAIdp*rEYxYOgYdIfzjvgmmcLH/APM_ADC.zip

_

 

Are you confusing the original ArduPilot board with APM? 

 

Which one do you have?

I have the latest Ardupilot Mega 2 with Sheild. I just bought it from DIYDrones, per the site with APM2.1 firmware.

http://diydrones.com/profiles/blogs/ardupilot-mega-home-page

The pin assignments on the orginal test code are different.

Does anyone know where I can find the current version of this code.

Or how I can test the Gyro positions?

Or what I might do to make this code or alternate code work?

Anything to test that the Sheild IMU chips are working I guess.

I read somewhere I can test with ArduPilotMega1.02 and Happy Killmore, but I get a compile error with 1.02.

That's what I thought. But in your post you linked to the manual for the wrong board, the old ArduPilot.

The APM manual is here: http://code.google.com/p/ardupilot-mega/wiki/home?tm=6

Do you know how you got to the wrong manual? Do we have a link wrong somewhere?

I was originally looking at the right manual.

I did a search for testing the IMU. That's how I found that link.
When I type test and ? I don't get the IMU or gyros option in the list.

http://code.google.com/p/ardupilot-mega/wiki/Test

 

This is what I get

Init ArduPilotMega 2.0

Free RAM: 2662
load_all took 2920us
using 2188 bytes of memory

Entering interactive setup mode...

If using the Arduino Serial Monitor, ensure Line Ending is set to Carriage Return.
Type 'help' to list commands, 'exit' to leave a submenu.
Visit the 'setup' menu for first-time configuration.

Move the slide switch and reset to FLY.

ArduPilotMega] test
Test Mode

test] ?
Commands:
  pwm
  radio
  failsafe
  battery
  relay
  waypoints
  xbee
  eedump
  modeswitch
  dipswitches
test]

ArduPilotMega1.02

That means you loaded the wrong code. You've loaded the Xplane ("HIL") simulation code, not the regular APM 2.x code. Go back into the Mission Planner and do it again. You will get the items shown below. 

 

All of your problems so far come from your confusion over what product you bought (among other things, you've chosen the wrong category for this post--it's not ArduPilot 2.7) and as a result not following the right manual. We've tried hard to make this as easy as possible, including having the APM home page and manual in the tabs above and in the DIY Drones store product listing. What more could we have done to have you find and follow the manual in the first place? Any suggestions very welcome!

 

Hi Chris,

Thanks, that's working now.

I think that to make it clearer it would be good to put some very simple instructions in with the Ardupilot when it's purchased. Just a one page printout with link and which options to select to upload would clear things up a lot.

Or when using the ground station to make the upload firmware options a little clearer (maybe say Flight Mode and SImulation Mode or X-plane Mode in the options text).

Sorry about my confusion. I thought that selecting the only available option with the MavLink (which I confused with MediaTek GPS ability) with HIL was the correct option.

Another thing I found confusing is that I uploaded the MavLink firmware and when I go in to GCS Mavlink in the GS it doesn't show the orientation in the controls. All instrument controls remain in default positions.

I also couldn't get any of the ground stations to respond to movements nor orientations.

I'm just using the USB connector.

Am I missing something here as well?

RSS

Social Networking

Contests

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.

A list of all T3 contests is here

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service