Commit Graph

3262 Commits

Author SHA1 Message Date
Andrew Tridgell 226470c614 APM: added RST_SWITCH_CH parameter
This is useful for switching back to the mode indicated by the control
switch after a failsafe or fence breach. I was just changing modes
each time, but it is far more elegant to have a spring loaded switch
for "I am ready to take control again", rather than continually
changing modes.
2011-12-19 11:25:59 +11:00
Michael Oborne 28d3582139 fw 2011-12-19 07:47:35 +08:00
Andrew Tridgell 63e77806cf autotest: make the Rascal a tail dragger again
good for testing wheeled takeoff
2011-12-18 18:57:20 +11:00
Andrew Tridgell 938bd8b58d autotest: added automated landing test for ArduPlane 2011-12-18 17:31:46 +11:00
Andrew Tridgell cbe1c583b3 autotest: updates ArduPlane parameters 2011-12-18 17:31:45 +11:00
Andrew Tridgell 54b8aab0ac Log: fixed logging dependence on compiler arg eval order 2011-12-18 17:31:45 +11:00
Randy Mackay a51e868766 AP_RangeFinder - change sonar example sketch to use default Sonar PIN for APM2 (A1) 2011-12-18 14:15:50 +09:00
Andrew Tridgell 7442ba31d8 polygon: improve the speed and precision of the polygon algorithm
now takes 156 usec per test, with a 11 point boundary
2011-12-18 12:59:50 +11:00
Andrew Tridgell 8a7d064842 APM: run mavlink loop while erasing logs 2011-12-18 10:19:52 +11:00
Andrew Tridgell 1807585b98 ACM: run mavlink loop while erasing logs 2011-12-18 10:19:41 +11:00
Andrew Tridgell ce035fc324 geofence: enable return to old control mode via FENCE_CHANNEL
if you disable fencing with the fence channel switch while still in
GUIDED mode to the return point, then reset the control mode back to
the transmitter control mode
2011-12-18 10:00:44 +11:00
Michael Oborne 04150823e2 APM Planner 1.1.9
mavlink update
firmware wait increased. for dataflash clearing
geofence now working
2011-12-18 06:50:40 +08:00
Michael Oborne f243944e01 Merge branch 'master' of https://code.google.com/p/ardupilot-mega 2011-12-17 20:43:04 +08:00
Michael Oborne 3848f2094e make file relax 2011-12-17 20:42:51 +08:00
Michael Oborne 6ea4923a08 firmware build 2011-12-17 19:34:36 +08:00
Michael Oborne e704ab28ee apm planner 1.1.8
fix large firmware issue
change apm2 detect
add tot = time over target
modify firmware screen
override jsbsim ports.
remove crossthread calls
2011-12-17 17:22:40 +08:00
Michael Oborne 3af7c5dbe9 fw file again 2011-12-17 17:01:57 +08:00
Michael Oborne 7f78e821f5 firmware build 2011-12-17 16:57:19 +08:00
Michael Oborne fd35ba5976 add relax 2011-12-17 16:53:14 +08:00
Michael Oborne 5505064812 fix firmware typo 2011-12-17 16:01:58 +08:00
Michael Oborne 06e781dc3c fix firmware no 2011-12-17 15:00:11 +08:00
Michael Oborne 03ea0e27f5 firmware build 2011-12-17 14:16:36 +08:00
Jason Short 35f0d31b9d Sync logging 2011-12-16 22:02:41 -08:00
Jason Short ed818e4ccf Cleanup
removed Iterm experiment - no noticeable effect in actual flight
2011-12-16 20:47:23 -08:00
Andrew Tridgell 0c8c707980 AP_Baro: fixed temperature on MS5611
this caused a 2x scaling of altitude
2011-12-17 14:58:58 +11:00
Michael Oborne 5e0ab4c28b cleanup firmware dir 2011-12-17 06:22:29 +08:00
Andrew Tridgell 3654c714e9 Revert "ADC: only read channels that are actually being used"
This reverts commit 95e6bb26f4772ca8c7faa62215de6f078d3df3c7.

ADC will be disabled on APM2
2011-12-17 07:29:09 +11:00
Andrew Tridgell c18ad75504 Revert "ADC: added an enable_channel() API"
This reverts commit dafeac01d8f14162600cf821404ba4072dcae14d.

ADC will be disabled on APM2
2011-12-17 07:29:09 +11:00
Andrew Tridgell f6a7ad9fa6 Revert "ADC: fixed HIL build"
This reverts commit 86c1a6a5fdd929516cf0f64f4d610cfcd4b4f774.

ADC will now be disabled on APM2
2011-12-17 07:29:09 +11:00
Andrew Tridgell 5d2301ef47 fixed airspeed sensor for ArduPlane on APM2
we were trying to use a non-existant ADC chip!
2011-12-17 07:29:09 +11:00
Andrew Tridgell 7c939e83e0 AnalogSource: return a float from read() method
this gives the full resolution when using the ADC backend. It also
adds scaling for the Arduino backend
2011-12-17 07:29:09 +11:00
Andrew Tridgell 4bbd5392ef removed AperiodicProcess code
this code was never being used, and was more complex than it was
worth.
2011-12-17 07:29:09 +11:00
Andrew Tridgell ed17f64459 geofence: added FENCE_TRIGGERED_PIN
this allows for a digital pin to be set high when the geofence
triggers. This pin can be connected to an external failsafe device
2011-12-17 07:29:08 +11:00
Michael Oborne eed0eea13b apm 1280 disables 2011-12-16 22:26:39 +08:00
Michael Oborne dc31d82f13 APM Planner 1.1.7
modify apvar dump detection
remove reference to CLI and LOG/Setup mode
add line feeds for logs/terminal
fix flow_enabled check on form load
2011-12-16 20:04:20 +08:00
Andrew Tridgell 04ec569313 ADC: fixed HIL build 2011-12-16 20:58:04 +11:00
Andrew Tridgell 658d1d2ba3 added missing mavlink headers 2011-12-16 20:53:26 +11:00
Andrew Tridgell 1ab2b416a3 geofence: store fence points as int32_t
this keeps maximum precision in fence boundaries
2011-12-16 20:11:51 +11:00
Andrew Tridgell b3327c64de geofence: added fence status reporting and faster altitude check 2011-12-16 20:11:51 +11:00
Andrew Tridgell 2e2b320560 mavlink: include latest geofence message changes 2011-12-16 20:11:51 +11:00
Andrew Tridgell a6e451c1b2 geofence: don't trim control surfaces on geo-fence breach
the user input is likely to be bad
2011-12-16 20:11:51 +11:00
Andrew Tridgell 1b64185b18 geofence: main geo-fence code
this implements the primary logic of geo-fencing
2011-12-16 20:11:51 +11:00
Andrew Tridgell 238c25c05e geofence: added geo-fencing control parameters 2011-12-16 20:11:51 +11:00
Andrew Tridgell 3ddfc6664a AP_Math: better polygon algorithm
this one seems to do better with single precision floating point
2011-12-16 20:11:51 +11:00
Andrew Tridgell 686f96414c MAVLink: update to latest mavlink XML
this includes the geo-fencing messages
2011-12-16 20:11:51 +11:00
Andrew Tridgell b8d75a6fd6 autotest: fixed prog name 2011-12-16 20:10:12 +11:00
Andrew Tridgell 5d308b0b89 autotest: fixed working directory in sample scripts 2011-12-16 20:10:07 +11:00
Andrew Tridgell 1455ff4a91 removed an unused variable 2011-12-16 20:09:49 +11:00
Andrew Tridgell c56e5735c2 ADC: added an enable_channel() API
enable_channel() must be used before the Ch6() method is called to
enable gathering of data on the required channels
2011-12-16 20:09:40 +11:00
Andrew Tridgell be1ba5354e timer: enable interrupts during timer processing
this prevents us losing serial bytes when we call sensor drivers that
take more than 100usec to read.

We also prevent timer recursion by re-enabling the timer after all
callbacks are complete
2011-12-16 20:09:38 +11:00