mageshms / arducopter

Automatically exported from code.google.com/p/arducopter
0 stars 0 forks source link

Not defining AUTOMODE == no stable mode #71

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Comment out #define AUTOMODE in Arducopter.pde
2. Try switching on the stable mode
3.

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

With AUTOMODE undefined you would expect that stable mode can be switched on 
and off with a switch on your Tx. Instead you get only acrobatic mode. 

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

SVN r674, Arducopter, not ArducopterNG

Please provide any additional information below.

The reason is that FL_Mode variable is set to 0  (stable mode) only in one 
place which is under that #ifdef AUTOMODE. If AUTOMODE is not #define-d, there 
is no chance for it to become 0. Maybe adding something like
FL_Mode = 0;
immediately before
#ifdef AUTOMODE
will help. Switch position in this case will be taken care of by the line
if(ch_aux2 > 1800) FL_mode = 1;
which follows #ifdef AUTOMODE block.

Original issue reported on code.google.com by lyag...@gmail.com on 20 Oct 2010 at 10:04

GoogleCodeExporter commented 8 years ago

Original comment by rmackay...@gmail.com on 22 Oct 2010 at 11:31