Jukka Laitinen
ec2fb8d470
esc_battery: Link to battery library
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-23 13:57:48 +03:00
Jukka Laitinen
23a31b3dbc
Link cdev with nuttx_fs on nuttx flat build
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-23 13:57:48 +03:00
Jukka Laitinen
7c02a10d5f
Link rc against nuttx_fs in nuttx builds
...
nuttx_fs is not part of prebuild_targets in
protected/kernel builds
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-23 13:57:48 +03:00
Jukka Laitinen
885fe62fec
cdev: Fix deallocating devname in nuttx protected/kernel builds
...
The CDevs always live in kernel side. In kernel the devname
is allocated in kernel heap. Replace "free" with kmm_free on nuttx to
correct the deallocation; this automatically maps to "free" on flat build.
Define __KERNEL__ flag so that the proper nuttx headers are used for building.
TODO: It is fishy in the first place that the devname is allocated in inherited
classes but deleted in the CDev base class. Especially when the devname is
often passed as a constant string (which cannot even be freed) by many drivers.
The allocation and deallocation of devname should be done within the CDev base class
instead.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-23 13:57:48 +03:00
Jukka Laitinen
c2d9797cdb
Don't link sensors module to drivers__device
...
sensors module only works on uORB, it is not a kernel side module
linking directly to the drivers.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-23 13:57:48 +03:00
Jukka Laitinen
597408c7aa
param: Add also a kernel-side kparam module for protected build
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-23 13:57:48 +03:00
Jukka Laitinen
ba19abd1db
uORB: Create separate systemcmds for kernel and userspace in protected build
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-23 13:57:48 +03:00
Jukka Laitinen
1d79f5d134
Add a simple way to launch kernel side modules
...
Add px4_insmod command to start/execute px4 modules in kenel space
in NuttX protected build
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-23 13:57:48 +03:00
Jukka Laitinen
aeeb4e47a5
Fix parameters building for nuttx protected/kernel builds
...
- Don't link to px4_layer
- Don't link to flashparams; flashparams would work only in kernel side
- Add missing link to px4_platform
TODO: Make flashparams to work also in protected/kernel build. This would require using some real
OS interface to the flash
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
fix: bc2f28a68479e4f41017a7d254a263e9e3db5c1e Fix parameters building for nuttx protected/kernel builds
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-23 13:57:48 +03:00
Jukka Laitinen
01d20ba392
link drivers__device to nuttx_karch instead of nuttx_arch in protected build
...
On protected/kernel build the library would be karch.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-23 13:57:48 +03:00
Jukka Laitinen
2a40fcc23c
EKF2: Allocate distance sensor subscriptions as member variables
...
Just create the subscriptions and keep them, instead of
re-creating them continuously
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-23 13:57:37 +03:00
Jukka Laitinen
8d9afdab63
lib/version: Don't link to drivers_board in PROTECTED/KERNEL build
...
The needed version specific things come from px4 layer in userspace
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-23 13:57:31 +03:00
Jukka Laitinen
8497dbb2b5
Add a generic nuttx hrt driver userspace interface
...
This adds a nuttx userspace interface for hrt driver, communicating with
the actual hrt driver upper half via BOARDCTL IOCTLs
This is be used when running PX4 in NuttX protected or kernel builds
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-23 13:57:31 +03:00
Jukka Laitinen
8bb6cc07de
hrt: Add interface functions for latency counters
...
Add interface functions for fetching latency buckets and counters and use
those in perf_counter.cpp. This cleans up the usage of perf counters and
enables implementing kernel-userspace interface for those for
nuttx protected/kernel build.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-23 13:57:31 +03:00
Jukka Laitinen
340c765a14
logger/watchdog: Disable watchdog for NuttX protected/kernel builds
...
It accesses kernel internal structures directly; this needs to be
worked out with some proper userspace-kernel interface
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-23 13:57:31 +03:00
Jukka Laitinen
fceb4eaa3f
uORB: Change cpuload topic int vehicle_cpuload
...
This avoids clashes with NuttX cpuload_s datatype.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-23 13:57:31 +03:00
Jukka Laitinen
fc6b2d8122
loadmon: Stub away cpuload() for nuttx protected build
...
CPU load monitoring needs to be in kernel, and some proper interface
to be used in here
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-23 13:57:31 +03:00
Thomas Debrunner
43ece74fa0
ina238: Do not expose raw adc config to user, make specific to ina238
2021-09-22 10:02:17 +02:00
Thomas Debrunner
b8d0bb44c4
ina23X: Support for ina23X power monitors
2021-09-22 10:02:17 +02:00
Julian Oes
faca2b17d0
camera_trigger: only get param if available
2021-09-17 12:23:30 +02:00
Daniel Agar
7af5a33ff3
commander: don't play failsafe tune if disarmed
2021-09-16 09:17:00 -04:00
Thomas Stauber
2b80a6958a
fix disable airspeed check with negative ASPD_FS_INTEG ( #18186 )
...
* fix disable airspeed check with negative ASPD_FS_INTEG
* improve logic when nav velocity data is not good
* simplify logic. Reset integrator state when the check is not run.
2021-09-14 12:13:56 +02:00
Matthias Grob
e7a90bf367
PositionControl: correct horizontal margin calculation
...
It was using the already reduced vertical thrust to do
the horizontal limitation resulting in no margin.
2021-09-14 10:57:38 +02:00
Matthias Grob
d1f1e02afb
Refactor mode button changes
2021-09-14 09:52:32 +02:00
Claudio Micheli
05d40f40d4
Handle rc toggle mode buttons to initialize flight modes
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2021-09-14 09:52:32 +02:00
Claudio Micheli
c50daae4a3
rc_update: introduce support for toggle buttons via RC channels
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2021-09-14 09:52:32 +02:00
Daniel Agar
e6552370ab
imu/invensense: adjust scheduling dynamically if not using data ready interrupt
2021-09-12 17:34:35 -04:00
Claudio Micheli
fa4fc5f347
esc_report: change esc_temperature field to allow negative values
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2021-09-11 15:14:49 -04:00
David Jablonski
7d7200cf2f
Added yaw to CMD_DO_SET_HOME
2021-09-11 15:14:01 -04:00
Hamish Willee
ce206d992b
RC_FAILS_THR and RC_MAP_FAILSAFE improve parameter description
2021-09-11 15:12:54 -04:00
bresch
f09b34007e
CA: reload CA matrix to newly created CA class properly
...
Also remove the dependency of ActuatorEffectivenessMultirotor
to param update uORB topic; the CA module
sends a "force" parameter when needed
2021-09-11 15:07:49 -04:00
bresch
cf5917d188
control_allocator: restructure param update
...
recompute effectiveness on param change
clear update at the end
2021-09-11 15:07:49 -04:00
David Jablonski
9d974062d0
replay: improved logging for format mismatchs
2021-09-11 14:37:52 -04:00
Beat Küng
1a743e1117
collision_prevention: switch to events
2021-09-11 14:08:41 -04:00
Beat Küng
5b70fd4a1d
airspeed_selector: switch to events
2021-09-11 14:08:41 -04:00
Beat Küng
5fb16e4395
fw_pos_control_l1: switch to events
2021-09-11 14:08:41 -04:00
Beat Küng
0a1ae37c1a
logger: switch to events
2021-09-11 14:08:41 -04:00
Beat Küng
38eca0c64b
logger: start session & log index at 100
...
To avoid leading zeros, as the events interface does not support that (yet)
2021-09-11 14:08:41 -04:00
Beat Küng
b31276a4f5
mavlink: switch to events
2021-09-11 14:08:41 -04:00
Beat Küng
90940c3672
mc_pos_control: switch to events
2021-09-11 14:08:41 -04:00
Beat Küng
79a0edafb5
vehicle_air_data: switch to events
2021-09-11 14:08:41 -04:00
Beat Küng
a8cc2f9ef6
vehicle_imu: switch to events
2021-09-11 14:08:41 -04:00
Beat Küng
acb73fde14
vehicle_magnetometer: switch to events
2021-09-11 14:08:41 -04:00
Beat Küng
f8dc915789
vtol_att_control: switch to events
2021-09-11 14:08:41 -04:00
Beat Küng
1f73294ad7
navigator: switch to events
2021-09-11 14:08:41 -04:00
Beat Küng
5ac43e7236
commander: switch to events
2021-09-11 14:08:41 -04:00
Daniel Agar
8866215d1d
sensors/vehicle_imu: add protections for bad sensor data
...
- check for inconsistent timestamps, zero samples, and numerical issues in online mean
2021-09-11 13:04:46 -04:00
Beat Küng
ae8733c2d4
pwm_input: remove 'test' command and use 'status' instead
2021-09-08 16:10:24 -04:00
Beat Küng
f1aafe83b3
pwm_out: cleanup, remove _output_mask & only update owned channels
...
_pwm_mask reflects the actually owned channels.
2021-09-08 16:10:24 -04:00
Beat Küng
a8e75d174c
boards: remove BOARD_HAS_PWM and use DIRECT_PWM_OUTPUT_CHANNELS
2021-09-08 16:10:24 -04:00