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

  • I flew the Ardupilot mega with the IMU board and 2.0 software yesterday evening.  I am using the xbee 900s and tried out two GCSs:  GroundControl  and Ardu Pilot Mega Planner.

     I started out using the ArduPilotMega Planner because it seems more reliable in sending and receiving way points and PID data.  I adjusted  the altitude and a few PIDs so it would turn a little better. However It did not want to go to the way points I up loaded.

    I then switched to Q GroundControl  and there I could follow the  plane on the map and saw that it was wanting to circle the home position. Is this RTL ?

    Have a two position switch (position 0 or 5) on my controller and have position o = manual and position 5 set to Auto.  In setup mode  it shows positions 0-5 as :

    0=auto                                        

    1=RTL

    2=stabilize

    3=stabilize

     4=manual,

     5=manual.

    It says I have it set to auto but for some reason it is acting like RTL, maybe the radio values are too close and reads 1 instead of 0. I will try setting 1 to auto so it has a wider range of values in auto.

     

    My radio also has a knob that will allow me to set values 0-5. I just like using the switch because it is quicker to operate if the autopilot is not working.

     

    I’m really impressed with this system, Great  Job Guys

  • Happy, so far so good; although I am really disapointed at the disabling of actions altogether...

    Understood not all of them worked for several reasons; but that was the only way I've figured out how to restart missions (at any waypoint). (action navigate)

    unless someone can point how to do it otherwise? (selecting config, wp_index, can change the current wp, but it only loiters at that waypoint and doesnt continue to navigate)

  • 1.2.41 is available. It's not perfect by any means...but it's working to some extent.

     

    http://code.google.com/p/happykillmore-gcs/downloads/list

  • Developer

    Thank you HK for maintaining your great GCS, I know its a lot of hard work, I have the Remzibi_OSD working well, I sent my PC in for a checkup today, My firewall stops install of X-Plane and all comms to it also??

    I have a problem with the artificial horizon clearing row 12 Hex 0B, can you stop AH at row 11?

    Thanks, I hope it's not to much to ask..  

    I still can't see HDOP in CGS but I know its available as I see it in OSD, it works in HIL mode too, but I need to add some code in main loop to send X-Plane data to OSD.

    I got a USB Startup Key ($30) for X-Plane now I don't have to keep the CD in the drive all the time...

     

  • Right now, in the version I'm about to release, the parameter read/write is working. I've eliminated most of the stuff on the Control tab for the moment as most of it does not apply/does not work with APM (this was stuff from MAVlink 1,0). I am able to read missions without issue... I can edit them and everything looks fine, however, when I write them, everything's getting messed up. Once I get this figured out and verify that all 7 parameters are getting set correctly with Doug, I will post a new version. I also have the message streams figured out...so on connect, the desired messages will flow as expected.
  • Doug,

    I'm using both HK and Q (57,6 Kbit).
    Main problems I found in HK (HIL and regular flight):
    - no attitude data
    - read and write WP often fails
    - in "control", "set mode" doesn't work

    Thanks
  • Doug,

    I've seen the same thing as Luca.

    It happens with all three GCs when I'm running in HIL with a mission in progress. With the Xplane shut down there is no problem.

    With APM Planner it's on the USB port, running at 115.2 kbit/s.

    With HK and Q it's on the telemetry port, at 57.6 kbit/s. Planner throws exceptions when I try it on the telemetry port. HK either times out or gets the complete WP set (7 WPs). Q usually fails completely, but sometimes gets a few WPs. If I try long enough I'll get the complete set.

     

    I'm using separate computers for HIL and telemetry.

    HIL: XPSP3 E7400 Duo @ 2.something GHz, 4 GB RAM, so it should be able to handle the job.

    Telemetry: Vista, up to date, though I don't remember the SP number. Duo @ 1.5 GHz, 4 GB RAM. I'd be surprised if this one can't keep up too.

  • Connecting 3S Lipos's balance connector to the APM is very easy and looks much professional;

    3692183383?profile=original3692183263?profile=original 

  • Developer
    Luca, no that is not the CTS problem. With the CTS problem it would never work.

    Which GCS and baud rate are you using?
  • There are BIG bugs in the GCS. I'm working on them right now...please be patient.

This reply was deleted.