Commit Graph

285 Commits

Author SHA1 Message Date
Randy Mackay 3b003ea3e6 Copter: remove setting of nav mode 2014-02-15 05:27:38 +11:00
Randy Mackay f3bcbb2ce4 Copter: remove setting roll, pitch yaw modes in set_mode 2014-02-15 05:27:37 +11:00
Randy Mackay 65f7bf92f4 Copter: replace yaw_mode with auto_yaw_mode 2014-02-15 05:27:37 +11:00
Randy Mackay 4540fb3fef Copter: remove set roll-pitch, yaw, thr modes for ACRO, LOITER 2014-02-15 05:27:36 +11:00
Randy Mackay a52e220724 Copter: add loiter controller to onion
Also add ignore_checks to flight mode initialisation
2014-02-15 05:27:35 +11:00
Randy Mackay abb42bcb41 Copter: remove unused run_rate_controllers 2014-02-15 05:27:34 +11:00
Randy Mackay 2c03a3a3c6 Copter: set pos_control.set_dt 2014-02-15 05:27:34 +11:00
Randy Mackay 2253cf9769 Copter: run main loop at 400hz for pixhawk 2014-02-15 05:27:33 +11:00
Randy Mackay 3a78263921 Copter: skeleton init call for all flight modes 2014-02-15 05:27:33 +11:00
Andrew Tridgell 0a3476bbf1 Copter: change to new board_voltage() API 2014-02-14 21:50:59 +11:00
Andrew Tridgell e8b8cc1a5d Copter: converted to AP_ServoRelayEvents 2014-01-20 17:06:29 +11:00
Andrew Tridgell 50a90a1043 Copter: enable AP_BoardConfig 2014-01-20 17:06:28 +11:00
Randy Mackay 8a29d63d89 Copter: faster baro calibration when arming
using update_calibration() instead of the full calibrate() cuts
1.5seconds of the arming time
2014-01-15 23:28:24 +09:00
Randy Mackay b3d20bb8aa TradHeli: Drift mode to use heli manual throttle 2014-01-10 11:06:06 +09:00
Andrew Tridgell 97df2f64c9 Copter: use common available_memory() 2013-12-28 16:02:32 +11:00
Randy Mackay d362bb45fd Copter: move sensor init from setup(to init_ardupilot
This fixes a bug in which the external led was not being disabled if the
EPM was enabled (they share pins).  The cause of the problem was the EPM
was being initialised before it's parameters had been loaded
2013-12-19 14:12:19 +09:00
Andrew Tridgell edda76623f Copter: updates for DataFlash API changes 2013-12-17 11:51:36 +11:00
Randy Mackay 59cea4b88c Copter: remove CopterLED from main code 2013-11-30 18:20:55 +09:00
Randy Mackay 7ef04bb73b Copter: rename nav_yaw to control_yaw 2013-11-27 22:48:20 +09:00
Andrew Tridgell 9c812d5028 Copter: added SERIAL2_BAUD and rename SERIAL3_BAUD to SERIAL1_BAUD 2013-11-26 13:05:32 +11:00
Andrew Tridgell a49710f20e Copter: added uartD support
this also brings GCS_Mavlink.pde closer to the plane implementation
2013-11-26 13:05:32 +11:00
Randy Mackay a812ef4660 Copter: minor comment update for set_mode 2013-11-16 13:56:15 +09:00
Randy Mackay 8c9ab50ba2 TradHeli: restore CC_COMP and PIRO_COMP 2013-11-15 22:58:43 +09:00
Randy Mackay 527f05ddec Copter: remove unused init_rate_controllers 2013-11-15 22:58:22 +09:00
Randy Mackay 633e91b7d4 Copter: initialise roll, pitch, yaw modes to stabilize
This fixes a bug in which the stabilize throttle controller would be
non-tilt compensated until the user switched to another flight mode and
back again
2013-11-15 22:57:56 +09:00
Randy Mackay ae87759e6d TradHeli: add THROTTLE_MANUAL_HELI
Move check_dynamic_flight to run as scheduled task
2013-11-15 22:57:53 +09:00
Randy Mackay 46118b59d7 TradHeli: integrate motor lib changes 2013-11-15 22:57:43 +09:00
Robert Lefebvre c5b119288d TradHeli: Add Motor Runup check to the auto_arming check. 2013-11-15 22:57:31 +09:00
Jason Short 371dc8c616 Copter: Drift Mode
Changes Toy mode declarations to Drift mode.
Requires GPS, Mode 2 transmitter
Drift mode mixes Roll, Pitch and Yaw into a single stick on mode two transmitters.
2013-11-14 14:43:15 +09:00
Randy Mackay 03831cdd28 Copter: GPS ok only when not glitching
Removed redundant checks to GPS_ok before setting flight mode to RTL
(this check is already performed inside the set_mode function)
Removed reset of home distance and bearing when GPS lock is lost, it now
remains at the last known value
2013-11-11 22:24:18 +09:00
Randy Mackay e4d8c673f3 Copter: force gyro calibration on start-up 2013-11-10 21:51:54 +09:00
Andrew Tridgell 6b1f59372c Copter: show git and firmware version in tlog 2013-11-09 10:09:20 +11:00
Jason Short 520a535c21 Copter: TOY mode updates 2013-11-02 21:34:48 +09:00
Andrew Tridgell f6f6caafc8 Copter: int gyros on arm, not on first boot
this makes first boot much faster
2013-11-02 21:41:11 +11:00
Randy Mackay 7c7f235a97 Copter: ignore flight mode change requests if we're already in the desired mode 2013-10-15 11:53:56 +09:00
Andrew Tridgell b69f08c03e Copter: reduce timer speed to 500 on APM2
this reduces the cost of timer interrupts
2013-10-13 11:03:41 +09:00
Andrew Tridgell 64d34dc125 Copter: give UARTA 512 bytes
this reduces load by allowing more contiguous writes to the serial
buffers
2013-10-13 11:02:55 +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 a53d28e018 Copter: remove support for dmp ahrs 2013-09-27 10:42:49 +09:00
Randy Mackay 7cc8a9038f Copter: move failsafe flags into structure 2013-09-26 19:37:15 +09:00
Randy Mackay 77b5cb5d3f Copter: correct typo in error #define 2013-09-24 21:45:52 +09:00
Randy Mackay 284aa2217f Copter: remove old comments 2013-09-24 21:45:43 +09:00
Andrew Tridgell faddef69e6 Copter: fixed baud rates on APM1 2013-09-21 09:30:29 +10:00
Andrew Tridgell 46688454c4 Copter: removed flash_leds() calls 2013-09-19 18:38:28 +10:00
Andrew Tridgell 754bdbd25f Copter: use new usb_connected() HAL function 2013-09-19 16:24:23 +10:00
Randy Mackay 98a2ffd65c Copter: remove redundant reset_i_all from startup 2013-09-13 12:30:25 +09:00
Andrew Tridgell 7c62736e59 Copter: fixed Vcc 2013-09-12 13:26:19 +10:00
Randy Mackay 1abb439051 Copter: move acro's var initialisation to roll-pitch and yaw controller initialisation 2013-09-09 10:54:13 +09:00
Randy Mackay 942ba0476b Copter: remove manual_attitude and throttle flags 2013-09-09 10:44:53 +09:00