Pat Hickey
8b49208771
ArduCopter: some fixes
12 years ago
Pat Hickey
13c044ab3e
ArduCopter: fixes to radio.pde
12 years ago
Pat Hickey
7af03127f6
ArduCopter: more work
12 years ago
Pat Hickey
b90889dd11
ArduCopter: add ArduPlane's compat.h & compat.pde
12 years ago
Pat Hickey
70f4739522
ArduCopter: more fixes
12 years ago
Pat Hickey
4b84e99f85
remove dumb user hooks comments
12 years ago
Pat Hickey
901c692ee3
arducopter: type fix
12 years ago
Pat Hickey
f281d9265e
ArduCopter: reworked sonar analog source creation
12 years ago
Pat Hickey
d9e0bbbbab
ArduCopter: first pass at AP_HAL porting
...
* changed all the byte types to uint8_t
* fixed up much of the serial stuff
12 years ago
Pat Hickey
b7a7eceef8
ArduCopter: add nocore.inoflag and Arduino.h
12 years ago
Pat Hickey
ada10f6eb2
ArduCopter: change comment references to AP_Var to AP_Param
...
* jsut to clean up the grep for "AP_Var"
12 years ago
Pat Hickey
a4f1f6a5db
AP_Progmem: fix dependencies for all sketches touched by AP_HAL_AVR
12 years ago
Pat Hickey
3f1d9d7f69
AP_Param: #include <AP_Param.h> fixups for libraries & sketches
...
* I mostly went through with grep and added an #include <AP_Param.h> below
every #include <AP_Common.h>. Not all of these example sketches might
strictly need AP_Param.
12 years ago
Jason Short
0419dc8dfd
ACM: Simplified control mode code
12 years ago
Jason Short
19ae5c30eb
ACM : Formatting
12 years ago
rmackay9
52177c63f7
ArduCopter: only attempt to change settings of optical flow sensor if it has been successfully initialised
12 years ago
rmackay9
af77425636
ArduCopter: fix Failed to Init Optflow message at startup
12 years ago
rmackay9
2f748f8382
ArduCopter: renamed BATT_FAILSAFE to FS_BATT_ENABLE
12 years ago
rmackay9
d31efebd44
ArduCopter: rename throttle failsafe parameters.
...
Switch to LAND flight mode if throttle failsafe triggers and we do not have a GPS.
THR_FAILSAFE renamed to FS_THR_ENABLE.
THR_FS_VALUE renamed to FS_THR_VALUE.
THR_FS_ACTION removed (action is now controlled by setting FS_THR parameter).
12 years ago
rmackay9
2f1b2b70e6
ArduCopter: added ACRO_TRAINER parameter to allow enabling/disabling the acro training function which will bring the roll back to within +- 45 degrees
12 years ago
rmackay9
dadad8677e
ArduCopter: added descriptions for most parameters that did not have them
...
Renamed loiter_radius to circle_radius to better reflect it's purpose.
Removed some unused parameters including WP_MODE, WP_MUST_INDEX, LOG_LASTFILE, AXIS_P
12 years ago
rmackay9
f522ef078e
ArduCopter: remove unused functions do_target_yaw, do_loiter_at_location, get_altitude_error and clear_new_altitude
12 years ago
rmackay9
047f848cc7
ArduCopter: remove ThirdOrderCompFilter from list of includes
12 years ago
rmackay9
154e3c33f7
ArduCopter, AP_InertialNav: consolidated ThirdOrderComplementaryFilter into AP_InertialNav to save about 200bytes of RAM
12 years ago
rmackay9
cfe2507c0b
ArduCopter: reduce Rate Roll/Pitch P to 0.150 (was 0.175) and increase I to 0.1 (was 0.01)
12 years ago
rmackay9
56ceb230cb
ArduCopter: add YAW_OVR_BEHAVE to allow control of when autopilot takes back control of yaw after pilot overrides it during a mission
12 years ago
rmackay9
0f7bb79d89
ArduCopter: add comments to tuning parameters.
...
Use RC_CHANNEL types as defined by RC_Channel library.
Remove unused definitions.
12 years ago
rmackay9
9a05d3bd36
ArduCopter: add comments at the top of many navigation functions
12 years ago
rmackay9
8c2423f618
ArduCopter: code clean-up. Changed update_nav_wp to use a switch statement and relocated to navigation.pde
12 years ago
rmackay9
b36eb406d4
ArduCopter: allow alt hold to be engaged with alt < 1m because sometimes we get baro drift.
...
Also initialisation of target altitude is done in set_throttle_mode function.
12 years ago
rmackay9
b4e5176e2a
ArduCopter, AP_InertialSensor: restore mpu6k sample rate to 200hz but keep default filtering at 42hz.
12 years ago
Robert Lefebvre
aa4d4f8c24
ACM: Adding Pre-Compiler Define for Stabilize Throttle Mode.
12 years ago
Robert Lefebvre
0eb57bf93d
ACM: TradHeli
...
Fix to make update_throttle_cruise work with stab_throttle scaling.
12 years ago
Robert Lefebvre
1b97a92098
ACM: Code Cleanup
12 years ago
rmackay9
f98a807d36
ArduCopter: remove debug related to yaw mode used for alt hold
12 years ago
rmackay9
9dd978576b
ArduCopter: auto yaw changes to allow pilot override of yaw during missions
...
Added set_yaw_mode to better control of yaw controller changes and variable initialisation.
Replaced AUTO_YAW mode with separate yaw controllers YAW_LOOK_AT_NEXT_WP, YAW_LOOK_AT_LOCATION, YAW_LOOK_AT_HEADING.
Pilot manual override of yaw causes yaw to change to YAW_HOLD (i.e. manual yaw) until next waypoint is reached.
Added get_yaw_slew function to control how quickly autopilot turns copter
Changed YAW_LOOK_AHEAD to use GPS heading and moved to new get_look_ahead_yaw function in Attitude.pde
Renamed variables: target_bearing->wp_bearing, original_target_bearing->original_wp_bearing.
Removed auto_yaw_tracking and auto_yaw variables and update_auto_yaw function as they are no longer needed.
Simplified MAV_CMD_CONDITION_YAW handling (do_yaw). We lose ability to control direction of turn and ability to do long panorama shots but it now works between waypoints and save 20bytes.
12 years ago
rmackay9
85c8bdce15
ArduCopter: removed unused and out-of-date #defines from APM_Config.h
12 years ago
rmackay9
68ca123224
ArduCopter: remove some unused #defines
12 years ago
rmackay9
99b32a39c4
ArduCopter: InertialNav time constant CH6 tuning changed to only update enabled axis
12 years ago
rmackay9
cca9f9dbce
ArduCopter: do_set_servo fix to resolve -1 being assigned to uint8_t
12 years ago
rmackay9
3a90fc77f9
ArduCopter: add dataflash logging of camera events
12 years ago
rmackay9
d74cf54b5d
ArduCopter: allow triggering of camera from a mission
12 years ago
rmackay9
d3de77f74c
ArduCopter: fix do_set_servo so that it works again
12 years ago
rmackay9
653535b9a1
ArduCopter: added CH7 option to trigger camera
...
Restructured reading of channel 7 into a switch statement.
12 years ago
rmackay9
4ca27defb3
ArduCopter: update comments related to CH7 switch options
12 years ago
rmackay9
75401756f2
ArduCopter: maintain loiter control even below 1m while landing
12 years ago
rmackay9
2dd4694eef
ArduCopter: adjusted pid_throttle_accel dt to 0.01 (100hz)
12 years ago
rmackay9
269e02ee93
ArduCopter: bug fix - initialise inertial nav
12 years ago
rmackay9
8d682b9812
ArduCopter: disable INERTIAL_NAV_XY by default
12 years ago
rmackay9
39d524212f
ArduCopter: allow accel based throttle controller to be enabled/disabled with the new THR_ACC_ENABLE parameter.
...
When disabled the original velocity based throttle controller is used.
12 years ago