Commit Graph

276 Commits

Author SHA1 Message Date
Peter Barker b4537bebd8 Copter: move control_mode_t into being Mode::Number enum class
Fixes this compiler error:

In file included from ../../ArduCopter/sensors.cpp:1:
In file included from ../../ArduCopter/Copter.h:195:
../../ArduCopter/mode.h:1291:9: fatal error: declaration shadows a variable in the global namespace [-Wshadow]
        AUTO,           // after A and B defined, pilot toggle the switch from one side to the other, vehicle flies autonomously
        ^
../../ArduCopter/defines.h:38:5: note: previous declaration is here
    AUTO =          3,  // fully automatic waypoint control using mission commands
    ^
1 error generated.
2019-09-13 13:12:08 +09:00
bnsgeyer 23d4473f88 Copter: tradheli-properly upgrade rsc parameters 2019-09-13 08:53:54 +09:00
Randy Mackay 6ddaf81439 Copter: param conversion for INS_NOTCH_FREQ and BW 2019-09-11 18:41:05 +10:00
bnsgeyer f84dac85ea Copter: tradheli-dualheli swashplate type upgrade conversion fix 2019-09-10 15:02:34 +09:00
bnsgeyer a849aab4c7 Copter: tradheli-singleheli swashplate type upgrade conversion fix 2019-09-10 15:02:34 +09:00
Randy Mackay 709c874d8b Copter: integrate AP_OAPathPlanner 2019-08-17 09:42:43 +09:00
Peter Barker 48a1b2f436 Copter: avoid allocate a GCS_MAVLINK per mavlink channel 2019-08-14 18:25:43 +10:00
Bill Geyer c8b547a8e4 Copter: tradheli-remove snprintf statements 2019-08-06 08:24:59 +09:00
bnsgeyer 5eb5277f4c Copter: tradheli-converts swashplate to H3-120 on upgrade based on old params 2019-08-06 08:24:59 +09:00
Michael du Breuil 599a1af5c1 Copter: Convert ARMING_CHECK 2019-07-30 10:42:16 +10:00
Leonard Hall f128e93ec5 Copter: support for upgrade to PID object 2019-07-25 17:38:15 +09:00
Peter Barker cf45108efb Copter: set Heli frame default at compile-time 2019-07-04 10:05:01 +09:00
Michael du Breuil c612291a47 Copter: Enable scripting parameters 2019-06-18 00:06:32 -07:00
Michael du Breuil bd904f890f Copter: Update for AFS interface 2019-06-18 10:02:05 +10:00
Peter Barker 676d75c391 Copter: correct namespacing of Copter modes
This makes us look like Rover and Plane in terms of namespacing for the
Mode classes, and removes a wart where we #include mode.h in the middle
of the Mode class.

This was done mechanically for the most part.

I've had to remove the convenience reference for ap as part of this.
2019-06-11 09:18:22 +09:00
ChristopherOlson e13ff6c398 Copter: Parameters TradHeli Acro - add description for setting of virtual flybar 2019-06-04 09:57:13 +09:00
1iggy2 3c4bac7c97 Copter: added I frame for octa 2019-06-04 09:49:44 +09:00
bnsgeyer 4120e29614 AP_Motors: Tradheli-complete conversion of throttle curve params to percent
add conversion for throttle curve params for upgrade
2019-06-03 07:53:01 +09:00
Randy Mackay 2c682c7001 Copter: add missing AccelZ to GCS_PID_MASK param description 2019-04-13 13:33:52 +09:00
Peter Barker e5b25824eb Copter: remove unused takeoff_trigger_dz parameter 2019-04-09 08:15:39 +10:00
Randy Mackay a5bdd12bfa Copter: replace TUNE_LOW/HIGH params with TUNE_MIN/MAX
change from uint16 to floats to ease setup
also add check that no function assigned to rc6
2019-04-08 15:24:00 +09:00
Peter Barker fad769f3bf Copter: add param conversion from MAG_ENABLE to COMPASS_ENABLED 2019-04-02 10:24:49 +11:00
Peter Barker 2040580ce7 Copter: move enabled parameter into compass library 2019-04-02 10:24:49 +11:00
Patrick José Pereira 33764d6c3b Copter: Fix typo
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2019-03-26 15:39:23 +11:00
bnsgeyer 2ec470aaee Copter:tradheli - added swash params to convert on upgrade 2019-03-20 10:40:20 +10:00
bnsgeyer 2fc942ac24 Copter: tradheli-convert swash parameters on firmware upgrade 2019-03-20 10:40:20 +10:00
Randy Mackay ead3682e4c Copter: correct ACRO_YAW_P param description
this parameter applies to all flight modes
2019-03-06 14:42:59 +09:00
Michael du Breuil cac4b91671 Copter: Allow scripting to run 2019-03-05 08:45:54 +11:00
Andrew Tridgell 3f58461839 Copter: allow override of default frame type 2019-02-06 11:17:35 +11:00
Andrew Tridgell 36180faab5 Copter: added 3 more FRAME_TYPE values 2019-02-06 11:17:35 +11:00
bnsgeyer 62ffd273aa Copter: Tradheli-default RC8_OPTION to motor interlock 2019-01-28 09:44:56 +09:00
Peter Barker b47733142f GLOBAL: rename DataFlash_Class to AP_Logger 2019-01-18 18:08:20 +11:00
Dr.-Ing. Amilcar do Carmo Lucas 00d9cc2e09 Copter: Only use the 6 LSBs, avoids a cpp warning 2019-01-11 20:55:17 +09:00
Pierre Kancir 8c5d9d38a6 Copter: fix snprintf size warning 2019-01-10 20:00:29 +09:00
Michael du Breuil fc2ea009fb Copter: Reset all storage when format version is incorrect 2019-01-08 10:35:37 +11:00
IamPete1 21b6a2a878 Copter: Add value to paramiter discription 2018-12-21 11:19:18 +09:00
Andrew Tridgell 89d54767b1 Copter: convert to use AC_AutoTune library
this maintains existing behaviour
2018-12-18 10:34:42 +09:00
Francisco Ferreira a2fa63bcf7 Copter: fix Cygwin build
Static initialization doesn't have an exact order, we can't rely on it
2018-12-13 09:28:44 +09:00
Randy Mackay 550be0bfb1 Copter: tradheli default table made static 2018-12-06 12:23:41 +09:00
Randy Mackay 00b909255c Copter: tradheli uses set_defaults_from_table 2018-12-06 12:23:41 +09:00
ChristopherOlson 2e98de3292 Copter:Parameters-TradHeli - set defaults for PSC and LOIT controllers 2018-11-27 08:48:41 +09:00
Randy Mackay f8773e0bdc Copter: enable ground effect compensation by default 2018-11-12 13:43:42 +09:00
Andrew Tridgell 2f79932611 Copter: auto-convert landing gear PWM parameters 2018-11-10 21:24:19 +11:00
Peter Barker 72440e2af3 Copter: allow VFR_HUD.alt to be relative-alt if DEV_OPTIONS has bit 2 set 2018-11-06 11:26:38 +09:00
Michael du Breuil f7245e7797 Copter: Remove old parameter conversion that conflicts with newer code 2018-11-06 10:18:39 +09:00
Michael du Breuil 5740ea55e8 Copter: Fix battery failsafe param conversion 2018-11-06 10:18:39 +09:00
CAO MUQING 71beab7502 Copter: create and update Zigzag flight mode 2018-10-05 10:05:45 +09:00
Randy Mackay e44f7dc3e1 Copter: minor fix to user parameters 2018-08-31 09:25:37 +09:00
SergeyBokhantsev af6303c82b Copter: User parameters implementation 2018-08-31 08:42:03 +09:00
Randy Mackay 9fff6d1e71 Copter: restore CHx_OPT param descriptions
This will help users who are using beta mission planner (which gets param descriptions from master) with Copter-3.6 which still has these parameters.
2018-08-07 09:47:39 +09:00