Commit Graph

2986 Commits

Author SHA1 Message Date
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
Andrew Tridgell af7e34fcc1 ADC: only read channels that are actually being used
on the APM2 we usually use none of the ADC channels, although we may
use the airspeed sensor. This change means we detect which channels
are being read, and only do the SPI transfers for those ones. That
saves us about 100usec per timer interrupt (ie. about 10% of our CPU)
2011-12-16 20:09:35 +11:00
Andrew Tridgell e1e9002fad only check for "enter 3 times" in first 20s after boot
we don't want stray bytes on serial3 to make us enter the CLI during
flight!
2011-12-16 20:09:32 +11:00
Andrew Tridgell 9e9b229a1d fixed formatting of ADC driver
it was a nasty mix of DOS and UNIX
2011-12-16 20:09:29 +11:00
Andrew Tridgell 5b4717ea55 timers: change to 1kHz timer by default
we were using a 227Hz timer, which is far too slow
2011-12-16 20:09:25 +11:00
Andrew Tridgell 6ad5df2958 desktop: fixed type of dword eeprom read 2011-12-16 20:09:18 +11:00
Andrew Tridgell 338fb1642a AP_Math: make out vector and matrix elements used types with fixed sizes
this prevents differences between CPU types
2011-12-16 20:09:11 +11:00
Jason Short 027b710816 renamed super simple, added framework for auto calc of throttle cruise 2011-12-15 20:51:41 -08:00
Jason Short 2b5c039eae turned off iterm for traverse 2011-12-15 20:51:41 -08:00
Jason Short b484fdab05 added some more throttle imax range
renamed Super Simple
2011-12-15 20:51:41 -08:00
Jason Short fa908795d9 renamed super simple 2011-12-15 20:51:41 -08:00
Jason Short 1d52c9f2f4 added SuperSimple and notes 2011-12-15 20:51:41 -08:00
Jason Short ddcfa90be0 testing updates 2011-12-15 20:51:41 -08:00
Jason Short c5859515e3 Added new tests 2011-12-15 20:51:41 -08:00
Jason Short acbfc14e49 Added Land control_mode 2011-12-15 20:51:41 -08:00
Jason Short 6a55fe18f6 added altitude to circle mission 2011-12-15 20:51:40 -08:00
Jason Short 4b52b61563 Allows user to specify just an altitude for Circle Mode 2011-12-15 20:51:40 -08:00
Jason Short 05e921f5d0 More power to descend 2011-12-15 20:51:40 -08:00
Michael Oborne f3bbe5e2a6 APM Planner 1.1.6
fix updater for recursive dirs
add network kml = google earth 3d display
remove ]]> from kml
swap geo ref from ms image parse to custom
2011-12-16 08:17:13 +08:00
Pat Hickey 291aaffdd9 APM_RC_APM2: Remove OutputCh from ::Init()
* These calls were off by one anyway, by using the channel numbers
  as ints ant not CH_n macros, and that caused an ESC cal problem.
2011-12-15 13:47:43 -08:00
Michael Oborne ae1c6ebde3 APM Planner 1.1.5
fix bat % overflow
fix tlog > kml for ac
modify georef image
2011-12-15 21:44:31 +08:00
Jason Short 958693ee5e Addition of nav mode that tries to maintain level 2011-12-14 22:08:42 -08:00
Jason Short b4aafcce05 dupe of landing logic for scripting 2011-12-14 22:08:41 -08:00
Jason Short 96ce429537 made the last step of landing stop navigating so we can drop straight down. 2011-12-14 22:08:41 -08:00
Jason Short 66c974a949 Added failsafe check 2011-12-14 22:08:41 -08:00
Jason Short c7da9c63f1 updated Loiter control to provide an alternative to GPS rate control for users with circling issues. Works in SIM, needs flight testing 2011-12-14 22:08:41 -08:00
Jason Short d5666f287c added loiter control to reset nav 2011-12-14 22:08:41 -08:00