Commit Graph

2773 Commits

Author SHA1 Message Date
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
Jason Short 2a7f981fb0 added failsafe check,
enable loiter repositioning
2011-12-14 22:08:41 -08:00
Andrew Tridgell f4bd3cb5a2 AP_Math: added Polygon_complete() function
used to veryify user supplied boundaries
2011-12-15 14:42:34 +11:00
Andrew Tridgell cd9fb3c47a AP_Math: added a Polygon_outside() function
this tests if a point is outside of a polygon. This will be used as
part of our geo-fencing support, and also for a new 'fenced mode'
2011-12-15 14:34:58 +11:00
Doug Weibel 737447c8cf Change logging to default on for 2560 2011-12-13 20:53:44 -07:00
Doug Weibel a77f91fa4e Changes to logging file system to avoid problems with 0 and 1 page logs 2011-12-13 20:09:07 -07:00
Doug Weibel 2687f1c77d Changes to logging file system to avoid problems with 0 and 1 page logs 2011-12-13 20:09:07 -07:00
Michael Oborne be9a741c88 add method of detecting if motors are armed 2011-12-14 06:18:29 +08:00
Pat Hickey cac8e9c107 gitignore: ignore mavproxy log files 2011-12-13 11:24:05 -08:00
Randy Mackay d58e24b694 Merge remote-tracking branch 'origin/master' 2011-12-13 22:12:43 +09:00
Randy Mackay 68d1fa6ec7 Arducopter - Attitude.pde - fixed small bug in pitch stabilise 2011-12-13 22:10:51 +09:00
Michael Oborne df5e5b11b3 Planner remove some unused files 2011-12-13 20:56:38 +08:00
Michael Oborne e90e0836cb APM Planner 1.1.4
add plane location to planner
add more serial port detection for linux
modify tlog>kml to include times, + markers
add elevon setup to radio input
2011-12-13 20:52:54 +08:00
Andrew Tridgell aaa0214ded autotest: fgrate option has been removed from mavproxy 2011-12-13 21:34:53 +11:00