Commit Graph

30847 Commits

Author SHA1 Message Date
Andrew Tridgell
d3ce852050 AP_Scripting: send error as NAMED_VALUE_FLOAT 2022-10-29 21:22:29 +11:00
Andrew Tridgell
bcdbfef7d5 AP_Scripting: removed banked_circle
and fixed helix length calculation
2022-10-29 21:22:29 +11:00
Andrew Tridgell
01bdc532d6 AP_Scripting: added schedules from Andy 2022-10-29 21:22:29 +11:00
Andrew Tridgell
fb7ea3ecac AP_Scripting: filled in all maneuvers in test_all_paths 2022-10-29 21:22:29 +11:00
Andrew Tridgell
d88e3d27f6 AP_Scripting: added composition of composed paths 2022-10-29 21:22:29 +11:00
Andrew Tridgell
5a0311c6d8 AP_Scripting: use composer object to prepare for nested composition 2022-10-29 21:22:29 +11:00
Andrew Tridgell
4e154b17a2 AP_Scripting: convert remaining paths to composite functions 2022-10-29 21:22:29 +11:00
Andrew Tridgell
7541eed80c AP_Scripting: fixed height gain/loss in upline/downline 2022-10-29 21:22:29 +11:00
Andrew Tridgell
efff5dc7ea AP_Scripting: added throttle lookahead
anticipate the pitch and add extra throttle ready for the pitch up
2022-10-29 21:22:29 +11:00
MatthewHampsey
a4c544436a AP_Scripting: Added box trajectories, adding warning log for insufficent roll rate 2022-10-29 21:22:29 +11:00
Andrew Tridgell
8bc847fcf1 AP_Scripting: convert more paths to use composer 2022-10-29 21:22:29 +11:00
Andrew Tridgell
b1e123df9e AP_Scripting: added entry and exit bank rates 2022-10-29 21:22:29 +11:00
Andrew Tridgell
20f1e8a6e6 AP_Scripting: fixed NED -> ENU in view_paths
thanks MattH !
2022-10-29 21:22:29 +11:00
Andrew Tridgell
7c7de7eee6 AP_Scripting: added stall turn
not really working well
2022-10-29 21:22:29 +11:00
Andrew Tridgell
f509359c24 AP_Scripting: removed debug 2022-10-29 21:22:29 +11:00
Andrew Tridgell
f31fa6daf2 AP_Scripting: add Split-S, Upline-45 and Downline-45 2022-10-29 21:22:29 +11:00
Andrew Tridgell
8873f95e52 AP_Scripting: re-implement humpty bump with composition 2022-10-29 21:22:29 +11:00
Andrew Tridgell
9242786d1e AP_Scripting: added path composition
allow creation of paths from a sequence of sub-paths
2022-10-29 21:22:29 +11:00
Andrew Tridgell
3dfbca62a6 AP_Scripting: catch NaN in view_path 2022-10-29 21:22:29 +11:00
Andrew Tridgell
c0559935ed AP_Scripting: ensure time doesn't go past 1.0 2022-10-29 21:22:29 +11:00
Andrew Tridgell
16583704ed AP_Scripting: make target speed max of current and trim speed 2022-10-29 21:22:29 +11:00
Andrew Tridgell
dd390c257d AP_Scripting: remove unused code 2022-10-29 21:22:29 +11:00
Andrew Tridgell
119852b390 AP_Scripting: fixed mirroring for some -ve radius paths 2022-10-29 21:22:29 +11:00
Andrew Tridgell
4b53e16ea2 AP_Scripting: document trajectory scripting 2022-10-29 21:22:29 +11:00
Andrew Tridgell
0ae3b39a66 AP_Scripting: implement tricks on a switch on top of trajectory tracking
this re-implements tricks on a switch with the new accurate trajectory
tracking code.

It adds new parameters:

 - TRIK_ENABLE=0/1
 - TRIK_COUNT for number of tricks
 - TRIK_ACT_FN for the rc option to use to activate tricks (default 300)
 - TRIK_SEL_FN for the rc option to use to select which trick (default 301)

So if you want to use a 3 position switch on RC7 to activate and use a
knob on RC8 for selection then you would set:

- RC7_OPTION = 300
- RC8_OPTION = 301

then if tricks are enabled the following parameters are created per trick:

 - TRIKn_ID
 - TRIKn_ARG1
 - TRIKn_ARG2
 - TRIKn_ARG3
 - TRIKn_ARG4

You can have a maximum of 11 tricks.

The ID numbers are from the trajectory table. The arguments are path specific.
2022-10-29 21:22:29 +11:00
Peter Barker
db2736c297 GCS_MAVLink: correct potential uint underflow in stream slowdown 2022-10-27 08:40:21 +11:00
Peter Barker
77abaef092 GCS_MAVLink: use AP_NOTIFY_MAVLINK_LED_CONTROL_SUPPORT_ENABLED 2022-10-26 21:22:39 +11:00
Peter Barker
c136257a3a AP_Notify: gate mavlink access on HAL_GCS_ENABLED
via AP_NOTIFY_MAVLINK_LED_CONTROL_SUPPORT_ENABLED
2022-10-26 21:22:39 +11:00
Peter Barker
eead037513 AP_BattMonitor: remove unneeded include of Notify 2022-10-26 21:22:39 +11:00
Peter Barker
9ca19c25a9 GCS_MAVLink: process mavlink play_tune in frontend 2022-10-26 21:22:39 +11:00
Peter Barker
f846f703e4 AP_Notify: process mavlink play_tune in frontend 2022-10-26 21:22:39 +11:00
Peter Barker
959982c053 AP_HAL_ChibiOS: rename parameter name BRD_SAFETYENABLE to BRD_SAFETY_DEFLT 2022-10-26 19:53:03 +11:00
Peter Barker
b4a42e61f3 AP_BoardConfig: rename parameter name BRD_SAFETYENABLE to BRD_SAFETY_DEFLT 2022-10-26 19:53:03 +11:00
Peter Barker
21d27d8988 AP_BoardConfig: correct description of safety switch 2022-10-26 19:53:03 +11:00
MatthewHampsey
51481eff24 AP_Scripting: Made negative radii steer in other direction for remaining trajs 2022-10-25 16:37:19 +11:00
MatthewHampsey
d011c8977f AP_Scripting: Fix humpty bump 2022-10-25 16:37:19 +11:00
Peter Barker
56c4794700 AP_Notify: use existing method for setting rgb and rate 2022-10-25 12:11:38 +11:00
Yuri
c474edc7b8 AP_Vehicle: enable HNTCH for Rover 2022-10-25 09:48:51 +09:00
Andrew Tridgell
eb1d27df7b AP_Scripting: adjust EFI_SkyPower for rev 0.3 protocol 2022-10-25 11:44:45 +11:00
Andrew Tridgell
78c7bcf132 AP_EFI: fixed units of exhaust gas temperature 2022-10-25 11:44:45 +11:00
Andrew Tridgell
aea9dea005 AP_Scripting: added CANDRV to HFE EFI driver and document 2022-10-25 11:44:45 +11:00
Andrew Tridgell
96852a8eb4 AP_Scripting: added throttle and generator control for EFI_SkyPower driver
and added documentation for the driver
2022-10-25 11:44:45 +11:00
Henry Wurzburg
0a33799216 AP_SerialManager: move multiple RC input error to pre-arm failure 2022-10-25 11:34:13 +11:00
Henry Wurzburg
8f67e9b69f AP_Arming: move multiple RC input error to pre-arm failure 2022-10-25 11:34:13 +11:00
Peter Barker
a269acf76f AP_AdvancedFailsafe: use heartbeat method
this block is identical to the heartbeat method, with the exception of the enabled check (which is made earlier in the function this code is being removed from)
2022-10-25 11:31:14 +11:00
Peter Barker
ad0df546a7 AP_AdvancedFailsafe: use fence singleton in afs check 2022-10-25 11:31:14 +11:00
Andy Piper
55aed98f81 AP_InertialSensor: ensure that hardware AAF and notch filter are enabled on 42605 and 42609 2022-10-25 11:06:02 +11:00
Iampete1
5382083452 SRV_Channel: pwm_from_angle: return trim for 0 high_out 2022-10-25 11:03:35 +11:00
Iampete1
623501d0d5 AP_Arming: allow scripting channels to be disabled 2022-10-25 11:02:21 +11:00
Henry Wurzburg
eee856b427 hwdef: limit to onboard BARO for low flash F4 boards 2022-10-25 10:33:24 +11:00