CNCBASHER / ardupilot-mega

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

Bug in todays (10/4/10) version 1160 or so in setup_flightmodes #173

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Enter CLI Setup , modes
2.  Set flight mode 2 on transmitter
3.  Change mode to AUTO

What is the expected output? What do you see instead?
Then when you go to FLY mode (real not sim?) , flight mode 2 is something other 
than AUTO

What version of the product are you using? On what operating system?
Latest as of 10/4/10 1160 or so

Please provide any additional information below.
The index for flight_modes in setup_flightmodes(setup.pde) needs to be 
"switchposition - 1" due to the difference between readSwitch being 1 through 6 
and flight_mode array being 0 through 5. If anyone uses the CLI to change mode 
setup from factory reset (like I tried), the array will be set wrong.

Original issue reported on code.google.com by whit...@gmail.com on 5 Oct 2010 at 4:44

GoogleCodeExporter commented 9 years ago

Original comment by DrZip...@gmail.com on 5 Oct 2010 at 7:02

GoogleCodeExporter commented 9 years ago
I made an update to the trunk. Please check it out and verify it functions 
properly. Control switch is now 0-5 instead of 1-6

Original comment by jasonshort on 5 Oct 2010 at 7:28

GoogleCodeExporter commented 9 years ago

Original comment by jasonshort on 5 Oct 2010 at 7:33