APM code v1.0 - GPS_PROTOCOL problem

Hi all, i need help here.

i've just downloaded the APM code v1.0, and i've followed the tutorial to set up the Arduino IDE and load the APM code; i've uncommented the GPS_PROTOCOL line and i've set it up to GPS_PROTOCOL_NONE. Then i launch the Compiler and after a few seconds i have this error:

 

img1o.jpg

 

ArduPilotMega:95: error: 'AP_GPS_NONE' does not name a typeArduPilotMega.cpp: In function 'void medium_loop()':ArduPilotMega:583: error: expected primary-expression before '.' tokenArduPilotMega:618: error: expected primary-expression before '.' tokenArduPilotMega:618: error: expected primary-expression before '.' tokenArduPilotMega:618: error: expected primary-expression before 'long'ArduPilotMega:618: error: expected `)' before 'long'ArduPilotMega.cpp: In function 'void update_GPS()':ArduPilotMega:682: error: expected unqualified-id before '.' tokenArduPilotMega:685: error: expected primary-expression before '.' tokenArduPilotMega:685: error: expected primary-expression before '.' tokenArduPilotMega:695: error: expected primary-expression before '.' tokenArduPilotMega:722: error: expected primary-expression before '.' tokenArduPilotMega:723: error: expected primary-expression before '.' tokenArduPilotMega:728: error: expected primary-expression before '.' tokenArduPilotMega:731: error: expected primary-expression before '.' tokenArduPilotMega:732: error: expected primary-expression before '.' tokenArduPilotMega.cpp: In function 'void update_current_flight_mode()':ArduPilotMega:753: error: expected primary-expression before 'long'ArduPilotMega:753: error: expected `)' before 'long'ArduPilotMega.cpp: In function 'void calc_nav_roll()':Attitude:221: error: expected primary-expression before 'float'Attitude:221: error: expected `)' before 'float'ArduPilotMega.cpp: In function 'void Drift_correction()':DCM:186: error: expected primary-expression before '.' tokenArduPilotMega.cpp: In function 'void Accel_adjust()':DCM:214: error: expected primary-expression before '.' tokenDCM:215: error: expected primary-expression before '.' tokenArduPilotMega.cpp: In function 'void send_message(byte, long int)':GCS_Standard:130: error: expected primary-expression before '.' tokenGCS_Standard:134: error: expected primary-expression before '.' tokenGCS_Standard:142: error: expected primary-expression before '.' tokenArduPilotMega.cpp: In function 'void init_home()':commands:249: error: expected primary-expression before '.' tokencommands:249: error: expected primary-expression before '.' tokencommands_process:0: error: expected unqualified-id before '.' tokencommands_process:3: error: expected primary-expression before '.' tokencommands_process:4: error: expected primary-expression before '.' tokencommands_process:5: error: expected primary-expression before '.' tokencommands_process:10: error: expected primary-expression before '.' tokencommands_process:11: error: expected primary-expression before '.' tokenArduPilotMega.cpp: In function 'void verify_must()':commands_process:373: error: expected primary-expression before '.' tokencommands_process:379: error: expected primary-expression before '.' tokencommands_process:400: error: expected primary-expression before '.' tokenArduPilotMega.cpp: In function 'void navigate()':navigation:41: error: expected primary-expression before '.' tokennavigation:43: error: expected unqualified-id before '.' tokennavigation:51: error: expected primary-expression before '.' tokennavigation:52: error: expected unqualified-id before '.' tokenArduPilotMega.cpp: In function 'void calc_bearing_error()':navigation:146: error: expected primary-expression before '.' tokenArduPilotMega.cpp: In function 'void init_ardupilot()':system:131: error: expected unqualified-id before '.' tokenArduPilotMega.cpp: In function 'void update_GPS_light()':system:460: error: expected primary-expression before '.' tokensystem:466: error: expected primary-expression before '.' tokensystem:473: error: expected unqualified-id before '.' tokenArduPilotMega.cpp: In function 'int8_t test_gps(uint8_t, const Menu::arg*)':test:171: error: expected unqualified-id before '.' tokentest:173: error: expected primary-expression before '.' tokentest:175: error: expected primary-expression before 'float'test:175: error: expected `)' before 'float'test:177: error: expected primary-expression before 'float'test:177: error: expected `)' before 'float'test:178: error: expected primary-expression before '.' tokentest:178: error: expected primary-expression before '.' token

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

Join diydrones

Email me when people reply –

Replies

This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…