All Posts (14054)
Sort by
- The code is now hosted in a proper code repository (Google Code) for version control and to allow others to contribute to the project. You can find it here.
- RTL (return to launch) and waypoint modes are user selectable
- Waypoints have altitude as well as lat/lon
- GPS parser now returned to ASCII NMEA, for compatibility with any GPS module, 1Hz or 5Hz. Very efficient code will allow it to run at any baud speed the module can support.
- PID loops used in all control functions
- Lots of bug fixes and error-trapping inserted
If you're trying to upload code with Arduino and you get an error message that looks something like this:
"Problem uploading code.....
avrdude: stk500_getsync(): not in sync: resp=0x78
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x78"
(or any other error report when uploading code, aside from the obvious ones like compile errors or choosing the wrong serial port)
Here are the most common causes and things to check.
- Did you check the "Set RTS on close" box in the Windows Com port, as instructed in the manual?
- Are you selecting the right board? For ArduPilotMega, if your board uses an ATMega1280 processor (the big chip on the APM board will say "ATmega1280") select "Arduino Mega (Atmega1280)". If you've got an ATMega2560 chip, select "Arduino Mega 2560". For the original ArduPilot and ArduIMU, choose "Arduino Duemilanove".
- Is the cable plugged into a USB hub? That can sometimes cause trouble. Try plugging it straight into your PC.
- Are you using the latest FTDI drivers? Install them if not. If you're still having trouble, try reinstalling them.
- Check your solder joints! It's a good idea to reheat and reflow all of the ones you did, just to be sure.
- Other errors that have caused this problem in the past include a power source (such as your ESC) that is putting out a voltage outside the acceptable range of 4-7v, faulty USB or FTDI cables, and corrupted FTDI drivers. When in doubt, try a different power source, a different cable or a different PC.
Additional things to check if you're using the original ArduPilot board (not ArduPilotMega):
- [For original ArduPilot board only] Is your FTDI cable plugged in the right way? The black wire or side marked "black" should be on ArduPilot's BLK pin.
- [For original ArduPilot board only] Are you using the DIYDrones or Adafruit FTDI cable? We've had trouble with other ones...
- [For original ArduPilot board only] Is the ArduPilot board powered on, ideally through your RC system or ESC? (You can NOT power it from the FTDI cable; this is a safety measure to avoid power conflicts.)
If those all look fine and you're still getting the error message (especially if you can successfully load code to other Arduino boards), you may have a corrupted FTDI driver or a bad FTDI cable. Try reinstalling on another PC and see if that does the trick. If it doesn't, you may need a replacement FTDI cable.
In some rare cases, a power glitch may have resulted in a corrupted ArduPilot bootloader on the ATMega chip. This tutorial will show you how to reload the bootloader. (Warning--for experts only and requires an AVR programmer. This should not be necessary for most people.)
Other problems can include "Serial port not found" (just check that you've selected the right serial port in the Tools menu. It's the one assigned when you first plugged in the FTDI cable--probably 5 or higher), and the Arduino IDE freezing (try unplugging the FTDI cable. If that doesn't work, just reboot your computer).
GeoCrawler 1 (Based on a LEGO Mindstorms autopilot)
GeoCrawler 2 (Based on a cellphone autopilot.)
GeoCrawler 3 (Based on a custom BASIC Stamp embedded processor autopilot)
GeoCrawler 4 (Predator airframe and AttoPilot autopilot)
GeoCrawler 4 (Predator airframe and AttoPilot autopilot)