Andrew Tridgell
2cb93f5a16
fixed a crash in HIL
...
The g_rc_function[RC_Channel_aux::k_flap_auto] ptr came out as NULL
during one HIL run on a desktop CPU, which led to ArduPlane
crashing. I am not yet sure if this can happen in real flight, but I
think the NULL check is worthwhile to be sure.
2011-10-09 22:09:00 +11:00
Andrew Tridgell
1195c4750e
fixed some ambiguous if/else combinations
...
gcc was complaining about the logic
2011-10-09 22:09:00 +11:00
Amilcar Lucas
6a5d6889b7
Only use radio_in values if the channel is not used as flight_mode_channel
2011-10-08 22:15:54 +02:00
Doug Weibel
dd8367eae4
Add auto flap functionality to FBW-B
2011-09-30 07:25:36 -06:00
Doug Weibel
8f2ae139a4
Fix missing capitalization
2011-09-30 07:25:35 -06:00
Doug Weibel
b6cd0ad9b8
Rework prev commit a bit cleaner as suggested by Janne Mäntyharju
2011-09-30 07:25:35 -06:00
Doug Weibel
aac8eac0cb
Add code to disable throttle if we are on the ground and in FBW_B or higher
...
Add code to disable throttle if we are on the ground and in FBW_B or higher. We believe we are on the ground if speed < 5 and alt < 5. Also check that we are not trying to perform a takeoff.
2011-09-30 07:25:35 -06:00
Doug Weibel
5767575a73
Correct bug in auto flap handling
2011-09-22 20:50:15 -06:00
Andrew Tridgell
de18df06b5
GCS: make the two GCS links gcs0 and gcs3
...
the artifical separation between 'gcs' and 'hil' just leads to
confusion. This also simplifies the code a bit more, and saves us a
bit more text
2011-09-19 11:04:02 +10:00
Amilcar Lucas
f7f745055d
Use the G_RC_AUX macro when possible. Added more comments. Remove unused code
2011-09-12 20:21:12 +02:00
Doug Weibel
1a8b74063a
Disable stick mixing if in failsafe
...
If trim values differ from failsafe channel values then stick mixing will adversely affect performance while in failsafe
2011-09-11 21:50:32 -06:00
Amilcar Lucas
b977007bdf
Moved a function from radio.pde to the RC_Channel_aux library. Now its more readable and reusable
2011-09-10 13:26:29 +02:00
Amilcar Lucas
9e80f2e920
This is the real HEAD of the APM_Camera branch. Seams that lots of changes got lost in the SVN to GIT port
2011-09-09 16:18:38 +02:00
Andrew Tridgell
a1b2cc7229
import APM_Camera branch from SVN
2011-09-09 11:45:13 +10:00
Andrew Tridgell
89fa70520f
imported ArduPlane from ArduPilotMega svn
2011-09-09 11:29:39 +10:00