Commit Graph

124 Commits

Author SHA1 Message Date
Randy Mackay 47c1cb8b99 Copter: log parachute events 2014-04-07 13:36:59 +09:00
Randy Mackay 56768a8d61 Copter: add min alt check to parachute release 2014-04-07 13:36:50 +09:00
Randy Mackay 340f3a7f9d Copter: ch7/ch8 parachute release 2014-04-07 13:36:47 +09:00
Randy Mackay fa96e9355b Copter: init cmd before saving with Ch7/Ch8 2014-03-19 12:11:21 +09:00
Randy Mackay c3162f67e8 Copter: integrate move of p1 from Location to mission cmd 2014-03-19 12:10:48 +09:00
Randy Mackay 43c7310540 Copter: ch7 save wp feature to use ap_mission 2014-03-19 12:10:08 +09:00
Andrew Tridgell a112694a50 Copter: added AUX switch option for enable/disable EKF 2014-02-15 05:48:17 +11:00
Randy Mackay aec67cd3df Copter: integrate control_autotune 2014-02-15 05:27:44 +11:00
Randy Mackay d90d3d8dca Copter: integrate control_flip 2014-02-15 05:27:44 +11:00
Randy Mackay bca309eb1e Copter: replace takeoff_complete with landed_complete 2014-02-15 05:27:43 +11:00
Randy Mackay 8e40cbdd7f Copter: disable ch7/8 feature to point at armed yaw 2014-02-15 05:27:37 +11:00
Andrew Chapman b7eab7ea22 Copter: Added GCS feedback for save_trim()
Trim save gives no feedback, so I've added a gcs_send_text() call to
print "Trim saved" so the user knows to re-center trims again
2014-01-16 14:23:19 +09:00
ctech4285 2b5d8aa5b7 Copter: integrate EPM library 2013-12-17 15:36:42 +09:00
Randy Mackay 59cea4b88c Copter: remove CopterLED from main code 2013-11-30 18:20:55 +09:00
Jason Short 2a82d1b0b0 Copter: CH7 SaveWP fix corner case
If the user is on the ground and flips CH7, do nothing instead of recording a bad takeoff altitude. Do another check to avoid a land right after a takeoff.
2013-11-02 21:34:55 +09:00
Randy Mackay 798c4e2278 Copter: more Ch7/Ch8 event logging
Additional event logging for SaveWP, Fence, Acro trainer, Save Trim
2013-11-01 11:53:16 +09:00
Randy Mackay babc54ec60 Copter: default Ch7 to DO_NOTHING
Ch7/Ch8 Save_WP feature triggers when switch is brought high (instead of
low) to be consistent with other aux features
2013-11-01 11:42:33 +09:00
Randy Mackay fb49cd82c1 Copter: add LAND to aux switch
Fix aux switch AUTO and RTL so they resets flight mode if still in those
modes when switch brought low
2013-10-22 13:13:36 +09:00
Randy Mackay 6c0cb5f84d AutoTune: bug fix and GCS messages 2013-10-19 21:54:18 +09:00
Randy Mackay 0cbedded0d Copter: autotune to use 2pos switch only
method of recording state also changed
other code clean-up
pair programmed withe Leonard
2013-10-18 13:57:50 +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 0c0de7c53e Copter: simple mode speedup
super simple and simple mode headings separated
g.super_simple converted into a bitmap by flight mode switch position
2013-10-05 18:26:56 +09:00
Randy Mackay ba92c4891a Copter: make AutoTune a compile-time option 2013-10-04 15:50:50 +09:00
Randy Mackay 31cea0140d Copter: Leonard's AutoTuning for Roll and Pitch 2013-10-04 15:50:47 +09:00
Randy Mackay 5cac1b3c92 Copter: ignore aux switch during radio failsafe 2013-09-26 20:19:39 +09:00
Randy Mackay 6b97994dcd Copter: ignore switch changes during transitions in or out of radio failsafe 2013-09-26 19:37:22 +09:00
Randy Mackay 7cc8a9038f Copter: move failsafe flags into structure 2013-09-26 19:37:15 +09:00
Randy Mackay a68966e077 Copter: integrate sprayer pump test 2013-09-11 17:05:25 +09: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 fd047cc968 Copter: AUTO ch7/ch8 option 2013-08-19 18:09:23 +09:00
Randy Mackay 69da4e99f8 Copter: add ch7/ch8 Auto and Land option
CH7/CH8 high initiates AUTO mode, low initiates Land.  Ideally high
would be a new take-off flight mode so this may need some rework.
2013-08-15 16:08:33 +09:00
Randy Mackay e1fe4946fb Copter: Sprayer enable added to CH7/CH8 switch 2013-08-05 21:12:29 +09:00
Randy Mackay 786d6824ae Copter: Acro Trainer added to Ch7/Ch8 switch 2013-08-05 21:04:55 +09:00
Randy Mackay c30cfa21c5 Copter: resolve compiler warning re unused variable 2013-07-29 16:46:25 +09:00
Randy Mackay 2c48c20088 Copter: generalize 3 pos switch for all ch7/ch8 options 2013-07-29 16:28:04 +09:00
Olivier-ADLER 87d062905e Copter: 3 positions switch support for CH7 and CH8 - new 3 positions SIMPLE / SUPERSIMPLE mode
3 positions modes must use mode number >= 100
pre-arm check correction for CH7 - CH8 check
2013-07-29 15:12:10 +09:00
Olivier-ADLER bf6120d8b7 Copter: Move CH7 - CH8 check from read_aux_switches() to pre_arm_checks.
Moving this to pre-arm checks save some processing time and is safer.
2013-07-26 09:30:24 +09:00
Randy Mackay c937fe45e1 Revert "Copter: Remove CH7 & CH8 Enable / Disable of GeoFence"
This reverts commit e25b8933f3.
2013-07-20 15:00:08 +09:00
Randy Mackay 7ea971d948 Copter: check set_mode for failure
Previously if set_mode failed it would return the copter to stabilize
mode.  With this commit set_mode returns a true/false indicating whether
it succeeded or not so the caller can make the decision as to the
appropriate response which could be to stay in the current flight mode
or try another flight mode.
2013-07-20 11:01:10 +09:00
Craig3DR e25b8933f3 Copter: Remove CH7 & CH8 Enable / Disable of GeoFence 2013-07-18 17:06:53 +09:00
Randy Mackay 41ba4a1ed2 Copter: initialise ch7 and ch8 aux switches
This ensures that if you have simple mode or sonar attached to an
auxiliary switch it will be enabled or disabled according to the switch
immediately after start-up
2013-07-16 22:05:59 +09:00
Randy Mackay d5b4c44926 Copter: comment fix for flight mode switch delay const 2013-07-12 22:29:14 +09:00
Rayjan Wilson 07ca8ef87a attempt to change from 1/10th second to 2/10th second on flight mode switch 2013-07-12 21:57:35 +09:00
Randy Mackay 0cf4ac088a Copter: restore LEDs to off state when auto-trim completes 2013-07-04 16:38:28 -10:00
Dr Gareth Owen e0dcd680f7 proposed radio failsafe bug fix 2013-06-27 17:13:01 -10:00
Randy Mackay 00bd1bf8ea Copter: RESETTOARMEDYAW order and comments
We should keep the order in the case statement the same as the #define
order.
2013-05-21 10:58:34 +09:00
Dr Gareth Owen f646b79e5f indent correct again 2013-05-21 10:40:36 +09:00
Dr Gareth Owen d9fc37c01c indent correct 2013-05-21 10:40:34 +09:00
Dr Gareth Owen e9d640ced8 added ch7 option to reset yaw back to what it was when quad was armed 2013-05-21 10:40:30 +09:00