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

  • 3692181512?profile=originalAll seems well on HK, any where else I can check?
  • 3D Robotics
    @Carlos: yes, it sounds like the HK GCS is not connected. Check your port, baud rate, etc. We're seeing no issues on our side.
  • @ Chris

    Will do on the issue report.

    I have tested the GPS in the CLI and I can see that im locked onto 8 sats (plus can see the correct lights on the board), so I can see that it is working. Using Mission planner it will zone in onto my location, so can also tell its working.

    I have also noticed that using HK its not noticing the board moving around, i.e. none of the instruments are working, almost like its not connected.

    Any ideas?

     

     

  • 3D Robotics
    Omer, please file an issue report on the altitude data.
  • 3D Robotics
    Carlos: if you're not getting any GPS data out, that's probably because you're inside and don't have GPS lock. We've seen no problems with displaying GPS data with the latest HK GCS.

    Please file an issue report on the PID settings not being saved.
  • Sorry guys, I forgot to mention that only the Altitude values are changing and becoming negative after writing and reading the mission. Latitude and Longitude are ok.
  • I am having a similar problem but instead of waypoints being over written its the PID settings. Using Mission Planner sets the PIDs but when I reset the board it loses them and goes back to default. Changing them via CLI however does work and they seem to stick.

    I am also not getting any GPS data within HK, any ideas? the fields are simply blank.

    @ Chris, i'm sure you are very tired of hearing about all our problems so ill apologise now and thank you for all your hard work.

  • Has anyone encountered problems while writing the waypoints? My apm insists on changing the values which I have entered. The values usually becoming minus which are no way usable.
    In my configuration I connected serial3 with ftdi to a second computer. The baudrate setting is 57600. I could see the data stream well in the ground station. This problem is repeating on both Mission Planner, Happykillmore and Qground with their latest versions.
    Any comments?
    Usability Consulting India
  • @Chris,

    Regarding the XBee issue. CTS is an output from the XBee module, so the "pulldown" resistor is the XBee trying to drive it low. Shorting CTS to VCC is probably shorting the output driver of the XBee controller. The CTS signal is active low according to the Digi XBee Pro2.4 manual.

    If the Xstreams expect this to be high then it would be better to cut the trace on the XStream board or clip the pin on the XBee module than to force the XBee CTS output to somewhere it didn't want to be.

     

    You can also command the CTS pin to the DIO7 function instead of the CTS flow control function. Setting this use DIO7 as an input would let the pullup resistor do its job.

     

    This may be fixable by sending AT commands from the APM and GCS when they connect to the serial ports. I'll have a play this weekend and see what I see.

     

    The Digi 2.4 data sheet is at http://www.digi.com/products/wireless-wired-embedded-solutions/zigb...

     

    The AT commands for the CTS pin modes are on page 39

     

  • Thanks Chris,

    It's working for me now. I had the APM folder in a different directory and was directing Arduino to it there. As soon as I moved the APM folder to the desktop and directed Arduino there it worked !

This reply was deleted.