Code Uploading

Noob Question. I have the pre-soldered kit, I have unplugged ESCs, motors and receiver, plugged in usb, set up Arduino with Com port and correct board ATMEGA 1280. I have the Arducopter NG and Libraries file in the Arduino Folder and point Arduino to it. When I press upload this is what I get:core.a(main.cpp.o): In function `main':C:\Documents and Settings\Ken\My Documents\My Stuff\Helicopter\Arducopter\Arduino\arduino-0022\hardware\arduino\cores\arduino/main.cpp:7: undefined reference to `setup'C:\Documents and Settings\Ken\My Documents\My Stuff\Helicopter\Arducopter\Arduino\arduino-0022\hardware\arduino\cores\arduino/main.cpp:10: undefined reference to `loop'Any help would be much appreciated

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

Join diydrones

Email me when people reply –

Replies

  • Developer

    Sounds pretty ok except the cycling green, amber, red lights means that you likely have the CLI switch set to the back.  The CLI switch is the white switch at the back right of the board.  if it's switched backwards it means if you pull up the serial monitor on the arduino ide you will see a simple configuration menu.  if it's switched forward you should be able to connect using the configurator.

     

    when it comes to actually flying the quad, you will need to have that switch set forward.

     

    by the way - when you change the cli switch, you will need to reset (i.e. power on/off) the APM.  this will happen automatically if you reopen a serial port (i.e. open/close the Serial Monitor or connect/disconnect with the configurator).  You can also push the reset button called "SW1" near the front of the APM.

  • Distributor

    Hello Ken,

     

    I think I had the same issue when I placed the code in a folder, in a folder, in a folder.

    Have a look at this it may help you.

     

    Regards

     

    Martin

This reply was deleted.

Activity