ArduCopter Beta 2 release--GPS position hold, altitude hold and more!

ArduCopter Beta 2 release

 

After a long wait we are delighted to finally release our second official firmware for ArduCopter. This code is our intermediate code (code name NG) that is a step towards reconciling with the full ArduPilot Mega framework. The next version (codename ArduCopter Mega, ACM) will be fully compatible. As always, be careful when testing fully new software.

 

Our development group has been flying this software on many ArduCopters without any problems but still it does not mean that is won't have any bugs, there might be one just behind the corner. Tho we have been trying to nail them all down.

 

Thank you for whole ArduCopter/ArduPilot Mega teams for this great release.

 

Always check our latest release notes and test instructions from ArduCopter Wiki pages.

 

Main new features:

  • New architecture. This puts us on the path of integrating fully with the main ArduPilot Mega code, which brings compatibility with all the UAS tools (ground stations, mission planners, datalog analysis, and a full two-way flight command language) that are already in place with the fixed-wing UAVs. As a result of this back-end code migration, you should see full UAV features come to ArduCopter more quickly going forward and rotary-wing development keep pace with the fixed wing versions.
  • CLI (Command Line Interface) for easy and quick configuration: The ArduCopter Configurator still works fine but some of tests have been moved only to CLI. The CLI allows people with Macs and Linux to set up ArduCopter without having to run the Windows-only Configurator.
  • GPS position hold: This has been tested with MediaTEK GPS that comes along with ArduCopter kits. Expected hold will be around 3-5 meters from activation location. ArduCopter can still be manually flown with position hold on, but it will return to the hold position when you release the sticks.
  • Magnetometer support: The DIY Drones magnetometer is now in stock and fully supported.
  • Altitude hold: This barometer assisted altitude hold works while user has activated GPS position hold. It is possible to alter altitude even when position hold is on with throttle.
  • Easy X and + configuration: You can choose between either X or + flight modes by simply moving a DIP switch. (Note that the APM/IMU must be mounted in the + position, regardless of which mode you're flying in. This may change in future versions of the code, but for now it simplifies installation for most users.)
  • Helicopter code: preliminary and flyable code for more traditional helicopters. Code has been tested around world with some Trex450 style copters.
  • ESC calibrations for official ArduCopter ESC's

Here's a video of GPS position and altitude hold working:

 

 

Quick install notes:

--Download the code and unzip the ArduCopter RC2 folder to your desktop. It will include two folders: "ArduCopterNG" and "libraries"

- Move the libraries folder into your regular Arduino sketchfile folder, replacing the libraries that are already there. Delete all the old libraries folder and copy this one in instead.

- Open the ArduCopterNG.pde file in Arduino and check that the #defines in that file and ArduUser.h meet your requirements. Typically the only one you will need to check are magnetometer orientation (if you're using a magnetometer):

#define MAGORIENTATION  AP_COMPASS_COMPONENTS_UP_PINS_FORWARD       // This is default solution for ArduCopter
//#define MAGORIENTATION  AP_COMPASS_COMPONENTS_UP_PINS_BACK        // Alternative orientation for ArduCopter
//#define MAGORIENTATION  AP_COMPASS_COMPONENTS_DOWN_PINS_FORWARD    // If you have soldered Magneto to IMU shield as shown on the wiki

- Upload software to your ArduCopter electronics

- Run the CLI by changing position of SW2 switch and reboot your APM--towards the servo rails is CLI mode; towards the GPS connector is flight mode. Open the Arduino serial monitor, setting baud rate to 115200 baud and ensuring that "Carriage Returns" are enabled. You should see a command line on the monitor. CLI instructions are here.

- Run and all necessary settings like factory reset and IMU level calibrations along others your might need.

- Make normal flight preparation tests before connecting your propellers

- Fly safe....

 

Installation and latest information, please do check our ArduCopter and ArduPilot Mega wiki sites for more information.

 

ArduCopter NG, NG specific details and test procedures

ArduCopter Wiki, for all quad and heli based information and updates

ArduCopter Heli, especially for ArduCopter heli modifications. It is flyable and needs more beta testers.

ArduPilot Mega Wiki, for general electronics related information and also fixedwings

 

Last but not least, the release code: ArduCopter RC2

 

 

Views: 1966

Tags: 2, ArduCopter, Beta, Release

Comment by Steve Burton on December 21, 2010 at 9:02pm

The problem above was fixed by disconnecting the Magneometer, but any Ideas on the reason that cause the Arducopter not to connect to the Configurator?? Oh and by the way Fantastic Kit!!

Comment by Matt White on December 21, 2010 at 10:29pm
Still not sure why I can't get a better reading out of my mag... I've recalced the offsets several times, all with similar values in the end, and I just can't seem to stop getting around +-5 degrees of jitter. I've moved everything away from the mag (I have a 900mhz xbee, the GPS, and the PWM lines to my ESCs normally nearby), recalced again, and gotten basically the same result. Is there any reason to think that the "soldered to the oilpan" option is going to get more noise than usual due to the proximity to the oilpan? Probably just grasping at straws...

Developer
Comment by Randy on December 21, 2010 at 10:41pm
@Matt - +-5degrees isn't terrible.  It's not like an accelerometer or gyro where that would really cause problems.  Maybe you should just try flying it and see how the heading hold works.  you might find that when it flies you can't see the jitter at all.  I've never measured how much jitter i see, I'll check mine - it may be that +- 5deg of jitter is perfectly acceptable level of performance.

JDrones
Comment by Jani Hirvinen on December 21, 2010 at 11:04pm

DODY, yes your magnetometer looks correct on the picture, tho you could use 2-side tape to mount magneto. Zipties can cause some extra vibration for it. I also see that you invented another method to mount your ESC. Nice.

 

I can look to create video of making magnetometer offsets but it's fairly simple procedure, on CLI just type 'c' and after numbers starts to roll. Move/roll/pitch/yaw your quad on every direction untill those numbers are not changing anymore. Usually it takes about 30-60 seconds to rotate your quad enough.

 

Comment by DODY on December 22, 2010 at 4:20am

Hello Jani, here a video of Arducopter in flight, configuration tx in mode 1 and programs beta2, I control it similar with the version rc1, I do not see a difference
with the magnetometer.

Regard

dody


JDrones
Comment by Jani Hirvinen on December 22, 2010 at 10:28pm

For people who want to see how maggy offset calibration is done, i made a small video to show it along with proper #defines

 

Check it out : http://diydrones.com/forum/topics/video-arducopter-magnetometer 


 

Dody, yes mode 1 & mode 2 does not have any special difference in software. Only difference is your radio and how stick/channels are arranged on it.

Comment by Steve Burton on December 23, 2010 at 1:13pm

For clarity I drew this diagram of how I have the mag wired to the modified gps cable, (first two wires trimmed off), is the the correct way?? Please help me verify. I will be glad to contribute a good drawing for the documentation.  Thanks,Steve


Developer
Comment by Randy on December 24, 2010 at 2:05am

Steve,

     no, not quite right - actually I think it's all exactly backwards.

     so if you were to change the wires as they feed into the white connector...the order should be, from left to right, red, blue, green, yellow.

 

     but on the white connector, you are correctly leaving the two left-most positions empty.  this part is correct.

 

-Randy

Comment by Taylor Cox on December 24, 2010 at 2:44am
Also, if you had these wires wrong and powered up the mag, you may have damaged it by applying power and ground to the wrong pins. So once you get it wired up correctly, make sure everything checks out.
Comment by ramboky on December 24, 2010 at 3:26am
I did exactly the same thing - wired my magneto backwards and (unsurprisingly) I had issues connecting. Fortunately after rewiring it (and swearing at myself a bit) it worked perfectly.

Comment

You need to be a member of DIY Drones to add comments!

Join DIY Drones

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

Groups

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service