firstly, i have downloaded arduino 1.0.1 software

after, i download The official 2.6 release of ArduCopter software.

i click open and select .gitignore file and select tools- board arduino 2560 or mega ADK

after i click verify button and i get this error message

MAV_CMD_DO_SET_ROI' vwas not declared in this scope

ArduCopter.cpp: In member function 'void GCS_MAVLINK::handleMessage(mavlink_message_t*)':
ArduCopter.pde:-1: error: 'MAV_CMD_DO_SET_ROI' was not declared in this scope
ArduCopter.cpp: In function 'void process_now_command()':
ArduCopter.pde:-1: error: 'MAV_CMD_DO_SET_ROI' was not declared in this scope
ArduCopter.cpp: In function 'void init_rc_out()':
ArduCopter.pde:-1: error: 'class RC_Channel' has no member named 'set_range_out'
ArduCopter.cpp: In function 'void init_ardupilot()':
ArduCopter.pde:-1: error: 'GPS_ENGINE_AIRBORNE_1G' is not a member of 'GPS'

does anybody know this error? i took a screenshot about this error message.

how can i compile this original firmware?

best regards.. thank you.

Views: 223

Attachments:

Reply to This

Replies to This Discussion

* Close Arduino

* move folder "ArduCopter" to folder "Arduino"

* move folder "libraries" to folder "Arduino"

* Open Arduino

* File/Open "ArduCopter/ArduCopter.pde"

* Compile

* Smile

first of all.. very very thank you mike its working great. and really i smile :)

i have another question if you can help me, 

I couldn't find the main() function of the code. I wanna add a feature that the copter will go back home depending on an external command and/or reaching of a timeout value which will be decremented in a timer interrupt... Where should I put my codes to do this?

thank you again.

For the external command, you need to learn more. You do know "RTL", yes?

I know you are talking about an interrupt, but for the timeout, look at:

slone:ArduCopter mike$ grep -i "loop()" ArduCopter.pde
void loop() <--------- this is what you are thinking of for main(). Don't use this.
fast_loop(); 
medium_loop(); 
fifty_hz_loop();  
super_slow_loop(); 
static void fast_loop()       <--- this is very fast, I don't recommend using this.
static void medium_loop() <--- this is better. But you probably don't need something run every 1/10th of a second?
slow_loop();
static void fifty_hz_loop() <--- too fast also ... remember, anything you put to run a lot will affect your flight stability
static void slow_loop()           <--- too fast also... it is better to run something like this less often....
static void super_slow_loop() <--- this is a one second loop, runs at ~1Hz. This is probably a good place. 

thank you so much mike.

yes i know RTL. return to launch mode

but i dont know how can i select and activate this mode in program loop

if i add this line to counter "set_mode(RTL);"  can i activate RTL mode?

thank you again mike..

Yes, that will put you in RTL mode

thank you dear andreas, i will try this 

RSS

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service