MAD-CRAZY-MAN
7f01e3962f
thepeach_k1/r1: Copyright Amendment, Rename HW comment Correctly.
2022-12-06 06:43:46 -05:00
MAD-CRAZY-MAN
5fc10971ff
update by NuttX 10.3+
2022-12-06 06:43:46 -05:00
MAD-CRAZY-MAN
21093b829b
boards: Add ThePeach K1/R1
2022-12-06 06:43:46 -05:00
bresch
8e3517fae0
DataValidator: fix unexpected failover
...
Instead of always starting with instance 0 (potentially an internal
mag), first take the current sensor as reference to compare the other
ones against it.
The issue is that otherwise we can end up in a
situation where a switch occurs because the currently used sensor isn't
much better than a sensor with a lower index: because the selected one
isn't much better, we cannot "fail-over" to it and get stuck on another
sensor, triggering a fail-over.
2022-12-06 08:16:23 +01:00
Thomas Stastny
c5dc1221b6
failure detector: use multiplication instead of division
...
Co-authored-by: Daniel Agar <daniel@agar.ca>
2022-11-30 14:51:07 -05:00
Thomas Stastny
4e8381e8cf
failure detector: negative guard sqrt in std dev calc
2022-11-30 14:51:07 -05:00
Thomas Stastny
eb80e0410c
failure detector: fix imbalanced prop metric time interval
2022-11-30 14:51:07 -05:00
Daniel Agar
89b81b0bd6
create Welford mean Vector with covariance and improve precision with Kahan summation ( #20676 )
...
- WelfordMeanVector now computes covariance
- use Kahan summation for Welford mean (but continue using float32 for actual mean, etc)
- WelfordMean and WelfordMeanVector handle initial value and count roll over
- Welford mean count rollover at 16 bit max to prevent numerical issues and shift weight to newer samples
- sensors/vehicle_imu: update Welford mean usage (now simplified with resets removed)
- fix vehicle_imu_status accel var, now properly rotated with full covariance matrix
- gyro_calibration: update Welford mean usage
2022-11-30 14:50:13 -05:00
bresch
5155346d60
ekf2: do not use gnss data when no lock
2022-11-30 08:50:34 -05:00
Jaeyoung Lim
65577a4f89
Fix invalid offboard setpoints for fw pos control
...
This commit fixes a regression that disables offboard control
2022-11-30 09:14:57 +01:00
bresch
5d7faefa84
ekf2: don't add invalid GNSS samples to the buffer
2022-11-30 00:22:15 -05:00
Silvan Fuhrer
0c923bda4e
FW Attitude Control: fix integral resetting
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2022-11-29 18:36:15 +01:00
alexklimaj
b78b896498
Adjust min and max can bootloader timing for ardupilot compatibility
2022-11-29 10:21:28 -05:00
Matthias Grob
9e776741d9
battery: allow for external state of charge injection
2022-11-29 09:27:50 +01:00
Matthias Grob
babe93c3bf
rc_update: adapt throttle trim calibration for [-1,1]
...
This is fully backwards compatible: If the throttle trim is set to
the minimum then it's the legacy calibration and gets
interpreted such that there is no trim and behavior remains as before.
If the trim is set to a different value than the minimum then it gets
used like with all other channels which was unsupported before.
2022-11-28 19:25:55 +01:00
Matthias Grob
331cb21dee
manual_control_setpoint: change stick axes naming
...
In review it was requested to have a different name for
manual_control_setpoint.z because of the adjusted range.
I started to investigate what naming is most intuitive and found
that most people recognize the stick axes as roll, pitch, yaw, throttle.
It comes at no surprise because other autopilots
and APIs seem to share this convention.
While changing the code I realized that even within the code base
the axes are usually assigned to a variable with that name or
have comments next to the assignment clarifying the axes
using these names.
2022-11-28 19:25:55 +01:00
Matthias Grob
83246c84cf
Switch manual_control_setpoint.z scaling from [0,1] to [-1,1]
...
To be consistent with all other axes of stick input and avoid future
rescaling confusion.
Note: for the MAVLink message 69 MANUAL_CONTROL it's using the full range
according to the message specs now [-1000,1000].
2022-11-28 19:25:55 +01:00
Matthias Grob
5579e319ff
mavlink_receiver: refactor forgotten manual_control_setpoint naming
2022-11-28 19:25:55 +01:00
Peter van der Perk
f16286f3eb
Add jlink-nuttx build command for gdb helper for multi-task debugging
2022-11-28 06:29:18 -05:00
Matthias Grob
aac05d7bcd
Remove unmaintained rover_steering_control example
2022-11-28 10:02:04 +01:00
Matthias Grob
a953167a6a
Remove unmaintained uuv_example_app
2022-11-28 10:02:04 +01:00
Silvan Fuhrer
79c55614d8
FW PositionController: remove mavlink_log_pub, and only use events
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
bd176241f8
param translation: remove old param translations (more than 1 release back)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
3f773809c4
LaunchDetection: fix code style (name class members with trailing underscore)
...
And also align parameter handle name to real parameter name.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
1d75138659
LaunchDetector: fix counter logic
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
1400f81874
FW Pos C: rename LAUN_* param to FW_LAUN_* to be more explicit
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
5587a47471
Launch Detection: reduce user notification to info from warning
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
5a1adab6fb
FW Position controller params: flaring params slight meta data adjustments
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
7fb70c55df
FW Position controller: runway takeoff: track initial takeoff yaw if not in Mission Takeoff
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
1b89f26691
FW PosC: remove hack to force _landed to false if (not)launch_detected, as it is now handles in land detector
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
df1cd4f147
LaunchDetection: code style changes and fix info message.
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
e6e2c889e0
FW Position controller: rename LAUN_ALL_ON to LAUN_DECTN_ON
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
c8129fd902
Launch Detection: add briefs
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
59e5c68cb0
FW Position control: use yaw at launch detection as bearing setpoint during hand launch takeoff
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
b2f21b956c
FW Position control: move LAUN_ALL_ON param to FW Positon Control main params
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
7691e3ff32
FW Land Detector: force to landed if currently landed and in launch process
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
90e1f98c57
FW Launch Detection: refactor state machine and pubish launch_detection_status message
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
35da7f9bc4
Launch Detection: consolidate in single class (use the only existing method, catapult)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
b05878690d
Launch Detector: remove LAUN_CAT_PMAX
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
5161165d85
FW land detector: expose trigger time in parameter (LNDFW_TRIG_TIME)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
71835f57c9
FW land detector: reduce default for LNDFW_VEL_Z_MAX to 1m/s
...
And remove 0.7 factor for airspeed-less flying for the vertical speed threshold.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2022-11-25 18:45:36 +01:00
benjinne
85e9c17a5e
drivers/power_monitor: add TI INA220 driver ( #20504 )
2022-11-23 15:11:29 -05:00
bresch
7888cc8cfd
GyroCalibration: update sensor correction before using it
...
Otherwise, the thermal offset value can be outdated
2022-11-23 13:24:43 -05:00
bresch
dae37803da
TC: erase current calibration when temp cal is completed
2022-11-23 13:24:43 -05:00
Matthias Grob
d81ca65c6f
rc_update: replace RC scaling with interpolate function use
2022-11-23 11:06:44 -05:00
Matthias Grob
9de3af1cbc
Functions: interpolate brackets and spacing
2022-11-23 11:06:44 -05:00
alexklimaj
c7a8589afc
Add ARK PAB Carrier
...
Add ARK_FMU_V6X to RCS netman
Remove arkv6x rc single wire
Fix arkv6x mtd
arkv6x bootloader init all pins to prevent power cycling peripherals on boot
arkv6x don't power cycle sd card on boot
arkv6x add UART4 Telem 4
2022-11-22 18:14:50 -05:00
Daniel Agar
28e1f6790f
Jenkinsfile-hardware: don't run logger on stack check build
...
- stackcheck build is so slow it will trigger the logger watchdog (error fails Jenkins)
2022-11-22 16:07:22 -05:00
David Sidrane
9faa8e23e8
NuttX Upgrade CONFIG_LIB_BOARDCTL->CONFIG_BOARDCTL
2022-11-22 14:30:08 -05:00
David Sidrane
6e78cbe746
NuttX Upgrade CONFIG_LIB_USRWORK->CONFIG_LIBC_USRWORK
2022-11-22 14:30:08 -05:00