Code wont load

I have been trying all week- probably 20 hours so far to get the ardupilot code to load correctly. I have checked my driver installation countless times. emailed Mr Anderson several times, called FTDI and talked to customer service, had assistance form a CS grad all with no progress. I am extremely frustrated and am willing to pay if neccessary to get this !@#$%!! thing going.It appears as though the processor will not process any code because the very top line of code is "not declared in the scope" of the program. At one point we reordered some code and got the same error on the new line of code. This indicates to me that something really basic in the program is not being recognized.Any help would be greatly appreciated.ThanksRon Carter
E-mail me when people leave their comments –

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

Join diydrones

Comments

  • Thats right- thanks, I read that on the arduino instructions- and thats when I got it going.

    Thanks for the clarification on the use of the jumper and reset button.

    Ron
  • 3D Robotics
    Ron,

    Just a correction: you load the ArduPilot code with File/Sketchbook/Open and then select "ArduPilot_EasyStar [version].pde in the ArduPilot_EasyStar folder.

    As for the initialization, reset and jumper that's all covered in the manual. Basically the jumper is required the first time at the field each day to program the EM406 GPS into binary mode, set the home position and calibrate the sensors. After you've removed the jumper and the sensors are calinbrated, you hit the reset button to restart the autopilot (it will remember all the settings)
  • Thanks for all of your support. I was starting to freak out yesterday over this whole thing!! But finally it all loaded up correctly and I got it done. My problem is gross inexperience- Here are a few points I came across yesterday as I started over and followed all the online instructions I could find. Maybe this will help the next newbie like me to get going with less pain:

    1. I finally verified from FTDI that only four driver files should load, even though the driver folder has perhaps 10-12 files in it. You can see this in the device manager in "driver details" I had no way of knowing if my drivers had or had not loaded correctly.

    2. When loading files in the Arduino IDE work from the .exe file not the Run file

    3. Load files in the IDE through Sketch, Import library, Ardupilot. Not some other even less obvious method like I invented.

    4. Read everything until you understand it and take nothing for granted. - some of us insist on thinking we can do this the other way around.

    5. Keep checking polarity on the usb breakout board- I plugged this in and out probably 20 times and plugged it in wrong a time or two. My fault. Sorry Chris.


    So now the code is loaded- I tried to operate the autopilot with no joy. I may have had a weak battery- I have that handled.

    Questions-

    1. Is there a procedure for initializing the AP? or do you just power it up?

    2. Do I need to hit the reset button to initialize it? If not what exactly is the reset button doing? Does using it affect the code?

    3. Also I am confused about the "field setup" D6 jumper. what does it do and when, why or how, should I, could I, would I use it?

    Thanks everyone.
  • oh then better download arduino freshly and work from scratch it should work without dusturbing directory files please tell which version u r using..
  • 3D Robotics
    space_nut: that's not his problem. He can't get it to compile. It's a simple error with wrong directories. When he logs back in we'll show him what he's doing wrong.
  • Moderator
    Ya, I am in I.T but forget sometimes that I can make mistakes the same as the people I help.
  • 3D Robotics
    Yes, compile errors are always a result of putting files in the wrong directories. The manual should be clear on this, but we're happy to help here if people are still confused.
  • Moderator
    I rec'd the exact same error early on when I had failed to download the Ardupilot files into the correct directories.

    And here at work I curse people evryday for not RTFM!
  • 3D Robotics
    Ron,

    I asked you earlier to upload a screenshot of your IDE with the tabs loaded. Could you do that here please?
This reply was deleted.