Commit Graph

80 Commits

Author SHA1 Message Date
Jason Short 520a535c21 Copter: TOY mode updates 2013-11-02 21:34:48 +09:00
Randy Mackay de08116320 Copter: disable some aux channels on hexa and octas
Resolves issue #324
2013-10-31 15:22:34 +09:00
Randy Mackay d86ac9041e Copter: report RC receiver health to GCS 2013-10-24 16:32:55 +09:00
Randy Mackay d2bbc06502 Copter: allow throttle deadband to be redefined in APM_Config.h 2013-10-13 20:41:11 +09:00
Randy Mackay 9435eb4a15 Copter: remove unused flags and consolidate ap and ap_system 2013-10-08 15:25:14 +09:00
Randy Mackay 7cc8a9038f Copter: move failsafe flags into structure 2013-09-26 19:37:15 +09:00
Randy Mackay 36bbed8fdd Copter: removed calls to set motor's max throttle 2013-09-12 22:28:38 +09:00
Andrew Tridgell 1b99ef5e4f Copter: added a delay in ESC calibration
this allows AP_Notify to run via the delay callback
2013-08-30 13:01:36 +10:00
Randy Mackay 52ef77393c Copter: integrate Toshiba_LED_PX4 2013-08-30 13:01:35 +10:00
Randy Mackay e985253f1a Copter: integrate notify 2013-08-30 13:01:35 +10:00
Randy Mackay 6969ab573d Copter: configurable max lean angle
ANGLE_MAX parameter allows limiting the roll and pitch angles during
manual and auto flight modes to anywhere from 10 to 80 degrees
2013-08-11 12:53:22 +09:00
Randy Mackay 2f4221391e Copter: set_dead_zone renamed to set_default_dead_zone
Dead zones now set as part of rc initialisation instead of only after
eeprom is erased.
Change in use of parameter means value passed in should be 1/2 what it
was previously
2013-07-12 11:44:23 +09:00
Andrew Tridgell 340c451caf Copter: fixed off-by-one in rcmapper
oops ...
2013-06-03 22:22:26 +10:00
Andrew Tridgell 725293b9c3 Copter: removed use of rc_ch[] global array 2013-06-03 16:23:48 +10:00
Randy Mackay 213eaa8db6 Copter: integrate draft RCMapper 2013-06-03 16:23:47 +10:00
Randy Mackay 9d0f40b432 Copter: add pre_arm_rc_check
Motors are not be enabled unless we have passed rc checks which include
checking the radio in calibration has been performed.
2013-05-16 16:32:00 +09:00
Randy Mackay 31e430948a Copter: use renamed RCInput valid_channels 2013-04-29 15:06:30 +09:00
Andrew Tridgell 300a8d2bbc Copter: support all 12 channels on PX4
last 4 channels are on the FMU pins
2013-04-25 20:10:53 +10:00
Randy Mackay b48864e1ad Copter: allow CH6 tuning of compass declination 2013-04-15 21:50:44 +09:00
Randy Mackay f9539384a1 Copter: rename failsafe to failsafe_radio
Makes way for separation of failsafes for throttle, gps and gcs
2013-03-16 17:14:21 +09:00
Randy Mackay 8af605cafc Copter: set update rate to 50hz during esc calibration
Also modified some comments in the code re the esc calibration
2013-01-25 11:34:48 +09:00
rmackay9 672fdfbf71 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.
2013-01-02 09:55:37 +11:00
Pat Hickey 13c044ab3e ArduCopter: fixes to radio.pde 2012-12-20 14:52:28 +11:00
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
2012-12-20 14:52:27 +11:00
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).
2012-12-10 23:38:43 +09:00
rmackay9 0f7bb79d89 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 bcae83c4f6 ACM: make it possible to run CLI on radio port in ArduCopter 2012-11-21 21:41:34 +11:00
rmackay9 73ed6c9dbf ArduCopter, APM_RC: failsafe if PPM encoder fails to update for 2 seconds 2012-11-15 23:35:36 +09:00
Jason Short 9735a0eff1 ACM: Allow for user defined roll and pitch input max 2012-11-11 18:00:10 -08:00
rmackay9 bcb9519fd7 ArduCopter: renamed system bitmap to ap_system to resolve desktop compile issues 2012-11-11 22:42:10 +09:00
rmackay9 e212744f4c 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 d2a5928c06 Ap state updates 2012-11-09 22:15:15 -08:00
rmackay9 78316adf75 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 b876733c0d ArduCopter: added message to console when entering ESC Calibration on startup 2012-10-09 12:31:05 +09:00
rmackay9 9e66b555cb ArduCopter: removed INSTANT_PWM from ArduCopter and AP_Motors library 2012-09-13 21:31:13 +09:00
rmackay9 c9d34c1737 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 a75d477071 uncrustify ArduCopter/radio.pde 2012-08-21 18:55:43 -07:00
Amilcar Lucas 780b469b11 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 e73c0250ad ACM: Radio.pde - toy mode updates 2012-08-09 17:00:11 -07:00
Amilcar Lucas d9f1140278 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 b8c7b8a786 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 9c1ac2d9e6 More work on ch9, 10 and 11 2012-08-04 19:44:41 +02:00
Amilcar Lucas bbc4bdb729 More flexible RC support 2012-08-04 18:39:20 +02:00
rmackay9 33d8cbfd51 ArduCopter: small bug fix to radio.pde to allow code to compile when MOUNT == DISABLED 2012-07-18 23:49:41 +09:00
rmackay9 761dad4e99 ArduCopter: restored set_range calls for RC_Channels 5 ~ 8. 2012-07-15 16:37:40 +09:00
Amilcar Lucas dfe0983e1e 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 efdf0a7fc8 changed define to a param for throttle_min and throttle_max 2012-06-20 15:00:53 -07:00
Jason Short c2d14a5cad 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 15774366ba Failsafe: Looking for takeoff_complete now vs unreliable GPS 2012-05-29 11:25:04 -07:00
Jason Short b8349f5486 Added note to functionality 2012-05-29 11:25:04 -07:00