Commit Graph

5904 Commits

Author SHA1 Message Date
Andrew Tridgell ffc9dd9dde autotest: test apm2 rover build 2012-11-27 21:48:07 +11:00
Andrew Tridgell 318aafffe6 Rover: fixed cliSerial and clean out more gunk 2012-11-27 21:47:30 +11:00
Andrew Tridgell 29f978b8e5 AC_PID: suppress the derivative immediately after reset
use _last_derivative == NAN to flag that the derivative is invalid
2012-11-27 18:45:49 +11:00
Andrew Tridgell 86526e9a79 PID: use NAN to flag a D reset
this saves a byte per PID for a flag, and gives us a safe way to
reset_I() without causing a spike in D
2012-11-27 18:41:31 +11:00
Andrew Tridgell bbd6c5154e AC_PID: save 8 bytes per AC_PID object
we don't need the _derivative or _output variables
2012-11-27 18:06:22 +11:00
Andrew Tridgell b8d5a5904a AHRS: improved some more doc strings 2012-11-27 15:56:53 +11:00
Andrew Tridgell 48b37cac5a AHRS: improved docs for AHRS_GPS_USE
some people are setting this to zero to prevent jitter, which results
in their plane flying off into the distance and never coming back
2012-11-27 15:41:52 +11:00
Robert Lefebvre 4463150122 ACM: TradHeli
Bringing in Low Pass Filter for Rate Controllers
2012-11-26 21:51:23 -05:00
Andrew Tridgell b773529d09 cleanup: removed unused AP_PID library 2012-11-27 13:39:45 +11:00
Robert Lefebvre c78ecc4fd1 ACM: Creating Yaw_Look_Ahead yaw mode.
This function is not fully tested yet.
2012-11-26 21:37:13 -05:00
Andrew Tridgell c55e6d3e6a PID: don't reset _last_error on reset_I()
resetting _last_error when you have a non-zero D term causes the D
contribution to the next call to be massively amplified. This can
cause crazy behaviour on auto takeoff in ArduPlane if you have a
non-zero D term for the roll or picth controllers

Thanks to Chris Miser for providing the tlog that allowed this bug to
be found.
2012-11-27 13:35:09 +11:00
Robert Lefebvre 332b728ebf ACM: TradHeli
Bringing in Low Pas Filter
Commented out because it does not build.
Needs updates to Low Pass Filter Lib
2012-11-26 21:21:12 -05:00
Robert Lefebvre a4ae24de6c ACM: Begin creation of TradHeli rate control.
May affect Multi-Rotors.
2012-11-26 21:02:41 -05:00
Robert Lefebvre abd2a60036 AC_PID: Create Leaky Integrator Function. 2012-11-26 21:01:20 -05:00
Robert Lefebvre ca23a7ba76 ACM: TradHeli
Creating Stab_Collective Function to allow for different collective ranges between Stabilize and other modes.
This makes for a smoother collective action in Stabilize mode with manual throttle, while still allowing full collective travel in Acro and other modes.
2012-11-26 19:37:20 -05:00
Robert Lefebvre b29e85dc0a ACM: TradHeli
Move some TradHeli #defines into one place in APM_Config to clean up config.h and defines.h
2012-11-26 19:09:55 -05:00
Robert Lefebvre 069749e49c ACM: TradHeli
Prevent helis from arming while RSC control is switched on.
2012-11-26 19:03:28 -05:00
Robert Lefebvre 311d190494 ACM: TradHeli
Removing Angle Boost function.
Does not make sense for helis due to aerodynamics.  Can cause more problems than it solves.
2012-11-26 18:58:21 -05:00
Robert Lefebvre 6056d4fb7b ACM: TradHeli
Remove Rate I-term reset when throttle stick is on the bottom.  This could be very bad for helis since it's plausible to use full downstick while flying.
There is obviously a risk here of building up a false I-term on the ground but this isn't a good solution for that anyway.
Also removed what appears to be some deadwood.
2012-11-26 18:49:24 -05:00
Robert Lefebvre 31ea32dc9c ACM: TradHeli
Removing this "throttle" output restriction for TradHelis.
2012-11-26 18:44:03 -05:00
Andrew Tridgell 2446b986c5 Plane: added THR_PASS_STAB parameter
this allows direct passthru of throttle in STABILIZE and FBWA, which
is useful for nitro planes wher you have a throttle cut switch that
drops the throttle below normal minimum.
2012-11-26 23:33:05 +11:00
Andrew Tridgell d33d884f69 Plane: fixed secondary aileron and manual aux servos in failsafe
the servo value wasn't being written to APM_RC while in failsafe for
these aux channels
2012-11-26 23:32:57 +11:00
Michael Oborne e1659b62d2 AP remove debug include 2012-11-26 19:02:17 +08:00
Michael Oborne b2976c1114 AP: fix ap hil. 2012-11-26 18:53:51 +08:00
Michael Oborne 0b3e379f11 Mission Planner 1.2.22
fix speed modification scale
fix typo on antenna Tracker
setup for ThemeManager.cs
new auto hide menu
2012-11-25 21:50:49 +08:00
Andrew Tridgell ea39219532 Plane: don't do accel calibration in HIL mode
this should fix the hang on startup
2012-11-25 21:53:37 +11:00
Michael Oborne f549455465 Mission Planner 1.2.21
Antenna Tracker mod from William Bryan
Scaling mods
battery screen mods
failsafe screen pwm checking
remove reverse radio options when we are using a quad
config menu reorganise
add Ateryx stuff
2012-11-25 13:42:46 +08:00
Andrew Tridgell 4d603407bc autotest: run build_examples.sh in autotest 2012-11-24 21:12:05 +11:00
Andrew Tridgell d090d7d731 examples: mark some examples as unable to build
some are not worth fixing. Some can't build on 1280/2560
2012-11-24 21:09:55 +11:00
Andrew Tridgell ff916d3982 RC_Channel: fixed example build 2012-11-24 21:09:00 +11:00
Andrew Tridgell 5c48988ed9 Filter: fixed example build 2012-11-24 21:08:48 +11:00
Andrew Tridgell a3bd61cfb8 DigitalWriteFast: fixed example build 2012-11-24 21:08:36 +11:00
Andrew Tridgell 7761195f64 RangeFinder: fixed example build 2012-11-24 21:08:25 +11:00
Andrew Tridgell cbef768b69 AP_PID: fixed example build 2012-11-24 21:08:14 +11:00
Andrew Tridgell 18fbcdf9e6 AP_InertialSensor: fixed example build 2012-11-24 21:08:06 +11:00
Andrew Tridgell cb7979d5fd AP_GPS: fixed examples build 2012-11-24 21:07:53 +11:00
Andrew Tridgell 510d01b1c2 AP_Baro: fixed example build 2012-11-24 21:07:41 +11:00
Andrew Tridgell a83e22181f AC_PID: fixed example build 2012-11-24 21:07:34 +11:00
Andrew Tridgell e29eb42bcf scripts: added build_example.sh script
used to test the build of all our example code
2012-11-24 21:06:52 +11:00
Andrew Tridgell 901a5326a4 Copter: fixed build error
thanks to Marco for pointing this out
2012-11-24 20:39:35 +11:00
Andrew Tridgell 62edd146a3 Copter: added reboot in CLI and over MAVLink
useful for getting out of CLI
2012-11-24 18:20:37 +11:00
Andrew Tridgell e5e6131085 Plane: allow reboot on APM1, and add reboot to main CLI menu 2012-11-24 18:20:37 +11:00
John Arne Birkeland 3783d0b6de ArduPPM v2.3.12 ATMega32u2 (APM 2.x)
---------------------------------------------
- New improved fail-safe detection and handeling for single or multible signal loss and receiver malfuntion
- Improved LED status for APM 2.x
- Improved jitter performance (PPM output using nested interrupts)

-------------------------------------------------------------
ARDUPPM OPERATIONAL DESCRIPTION
-------------------------------------------------------------

APM 2.x LED STATUS:
-------------------
RX - OFF         = No input signal detected
RX - SLOW TOGGLE = Input signal OK
RX - FAST TOGGLE = Invalid input signal(s) detected
RX - ON          = Input signal(s) lost during flight and fail-safe activated
TX - OFF         = PPM output disabled
TX - FAST TOGGLE = PPM output enabled
TX - SLOW TOGGLE = PPM pass-trough mode

SERVO INPUT (PWM) MODE:
 -----------------------
- PPM output will not be enabled unless a input signal has been detected and verified
- Verified inputs are lost during operaton (lose servo wire or receiver malfunction):
  + The PPM output channel for the lost input will be set to the default fail-safe value
  + PPM throttle output (ch3) will be permanently set to fail-safe (900us)
- Lost channel signal is restored:
  + PPM output for the restored channel will be updated with the valid signal
  + PPM throttle output (ch3) will not be restored, and will continue to output fail-safe (900us)

PPM PASS-THROUGH MODE (signal pin 2&3 shorted):
-----------------------------------------------
- PPM output will not be enabled unless a input signal has been detected
- Active signal on input channel 1 has been detected:
  + Any input level changes will be passed directly to the PPM output (PPM pass-trough)
  + If no input level changes are detected withing 250ms:
    + PPM output is enabled and default fail-safe values for all eight channels transmitted
    + Input level change detected again, PPM fail-safe output is terminated and normal PPM pass-through operation is restored
2012-11-23 21:53:35 +01:00
John Arne Birkeland 6d7eb2a0db ArduPPM(experimental): bug fix
- Removed compiled firmware files to prevent acidentally spreading of experimental firmware.
2012-11-22 17:07:05 +01:00
John Arne Birkeland f5a3274590 Merge remote-tracking branch 'origin/master' 2012-11-22 16:54:19 +01:00
John Arne Birkeland 147fb8c17a ArduPPM(experimental): Active input channel detection during init 2012-11-22 16:54:04 +01:00
rmackay9 21d72bb49b AP_InertialSensor: increase acceptable Z accel offset to be 3.0 G
Note: Z offsets do tend to be larger than x and y offsets
2012-11-23 00:34:42 +09:00
John Arne Birkeland 6372e8591e Merge remote-tracking branch 'origin/master' 2012-11-22 14:25:27 +01:00
John Arne Birkeland 222c9cfca3 ArduPPM: Experimental PPM encoder to test possible fail-safe detection improvements. 2012-11-22 14:24:53 +01:00
Andrew Tridgell 386ef45fbb Copter: ported RSSI_PIN option from ArduPlane
this is useful for OSD users
2012-11-22 20:59:33 +11:00