Commit Graph

59 Commits

Author SHA1 Message Date
Randy Mackay
eca6ca2100 Copter: set update rate to 50hz during esc calibration
Also modified some comments in the code re the esc calibration
2013-02-01 11:16:19 +09:00
Randy Mackay
f4e1424bd1 ArduCopter: bug fix to ppm encoder failsafe
A new radio frame could arrive just as the frame time vs current time
check was being executed causing a false positive
2013-01-30 00:17:54 +09:00
rmackay9
bc4cd41a33 ArduCopter: added ERR dataflash message
Failsafe events changed to errors so they are more obvious.
Errors recorded to dataflash for failure to init compass and optical flow sensor.
Errors recorded for pwm failure.
Resolved a compile error when dataflash logging is disabled.
2012-12-30 12:08:25 +09:00
rmackay9
44773d1f2a 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).
2012-12-10 23:38:43 +09:00
rmackay9
8af9f6ed46 ArduCopter: add comments to tuning parameters.
Use RC_CHANNEL types as defined by RC_Channel library.
Remove unused definitions.
2012-12-09 16:44:42 +09:00
Andrew Tridgell
76e9adb8d4 ACM: make it possible to run CLI on radio port in ArduCopter 2012-11-21 21:41:34 +11:00
rmackay9
414f9b9759 ArduCopter, APM_RC: failsafe if PPM encoder fails to update for 2 seconds 2012-11-15 23:35:36 +09:00
Jason Short
a6bda80064 ACM: Allow for user defined roll and pitch input max 2012-11-11 18:00:10 -08:00
rmackay9
eb25b917ad ArduCopter: renamed system bitmap to ap_system to resolve desktop compile issues 2012-11-11 22:42:10 +09:00
rmackay9
41c0cee292 ArduCopter: failsafe improvements
resolves momentary throttle drop to zero before failsafe engages
resolves motor cut after 30seconds if flying in stabilize without GPS (now switches to ALT_HOLD with target altitude zero)
disables motors if throttle was zero before failsafe event
2012-11-11 22:11:12 +09:00
Jason Short
3e905ec750 Ap state updates 2012-11-09 22:15:15 -08:00
rmackay9
7fb58fce87 ArduCopter: replace Serial.print with Serial.print_P to save memory.
Includes replacing flight_mode_strings with print_flight_mode function.
SendDebug macro replaced with direct Serial.print_P calls.
2012-10-22 16:45:24 +09:00
rmackay9
04b50af6e1 ArduCopter: added message to console when entering ESC Calibration on startup 2012-10-09 12:31:05 +09:00
rmackay9
54d07f6d04 ArduCopter: removed INSTANT_PWM from ArduCopter and AP_Motors library 2012-09-13 21:31:13 +09:00
rmackay9
3e6966c33d ArduCopter: fixes to allow AP_Mount to work on APM1 with original default channels and fix to reenable support for 3-axis gimbals on APM2.
Channels 5 to 11 changed to RC_Channel_aux.
Removed channel 9 because APM_RC doesn't support it in any case.
Updated EEPROM format version to 119 because of the change to RC_Channel_aux and because k_param_rc_11 moved to be after k_param_rc_10.
2012-09-02 12:51:23 +09:00
uncrustify
c9953574ca uncrustify ArduCopter/radio.pde 2012-08-21 18:55:43 -07:00
Amilcar Lucas
049e232ef0 ArduCopter: Enable the aux servos later, only in the slow periodic loop
This might solve some of the boot issues some users are having
2012-08-11 12:58:13 +02:00
Jason Short
ab60681376 ACM: Radio.pde - toy mode updates 2012-08-09 17:00:11 -07:00
Amilcar Lucas
ff32fed176 ArduCopter: Use generic channel names for AP_Mount servos.
This simplifies mission planner, the same code can be used for plane and copter now.
2012-08-06 23:33:51 +02:00
Amilcar Lucas
fe4713b46e RC_Channel: Allow each channel to know who they are, this simplifies the enabling and output function calls. 2012-08-05 23:08:31 +02:00
Amilcar Lucas
f3f89004e9 More work on ch9, 10 and 11 2012-08-04 19:44:41 +02:00
Amilcar Lucas
431ed1c9b9 More flexible RC support 2012-08-04 18:39:20 +02:00
rmackay9
fed92cc979 ArduCopter: small bug fix to radio.pde to allow code to compile when MOUNT == DISABLED 2012-07-18 23:49:41 +09:00
rmackay9
f137f51ec0 ArduCopter: restored set_range calls for RC_Channels 5 ~ 8. 2012-07-15 16:37:40 +09:00
Amilcar Lucas
8e14ebbc10 Merge the changes from APM_Camera branch into ArduCopter
Conflicts:

	ArduCopter/Camera.pde
	ArduCopter/Parameters.pde
2012-07-11 00:39:13 +02:00
Jason Short
b8016dfe48 changed define to a param for throttle_min and throttle_max 2012-06-20 15:00:53 -07:00
Jason Short
477aa6e47a RC_Channel fix for throttle output.
throttle was outputting incorrectly and allowing the user to max out the throttle leaving nothing for attitude control
2012-05-31 14:59:03 -07:00
Jason Short
c523a9822b Failsafe: Looking for takeoff_complete now vs unreliable GPS 2012-05-29 11:25:04 -07:00
Jason Short
72758ff3ab Added note to functionality 2012-05-29 11:25:04 -07:00
rmackay9
1701cac0b1 ArduCopter - radio.pde - changed motor initialisation to set update rate, frame orientation, min and max throttle to AP_Motors class.
Note: perhaps the motors speed at least should be moved to a parameter within the motors class.
output_min function greatly simplified as this is handled by the AP_Motors class.
2012-04-04 23:00:56 +09:00
Randy Mackay
b4ee111c49 TradHeli - change throttle range back to 0~1000 (was temporarily changed to be 1250~850 which limited the range of the swash plate's vertical movements) 2012-02-20 00:27:12 +09:00
Jason Short
0517ed5199 updated throttle range 2012-02-18 21:11:06 -08:00
Jason Short
480be14eb0 Minimize the Yaw Deadzone 2012-02-10 22:32:55 -08:00
Jason Short
471bd12799 faster FS timer 2012-02-09 22:22:00 -08:00
Randy Mackay
000acac9f8 Arducopter - Tri - move yaw servo (channel7/motor7/CH_TRI_YAW) to mid point on startup 2012-01-28 10:13:58 +09:00
Pat Hickey
368e736a61 ArduCopter: Call motors_output_enable at correct spot during init 2012-01-22 12:03:11 -08:00
Jason Short
a213e05eb9 converted to cm
Signed-off-by: Jason Short <jasonshort@mac.com>
2012-01-21 22:14:08 -08:00
Jason Short
ed903c6cd3 Fixed type error 2012-01-10 23:43:44 -08:00
Jason Short
5d28e97339 Moved failsafe check to more logical place 2012-01-10 23:42:26 -08:00
Pat Hickey
38c2a052be ArduCopter radio.pde: translate CH_ to MOT_ outputs 2012-01-09 21:57:02 -08:00
Jason Short
57c3405658 Added check for armed motors in failsafe 2012-01-06 10:21:23 -08:00
Jason Short
d7f4328441 cosmetic 2012-01-04 09:28:36 -08:00
Jason Short
c4ad864ed0 Set Define for Max throttle 2011-12-29 23:02:02 -08:00
Jason Short
f487fd505b updated failsafe code 2011-11-26 16:39:28 -08:00
Pat Hickey
718f3dee00 APM_RC: OCR register init moved from ArduCopter/radio.pde to lib inits. 2011-11-25 20:00:18 -08:00
Pat Hickey
8dffdd18d4 purple: pass isr_registry to APM_RC.Init() 2011-11-25 20:00:16 -08:00
Jason Short
7f80649566 Added alternate alt hold,
New ESC Calibration Routine
2011-11-21 22:12:19 -08:00
Jason Short
bcfbdeb4d3 removed some unused code, made output min by default 2011-11-19 14:00:42 -08:00
unknown
4fcf11cf6e TradHeli - new parameter HSV_MAN to allow better set-up from APMissionPlanner. Also changed swash movement to use radio_out which fixes some setup bugs 2011-11-12 23:23:07 +09:00
unknown
c76e1097e3 TradHeli - changed deadzones for throttle to zero (and also reduced for yaw) 2011-11-06 17:37:59 +08:00