3D Robotics

APM 2.0 beta released!

3689393223?profile=originalI'm delighted to announce the release of the first public beta of ArduPilot Mega 2.0. This is a significant upgrade to APM 1.02, and now delivers on full 2-way in-air communications, including real-time mission planning and autopilot control.

 

[UPDATE:Arduino-free code uploading added to features]

 

New features/changes include:

  • --Full support for the MAVlink protocol, which is now APM's default communications method.
  • --Auto-detection of GPS modules. No more requirement to tell APM what GPS module you're using--it will figure it out and configure the module appropriately!
  • 3689393150?profile=original--2-way telemetry.  Dozens of commands can now be sent from the Ground Station to the UAV while it's in the air. (see example from HK GCS at right)
  • --2-way Mission Planning. You can script and change missions in real time while the UAV is flying!
  • --Supports APM boards with the ATMega2560 chip, which has twice as much memory as the current board. The DIY Drones store will begin selling these new boards when the final version of APM 2.0 is released.
  • --Mission Planner now uploads firmware and checks for new versions online. No need for Arduino (unless you want it)!
  • --Magnetometer fully supported.
  • --Current sensor fully supported
  • --Support for the latest HK Ground Control Station and QGroundControl ground stations.
  • --Mission Planning and configuration can now be done wirelessly. No need to use USB if you don't want to.
  • --No more fiddling with a configuration file in Arduino! The software comes ready to go, right out of the box
  • --New command-line tests allow you to check failsafe operation, Xbees, radio inputs and more.
  • --New versions of HK GCS and the Mission Planner operate in MAVLink mode, allowing for wireless operation and compatibility with other MAVLink devices, including those running the Robot Operating System (ROS)

---------------------------------------------------------------------------------------------

Huge props to the whole development team: Doug Weibel (project leader), Michael Smith, Jason Short, James Goppert, Michael Oborne (mission planner), Paul Mather (GCS), Lorenz Meier (MAVLink integration), Randy Mackay, Ryan Beall, Darren Corley, Joe Holdsworth, and countless others who have contributed with flight testing and bug catching!

 

Remember that this is an initial beta release, so there may be bugs and undocumented bits. After the beta-testing period (usually about six weeks) we'll release APM 2.0 final version, and retire APM 1.02.

 

Loading the code automatically:

 

Just download the Mission Planner and select "Upload Firmware" from the Tools section of the menu. Make sure APM is plugged into your USB port and you've selected the right port from the Mission Planner menu. Click on "Update Check" and the program will search online for the latest version of the code and load it to APM.

 

If you want to do a simulation with Xplane, follow the instructions below. That will soon be a firmware option with the Mission Planner, too.

 

Loading manually (Optional)

[UPDATE: Ignore this section if you don't want to fiddle with the code. Arduino is no longer required to load the code!]

 

Download the zip file, unzip it to your desktop. You will have two folders inside your APM 2.0 folder, as shown:

 

3689393014?profile=original

Make sure you're using the latest Arduino (0022). Set your Arduino Sketchbook location to the APM 2.0 folder, as shown below. You must exit Arduino and restart it for this to take effect. Within Arduino, open up the ArduPilotMega.pde file within the ArduPilotMega folder, and that will open all the other files. Before you compile, don't forget to select the right board (Arduino Mega 1280 or Arduino Mega 2560)

 

3689393238?profile=original3689393027?profile=original

(Note: in the final version of APM 2.0, you will not have to use the Arduino IDE at all: the Mission Planner will load the firmware for you and check for more recent versions. The Arduino IDE will just be available in case you want to modify or inspect the code. UPDATE: this is now live)

--------------------------------------

 

Additional instructions:

--If you're doing flight simulation with Xplane, instructions for doing it with APM 2.0 are here.

--Make sure you're using the latest Mission Planner and HK GCS. In the Mission Planner, make sure you select APM 2.x modes (MAVLink), shown at right.

 

Known issues:

1) Mission Planner won't write waypoints on Port 0 in HIL mode. Instead, write the waypoints via your Xbee (port 3); remember to change the Mission Planner baud rate to 57k when using the Xbee port.
2) Uploading mission commands is still not fully documented. We'll get to that this week
3) There may be some issues with datalogs not recording. We're looking into it.

4) The manual still describes the 1.02 software. We'll change that to 2.0 during the beta test period, so by the time we release the final of 2.0 the manual is fully updated.

5) This has been mostly tested with 900 Mhz Xbee modules and the XstreamBee adapter, which work great. However, there is an issue with the 2.4 Ghz Xbee modules, which have a slightly different hardware configuration that conflicts with that adapter when sending data upstream. A short term workaround is to solder a jumper from the adapter's CTS to V+ pin. The next version of these adapter boards will include a more graceful fix.

 

If you find any bugs, please file a report in the Issue Tracker. The dev team will not be responding to bug reports filed in blog comments

E-mail me when people leave their comments –

You need to be a member of diydrones to add comments!

Join diydrones

Comments

  • Amazing! The power of teamwork! And of course you need some real smarts... Thank you all!!!
  • 3D Robotics

    binzi: sounds like you've got a soldering error on your board. The correct output should be like this (I'm moving the board while testing):

     


    test] imu
    Init Gyro**********Init Accel********** Hit Enter to exit.
    r: 12    p: -2     y: 1
    r: 13    p: -2     y: 1
    r: 15    p: -2     y: 3
    r: 18    p: -2     y: 5
    r: 21    p: -2     y: 6
    r: 22    p: -2     y: 7

    .....

    Does the test work on your board with the APM 1.02 code?

  • Wait a few dozen minutes,  display

    test] imu
    Init Gyro***********************************************************************************

     

    Why?
  • There is something I'm missing. I'm trying Chr() ChrW() and Convert.ToChar(). The most messed up part is Chr works for characters from 0 to 127. ChrW works for 127 to 159 (with 2 exceptions I think) and then Chr works again from 160 to 255... So how does that help? I have 2 characters that don't work no matter what.

     

    It's absurd.

  • Look at me, trying to tell you how to handle your own program... I'm sorry to be so presumptous (maybe a typeo but you get the point) In the real world we sometimes open mouth just before putting the foot in it on instinct.

    I love your work, so never mind the old gieser in the corner :)

  • if you gonna support it, can you maybe try to make it a menu selection... aka a language selection which lets it handle the input correctly based on that?
  • I would like to punch someone at Microsoft right now. I've found that if I change the regional settings to "Polish" and "Poland" (these are the generic decimal point = comma settings I use...I can actually create a situation where 1 <> 1 (or 1 != 1 for you C programmers out there)

     

    Here's something cool to try. In the immediate window of VB.NET... type copy and paste this:

    ?hex(asc(chr("&HDB")))

     

    You'll notice it returns "55"

     

    So I guess "&HDB" = "&H55" then? It's INSANE! There is no excuse for this crap! The stupid hoops MS requires jumping through just to make &HDB = &HDB!?!?!?

     

    So what's going on here is chr(&HDB) means convert the hex number DB into a character. Then that character is being converted back into a decimal number using the Asc() function and then back to hex via the Hex() function. So we should get &HDB = &HDB...but nope...

     

    So what's happening (at least with my GCS) is the checksums are failing all over the place depending upon your regional settings. More work for me....joy!

    
    VB.NET Shop
  • I have noticed that when more than a few data stream rates are turned on at 3Hz it does not upload waypoints correctly every time.

    when I turn all the stream rates off it seams to work every time.

     

  • After further review...

    Current SVN code has ArduCopterMega working normaly with all instruments but compass.

    ArdupilotMega though in both 2.0 and in SVN is having the same issue.

    Launch Planner version of 2.0 GCS on USB and both SVN APM and 2.0 APM come alive.

  • Developer
    APM2560 boards are essentially the same, they just needed some additions to the library to support them.
This reply was deleted.