droneprojetsn2 / ardupilot-mega

Automatically exported from code.google.com/p/ardupilot-mega
0 stars 0 forks source link

Verify sketch ArduCopter.pde in Arduino 1.0 fails with AP_Int16 #706

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.load ArduCopter.pde into Arduiuo 1.0
2.I am using Widows 7 64bit
3.I am very new to the ardopilot, just got my  ArduPilot Mega 2.0  and hope to 
build a quad Copter

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by brui...@gmail.com on 6 Aug 2012 at 6:55

GoogleCodeExporter commented 8 years ago
check you have your sketchbook set properly

Original comment by Meee...@gmail.com on 9 Aug 2012 at 11:11

GoogleCodeExporter commented 8 years ago
Two main reasons why this will happen - although you haven't shown the extent 
of the error, there should have been a lot more text than just "AP_INT16"...

Reason 1.  Incorrect Boardtype chosen in Tools -> Board - choose "ArduMega 2560 
or Mega ADK"
Reason 2.  Missing libraries

Fixes: If Using Arduino go through the proper process to import the project, or 
if this is the only Ardu project you are working with just copy the Arducopter 
libraries straight into your Arduino Library folder.

Other:  Make sure if you edit the APM_Config.h file to remove the // in front 
of the following line:
# define CONFIG_APM_HARDWARE APM_HARDWARE_APM2
Otherwise the code uploads as though the APM2.x is an APM1

Unless you are making any modifications to the Arducode it is always best to 
get Mission Planner to upload the latest firmware as it does all of this for 
you.  Judging by your saying you are very new to Ardupilot I would suggest 
already that you're not making code changes, so go Mission Planner and let us 
know how you go.

Original comment by leigh.gr...@gmail.com on 13 Aug 2012 at 4:04

GoogleCodeExporter commented 8 years ago
Many thanks, I am away just now, but will be back in two days. I have been
trying to find out why my ardupilot gps does not report its location even
though its light is on and its locked. So I have been reading everything
twice and more to see if I have missed something. I should have the motors
and everything ready in the next week. Thanks again.

Original comment by brui...@gmail.com on 13 Aug 2012 at 8:06

GoogleCodeExporter commented 8 years ago

Original comment by Meee...@gmail.com on 17 Aug 2012 at 6:35

GoogleCodeExporter commented 8 years ago
Hello again, I still cant connect to my ardpilot board with the MissionPlanner 
1.2.6 Mav 1.0 I have copied the Command prompt type info the scrolls when 
missionplanner operates.
this is the text:

INFO Program - ******************* Logging Configured *******************
INFO ArdupilotMega.Utilities.Speech - TTS: init, mono = False
INFO ArdupilotMega.Controls.HUD - Vendor: ATI Technologies Inc.
INFO ArdupilotMega.Controls.HUD - Version: 4.2.11733 Compatibility Profile Conte
xt
INFO ArdupilotMega.Controls.HUD - Device: AMD Radeon HD 6800 Series
INFO ArdupilotMega.MainV2 - Listening for client - 1 client at a time
INFO ArdupilotMega.MainV2 - New file Check: local 1.1.4611.37858 vs Remote 1.1.4
611.37858
HUD 1 hz drawtime 158 gl True
INFO ArdupilotMega.Controls.ProgressReporterDialogue - RunBackgroundOperation
INFO ArdupilotMega.Controls.ProgressReporterDialogue - Focus ctl
HUD 1 hz drawtime 3 gl True
INFO ArdupilotMega.Controls.ProgressReporterDialogue - DoWork
INFO ArdupilotMega.MAVLink - Open port with COM6 9600
INFO ArdupilotMega.MAVLink - 568 Start connect loop
INFO ArdupilotMega.MAVLink - MAVLINK: 1 wait time out btr 0 len 0
INFO ArdupilotMega.MAVLink - MAVLink readpacket read error: System.Exception: Ti
meout
   at ArdupilotMega.MAVLink.readPacket()
bps 0 loss 0 left 0 mem 37.4794921875
INFO ArdupilotMega.MAVLink - Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno
-1
INFO ArdupilotMega.MAVLink - MAVLINK: 1 wait time out btr 0 len 0
INFO ArdupilotMega.MAVLink - MAVLink readpacket read error: System.Exception: Ti
meout
   at ArdupilotMega.MAVLink.readPacket()
bps 0 loss 0 left 0 mem 37.5419921875
INFO ArdupilotMega.MAVLink - Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno
-1
,m-?INFO ArdupilotMega.MAVLink - MAVLINK: 3 wait time out btr 6 len 260
bps 0 loss 0 left 0 mem 37.7138671875
INFO ArdupilotMega.MAVLink - Mavlink Bad Packet (Len Fail) len 262 pkno 0
INFO ArdupilotMega.MAVLink - 446 Start connect loop
>rsINFO ArdupilotMega.MAVLink - MAVLINK: 2 wait time out btr 4 len 0
HUD 1 hz drawtime 4 gl True

Original comment by brui...@gmail.com on 17 Aug 2012 at 4:57

GoogleCodeExporter commented 8 years ago
Just thought this pictures of the failure to connect dialogue might help
in addition to the code I logged yesterday.
I am still cant connect to to the board despite it  having its code
uploaded, it uses the usb port 6 as well yet the Mavlink cant manage. Hope
you can help. If you need more let me know.

Original comment by brui...@gmail.com on 18 Aug 2012 at 6:12

GoogleCodeExporter commented 8 years ago
Well I had a look at a blog about Malink issues and then tried both my XP and 
Vista 32bit laptops and bingo both connect OK so its my 64bit Windows 7 machine 
or just the 64bit but dont know which. My remaining issue is now just the GPS, 
on the board its locked with is blue led on yet the the APM Planner says 'GPS: 
No GPS' and hence I cant get a location. I am happy that the GPS seems OK but 
odd that mission planner cant see it. What can be wrong, or what have I done 
wrong?
Every this else is OK.

Original comment by brui...@gmail.com on 21 Aug 2012 at 4:11

GoogleCodeExporter commented 8 years ago
Problem solved,just noticed that the GPS shield board was slightly tilted so 
that it connector to the AudPilot was at fault. Levelled it and GPS locks fine. 
Thanks for the inspiration to look more deeply.
Regards,
Peter  

Original comment by brui...@gmail.com on 21 Aug 2012 at 4:45