Commit Graph

248 Commits

Author SHA1 Message Date
Andy Piper
d29ccba3f7 AP_Vehicle: constrain FFT notch updates to obey reference frequency 2022-12-28 18:14:56 +11:00
Andy Piper
7acdaf2dd0 AP_Vehicle: add vehicle motor noise check 2022-12-28 18:14:56 +11:00
Paul Riseborough
d335e71749 AP_Vehicle: Add pitch_trim_cd to fixed wing shared parameters 2022-11-18 05:43:59 +11:00
Peter Barker
a623c93370 AP_Vehicle: remove GCS.h from library header files 2022-11-16 18:29:07 +11:00
Peter Barker
e01cfbad5b AP_Vehicle: change namespace of MultiCopter and FixedWing params
this stops the libraries knowing anything about AP_Vehicle
2022-11-09 19:04:37 +11:00
Yuri
c474edc7b8 AP_Vehicle: enable HNTCH for Rover 2022-10-25 09:48:51 +09:00
Andrew Tridgell
ce77be9599 AP_Vehicle: updated nav_script_time 2022-10-23 18:11:15 +11:00
Tom Pittenger
1254e18fa9 AP_Vehicle: add AP_TemperatureSensor
Co-authored-by: Joshua Henderson <hendjoshsr71@gmail.com>
2022-10-18 10:05:31 +11:00
Andrew Tridgell
ac2701b1bf AP_Vehicle: removed num_dynamic_notches limit in dynamic harmonic
use INS_MAX_NOTCHES instead, allowing for more ESCs to be added by lua
scripts
2022-10-16 20:38:19 +11:00
Andrew Tridgell
1796cd5394 AP_Vehicle: check for motors being nullptr
this can happen with plane with Q_ENABLE=0
2022-10-06 21:28:55 +11:00
Andrew Tridgell
2faa0fd2f2 AP_Vehicle: implement 1M/2M warnings
encourage users to run the right firmware for their boards
2022-10-06 10:58:46 +11:00
jackhong12
4a4f361a17 all: use CLASS_NO_COPY() macro 2022-10-04 11:23:04 +11:00
Joshua Henderson
996089dc2a AP_Vehicle: EFI increase loop rate to 50Hz 2022-10-02 08:15:06 +11:00
Peter Barker
86df7e1bfc AP_Vehicle: add 0x to internal error statustext 2022-09-28 19:46:08 +10:00
yaapu
e958c313a1 ArduPlane: fixed roll and pitch for OSD VTOL view 2022-09-27 10:04:10 +10:00
Andy Piper
c86f113bf9 AP_Vehicle: make sure notches are not spurious disabled when not using throttle notch 2022-09-21 17:27:30 +10:00
Peter Barker
4758fabe0d AP_Vehicle: add and use AP_RPM_ENABLED
... and backend-specific equivalents
2022-09-20 09:28:27 +10:00
Andy Piper
a560d1f2cc AP_Vehicle: update notch count. 2022-08-30 10:03:31 +10:00
Peter Barker
e948f79db8 AP_Vehicle: move call to compass cal update up to AP_Vehicle 2022-08-16 10:06:44 +10:00
Andrew Tridgell
f7e4b5c72d AP_Vehicle: use AP_CheckFirmware 2022-08-15 09:18:34 +10:00
Joshua Henderson
c52ae2edb4 AP_Vehicle: add OpenDroneID library 2022-08-09 14:37:08 +10:00
Andy Piper
2c22bca1a9 AP_Vehicle: make sure that if ESC telemetry is missing notch updates are not misordered 2022-08-09 11:13:11 +10:00
Iampete1
a9310c3d18 AP_Vehicle: change AC_FENCE to AP_FENCE_ENABLED 2022-07-27 19:04:56 +10:00
Iampete1
9e86f4dc43 AP_Vehicle: add AC_Fence 2022-07-27 19:04:56 +10:00
Peter Barker
695891365e AP_Vehicle: remove transitive include dependencies 2022-07-20 17:32:24 +10:00
Andy Piper
58ea8d6b7b AP_Vehicle: wire-in tramp support 2022-07-13 18:22:34 +10:00
Iampete1
30fffb491c AP_Vehicle: add AIS 2022-07-12 09:39:54 +10:00
Yuri
bc8bdc18c9 AP_Vehicle: add set_desired_speed for use in scripting 2022-07-07 19:34:10 +09:00
Andrew Tridgell
50740124fe AP_Vehicle: implement INS_HNTCH_FM_RAT
this allows for a throttle based harmonic notch min frequency ratio,
allowing for the notch to go below the configured frequency at low
throttle

This is important for quadplanes, but will also benefit multirotors
flying at lower throttle due to lower payload or when descending

This also disables the throttle based harmonic notch when motors are
in SHUT_DOWN state
2022-06-30 20:58:37 +10:00
Randy Mackay
c19d5391d9 AP_Vehicle: add get_rate_bf_targets method 2022-06-15 09:07:14 +09:00
Andrew Tridgell
42624bdbeb AP_Vehicle: added parameter table for ESC telemetry 2022-06-10 13:46:43 +10:00
Randy Mackay
27b66443b2 AP_Vehicle: mode reason added for dead reckon failsafe 2022-05-25 20:05:21 +09:00
Peter Barker
8402149572 AP_Vehicle: run prearm checks on all vehicles @1Hz, displaying @0.0333Hz 2022-05-18 12:25:26 +09:00
Andrew Tridgell
f39ffee3f9 AP_Vehicle: added QLAND_INSTEAD_OF_RTL mode reason 2022-05-18 06:43:16 +10:00
murata
d2053d4449 AP_Vehicle: Console output can be disabled 2022-05-17 09:53:06 +10:00
Peter Barker
d23ddc4116 AP_Vehicle: increase rate at which we can log ESC telem
Some ESCs can give us >10Hz logging; we already check the data has
changed before logging, so let's log at the higher rate if we can.
2022-05-10 19:43:49 +10:00
Andy Piper
cc2acc35a6 AP_Vehicle: add task info for fast loop
move fast loop tasks into scheduler table
remove fast loop
2022-05-03 08:20:13 +09:00
Randy Mackay
21ee06d362 AP_Vehicle: implement has_ekf_failsafed for use by lua 2022-04-26 18:37:54 +09:00
Andrew Tridgell
301c56d30a AP_Vehicle: implement common harmonic notch update code 2022-04-19 09:39:03 +10:00
Andrew Tridgell
a2fc4d909d AP_Vehicle: support two full harmonic notch filters 2022-04-19 09:39:03 +10:00
Peter Barker
c829b109bf AP_Vehicle: stop libraries including AP_Logger.h in .h files
AP_Logger.h is a nexus of includes; while this is being improved over
time, there's no reason for the library headers to include AP_Logger.h
as the logger itself is access by singleton and the structures are in
LogStructure.h

This necessitated moving The PID_Info structure out of AP_Logger's
namespace.  This cleans up a pretty nasty bit - that structure is
definitely not simply used for logging, but also used to pass pid
information around to controllers!

There are a lot of patches in here because AP_Logger.h, acting as a
nexus, was providing transitive header file inclusion in many (some
unlikely!) places.
2022-04-08 19:18:38 +10:00
Peter Barker
fe863b9567 AP_Vehicle: correct compilation with HAL_INS_ACCELCAL_ENABLED false 2022-03-22 10:39:44 +11:00
Peter Barker
0bcda3c57e AP_Vehicle: split AP_HAL_SITL and AP_SIM_ENABLED 2022-03-17 14:39:55 +11:00
Andrew Tridgell
711ecb45ab AP_Vehicle: added update_target_location() 2022-03-10 07:34:20 +11:00
Iampete1
f15c84bdac AP_Vehicle: add custom rotations lib 2022-03-02 18:16:42 +11:00
Peter Barker
546961eff4 AP_Vehicle: include cleanups 2022-03-01 11:21:33 +11:00
Henry Wurzburg
425aef59dc AP_Vehicle: fix error in Tricks on a Switch qualifier 2022-02-08 11:54:38 +11:00
Henry Wurzburg
c3950aed2f AP_Vehicle: extend nav_scripting to all modes 2022-02-07 21:19:28 +11:00
Rishabh
d90d3d1283 AP_Vehicle: Allow lua script access to Rover's turn rate guided command 2022-01-31 14:48:22 +09:00
Joshua Henderson
ee273da50d AP_Vehicle: move Airspeed to AP_Vehicle 2022-01-19 18:21:32 +11:00
Peter Barker
db6bb8d616 AP_Vehicle: move INS notch filter logging into INS 2022-01-05 16:34:36 +11:00
Peter Barker
295276cd37 AP_Vehicle: pass GyroFFT loop rate in Hz rather than period in us
It just calculates this anyway
2021-12-31 11:15:20 +11:00
Andy Piper
9ba1cbc9d8 AP_Vehicle: log up to 12 harmonic notch frequencies 2021-12-22 18:13:38 +11:00
Peter Barker
7b90326888 AP_Vehicle: declare get_control_output only if scripting is enabled
It's right there in the comments - this should only be defined if
scripting is enabled.

Rover overrides this but that is protected by AP_SCRIPTING_ENABLED.
2021-12-14 11:38:06 +11:00
Hwurzburg
d132f0f3fb AP_Vehicle: clean up short failsafe 2021-12-07 10:09:33 +11:00
Andy Piper
77acf9bcc2 AP_Vehicle: correct update_dynamic_notch_at_specified_rate() 2021-11-17 13:35:34 +00:00
Andy Piper
ac263e5659 AP_Vehicle: make sure notch update rate is configurable 2021-11-17 13:35:34 +00:00
Peter Barker
c559e27c55 AP_Vehicle: allow specification of Scheduler table priorities 2021-11-17 19:00:04 +11:00
Peter Barker
6b9ef0aba8 AP_Vehicle: move from ENABLE_SCRIPTING to AP_SCRIPTING_ENABLED 2021-11-15 20:27:40 +11:00
Peter Barker
c090ddc65c AP_Vehicle: ensure ENABLE_SCRIPTING is always defined 2021-11-15 20:27:40 +11:00
Andrew Tridgell
527d9b38e6 AP_Vehicle: added nav_script_time methods
for supporting aerobatics in scripts
2021-11-08 21:08:52 +11:00
Peter Barker
ce352410e1 AP_Vehicle: move EFI to AP_Vehicle 2021-11-05 09:22:17 +11:00
Andy Piper
7010a6bf7e AP_Vehicle: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI
force compilation failure if build type is unknown
2021-10-26 11:42:12 +11:00
Peter Barker
29088e25f9 AP_Vehicle: move SITL object up to AP_Vehicle 2021-10-19 11:34:43 +11:00
Gone4Dirt
7c20658acf AP_Vehicle: Add Heli build type 2021-09-29 19:55:48 +10:00
Iampete1
d566b24c04 AP_Vehickle: add Loiter alt then QLAND mode reasons 2021-09-28 09:31:13 +10:00
Peter Barker
d86e2792fd AP_Vehicle: rename GENERATOR_ENABLED to HAL_GENERATOR_ENABLED 2021-09-26 19:24:09 +10:00
Tom Pittenger
de753f386c AP_Vehicle: fix periph-heavy compile errors when INS is disabled 2021-09-24 10:47:13 -05:00
Andrew Tridgell
fd86cb0591 AP_Vehicle: moved accel cal update handling from vehicles 2021-09-17 14:07:14 +10:00
Iampete1
ccd330a40a AP_Vehicle: add AUTO_RTL_EXIT mode reason 2021-09-07 09:35:35 +09:00
Peter Barker
7a06c941df AP_Vehicle: make bad-mode-number notification consistent across vehicles 2021-09-01 19:45:46 +09:00
nkruzan
0a236bc13d AP_Vehicle: log internal error and report bitmask to GCS
AP_Vehicle.cpp: cast parameter bitmask as (unsigned) per Peter B.

rework per Peter B.

Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
remove unnecessary send_internal_error_statustext function

remove Write_InternalError function
2021-08-31 15:54:02 +10:00
Randy Mackay
1a7826295f AP_Vehicle: add virtual set_target methods 2021-08-26 11:25:54 +09:00
Peter Barker
47455f12db AP_Vehicle: add and use HAL_BUTTON_ENABLE 2021-08-25 19:03:42 +10:00
Randy Mackay
1725eda961 AP_Vehicle: add get_circle_radius, set_circle_rate 2021-08-25 18:39:09 +10:00
Andy Piper
b6ec06ac0f AP_Vehicle: output rcout banner when initialization is done
move down ready message
2021-08-12 19:07:51 +09:00
Hwurzburg
b69308858a AP_Vehicle: correct OSD horizon for VTOL modes and TRIM_PITCH_CD in FW modes 2021-08-03 10:09:28 +10:00
Iampete1
88d4ada96d AP_Vehicle: #ifdef scripting specific functions 2021-07-28 18:18:32 +10:00
Peter Barker
7cca7513a1 AP_Vehicle: rename for AHRS restructuring 2021-07-21 21:01:39 +10:00
Peter Barker
2926ffcd2f AP_Vehicle: remove ability to use DCM as AHRS 2021-07-21 21:01:39 +10:00
Peter Barker
d47a032a09 AP_Vehicle: explicitly number ModeReason enumeration values
These are logged, and mapping back is much easier if you have this
numbering
2021-07-17 09:27:38 +10:00
bugobliterator
d3fce3c41d AP_Vehicle: add method to enable onvif camera control using script 2021-07-07 18:57:25 +10:00
Siddharth Purohit
a5a29fe3ec AP_Vehicle: solve for undefined vehicle object in herepro build 2021-07-02 08:50:16 +10:00
Hwurzburg
cc0f850eb9 AP_Vehicle: add QRTL always as Q_RTL_MODE option 2021-06-14 09:08:20 +10:00
Andy Piper
9bc9873e38 AP_Vehicle: optionally run the harmonic notch update at the loop rate 2021-05-19 17:35:16 +10:00
Andy Piper
5d154b138a AP_Vehicle: generalise ESC telemetry to allow harmonic notch handling with other ESCs
log ESC telemetry data in frontend
2021-05-12 17:01:11 +10:00
Andrew Tridgell
6f5626d04f AP_Vehicle: fixed SD card slowdown with early mounts 2021-05-01 12:32:23 +10:00
Andrew Tridgell
ec11bf1146 AP_Vehicle: fixed segfault in replay 2021-04-15 13:39:18 +10:00
Andy Piper
9ac8e2b705 AP_Vehicle: addlow SRV_Channels to be initialized 2021-04-06 10:24:04 +10:00
Peter Barker
749d4c997b AP_Vehicle: ensure reboot command ACK is written out in SITL 2021-04-06 10:21:59 +10:00
Michelle Rossouw
ac893b4013 AP_Vehicle: added blimp vehicle type 2021-03-31 12:27:07 +11:00
Emre Saldiran
858d69ca0e AP_Vehicle: add set_target_posvel_NED method 2021-03-24 08:55:48 +09:00
James O'Shannessy
a23e8d46da AP_Vehicle: Add additional fence mode change reason 2021-03-05 14:52:46 +11:00
Andy Piper
fcd35ba0f8 AP_Vehicle: move AP_Vehicle to AP_Vehicle 2021-02-23 11:43:32 +11:00
Andy Piper
74318dd0dd AP_Vehicle: move AP_VideoTX to AP_VideoTX 2021-02-23 11:43:32 +11:00
Andy Piper
b79ff9475d AP_Vehicle: add support for the SmartAudio protocol
Co-authored-by: luis.martinez.exts <luis.martinez@juntadeandalucia.es>
2021-02-17 18:23:33 +11:00
Pierre Kancir
eb78a473f6 AP_Vehicle: correct virtual specifier 2021-02-10 18:49:42 +11:00
Patrick José Pereira
b8360a08c7 AP_Vehicle: Add missing const in member functions
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-03 18:45:14 +11:00
Peter Barker
f15a1fbd62 AP_Vehicle: move control_mode_reason up to AP_Vehicle 2021-02-03 18:24:52 +11:00
Andrew Tridgell
66297bd061 AP_Vehicle: added ExternalAHRS param tree and object
using EAHRS param prefix
2021-01-05 21:13:12 +11:00