Daniel Agar
e93a3a2a3a
ak09916: enable retries and reset perf count
2022-09-01 20:45:20 -04:00
Daniel Agar
f66b5ce204
simulation: ignition bridge allow IMU or pose callbacks to update system time if newer than clock
...
* requires HRT lockstep changes to eliminate offset (PR #20146 )
2022-09-01 20:42:21 -04:00
Daniel Agar
c52f2143d2
posix lockstep remove HRT offset and use full sim time
2022-09-01 20:40:37 -04:00
Daniel Agar
3da0293369
simulator_ignition_bridge: init error handling
2022-09-01 18:54:59 -04:00
Beat Küng
43c5f14aa0
commander: update arming & health protocol, add modes to event hash
2022-09-01 17:07:23 -04:00
Beat Küng
f57321d365
simulator_mavlink: fix esc_status publication
2022-09-01 17:07:23 -04:00
Beat Küng
295caaea60
events/enums.json: remove redundant manual_control_input
2022-09-01 17:07:23 -04:00
Beat Küng
2c96bb3746
px4_parameters.hpp.jinja: explicitly set .name attribute
...
Fixes the compile error on llvm:
mixture of designated and non-designated initializers in the same initializer list is a C99 extension [-Wc99-designator]
2022-09-01 17:07:23 -04:00
Beat Küng
1370cc0d74
log.h: add PRINTF_LOG option for direct printf to reduce dependencies
2022-09-01 17:07:23 -04:00
Beat Küng
a9c1415337
Makefile: allow to set CMAKE_ARGS via CLI
2022-09-01 17:07:23 -04:00
Beat Küng
4e940fab83
perf_counter: remove unused include sys/queue.h
2022-09-01 17:07:23 -04:00
Beat Küng
9eff6dd049
commander: cleanup param value description for COM_POSCTL_NAVL
2022-09-01 17:07:23 -04:00
Beat Küng
0e130eac83
refactor commander: move code inside run() into separate methods
2022-09-01 17:07:23 -04:00
Beat Küng
dcb9b712bb
refactor commander: move vehicle control mode to ModeUtil
2022-09-01 17:07:23 -04:00
Beat Küng
f197c8884d
commander: move esc checks to arming check
2022-09-01 17:07:23 -04:00
Beat Küng
c9037f115b
refactor commander: split out home position
2022-09-01 17:07:23 -04:00
Beat Küng
f17f38197d
commander: move estimator checks to arming check
2022-09-01 17:07:23 -04:00
Beat Küng
cfe3d793bf
commander: move battery handling into arming checks
2022-09-01 17:07:23 -04:00
Daniel Agar
5cb44a521c
ekf2: estimator interface handle sample time with signed integers
...
- this prevents unsigned integer overflow if the timestamp is smaller
than the configured delay (mostly a simulation edge case)
2022-09-01 09:47:29 -04:00
dagar
75f6f22223
[AUTO COMMIT] update change indication
2022-08-31 08:52:30 -04:00
Daniel Agar
1948c5057a
ekf2: handle all time on delayed horizon (except for newest sample checks)
...
- a growing number of samples come into the backend with the time
already delayed (sensor's interrupt setting timestamp sample)
- if the incoming timestamp is already delayed then the new data checks
(relative to latest IMU) can be slightly wrong
- handle almost all timestamps and checks on delayed time horizon,
except for explicit checks of new samples
- isRecent() and isTimedOut() helpers use delayed time
- add new isNewestSampleRecent() used for checking the incoming
timestamp of the incoming (adjusted) data
2022-08-31 08:52:30 -04:00
Jukka Laitinen
d6a4e158cf
Add call-gates to px4_crypto for protected build
...
This adds kernel-userspace interfaces to crypto layer
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2022-08-31 09:48:49 +02:00
Beat Küng
d681782c7f
fix flashfs: find_entry: do not go to the next sector if the CRC is invalid
2022-08-31 09:42:59 +02:00
Beat Küng
4f52cda504
flashfs: ensure no address past the end of a sector is dereferenced
...
As it might result in a hardfault if it's the last flash sector.
2022-08-31 09:42:59 +02:00
Beat Küng
2776b723ea
holybro/kakuteh7: switch to flash-based params
2022-08-31 09:42:59 +02:00
Hamish Willee
e780a583cd
Fix typo follow height: FLW_TGT_HT
2022-08-29 13:25:35 +02:00
Ben Berry
734d3e4aa0
Reverted changes that broke Level Horizon calibration
2022-08-29 09:54:36 +02:00
Beat Küng
afc99749b8
px4/fmu-v5/uavcanv0perith: disable gps to reduce flash usage
2022-08-25 22:02:15 -04:00
Beat Küng
715afd27f5
ROMFS: exclude mixers on v2 & disable mixer command
...
The dynamic mixing is now the default
2022-08-25 22:02:15 -04:00
Beat Küng
f0295cf596
px4/fmu-v2/defconfig: disable PROCFS
...
Reduces flash usage by ~7.3KB
2022-08-25 22:02:15 -04:00
Beat Küng
ad222760dd
platforms: move CONFIG_FS_PROCFS_MAX_TASKS definition to cpuload.h
...
So it's used for both cases
2022-08-25 22:02:15 -04:00
Beat Küng
70ec3493c5
px4/fmu-v5/stackcheck: disable distance sensors to reduce flash
2022-08-25 22:02:15 -04:00
Beat Küng
666b84027d
GyroFFT: disable 4096 for IMU_GYRO_FFT_LEN
...
saves around 10.5KB flash on px4-fmu-v5
2022-08-25 22:02:15 -04:00
Beat Küng
060738cae1
src: avoid use of double precision pow & exp
...
saves around 5KB flash on px4-fmu-v5
2022-08-25 22:02:15 -04:00
Beat Küng
983a9815eb
libevents: update submodule
2022-08-25 22:02:15 -04:00
Beat Küng
4c41934bb4
commander: inline HealthComponentIndex::HealthComponentIndex
...
Saves around 1KB flash
2022-08-25 22:02:15 -04:00
Beat Küng
1c89b0c9c8
commander: use actuator_function for ESC reporting
2022-08-25 22:02:15 -04:00
Beat Küng
13c93db11a
commander: use circuit breaker params directly in arming checks
2022-08-25 22:02:15 -04:00
Beat Küng
4230eee24f
commander: print 'ready for takeoff' to console for sitl after startup
2022-08-25 22:02:15 -04:00
Beat Küng
2fccb576ad
commander: remove unused includes and variables
2022-08-25 22:02:15 -04:00
Beat Küng
dbb814ff24
HealthAndArmingChecks: CONSOLE_PRINT_ARMING_CHECK_EVENT & reduce flash usage
...
- print list of events whenever they change if
CONSOLE_PRINT_ARMING_CHECK_EVENT is set, instead of on each update call
- reduce flash usage by moving out templated code into non-template method
2022-08-25 22:02:15 -04:00
Beat Küng
b2cb164c12
commander: replace health flags with health_report from arming checks
2022-08-25 22:02:15 -04:00
Beat Küng
6d1fb92eb7
commander: rework arming checks to use the events interface
2022-08-25 22:02:15 -04:00
Beat Küng
b4a3597c7d
posix rcS: set PWM_AUX_OUT
...
Prevents a shell error in rc.interface
2022-08-25 22:02:15 -04:00
Beat Küng
b3fe0eeae8
mavlink_events: send reset sequence out immediately on startup
2022-08-25 22:02:15 -04:00
Beat Küng
552d08176f
posix rcS: set MAV_PROTO_VER to 2
...
For SITL it's important that the GCS receives the first events messages
that reset the sequence number, in case the user does not press 'Disconnect'
when restarting SITL.
2022-08-25 22:02:15 -04:00
Beat Küng
c7b64e3c01
commander: check for ack when calling 'commander takeoff'
2022-08-25 22:02:15 -04:00
Beat Küng
406b0bbc86
commander: handle VEHICLE_CMD_RUN_PREARM_CHECKS
2022-08-25 22:02:15 -04:00
Beat Küng
8f9be0541f
HealthAndArmingChecks: add support for legacy mavlink_log reporting
2022-08-25 22:02:15 -04:00
Beat Küng
f23363f88c
HealthAndArmingChecks: add unit tests for Report
2022-08-25 22:02:15 -04:00