Jacob Dahl
94bb1bc731
refactor(drivers/osd/atxxxx): convert params.c to module.yaml
...
Convert 1 parameter file(s) from legacy C format to YAML
module configuration.
2026-03-19 23:21:23 -08:00
Ege Kural and PX4 BuildBot
d317113dc8
CI: enable clang-tidy bugprone-assignment-in-if-condition ( #26580 )
...
* docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io >
CI: enable clang-tidy bugprone-assignment-in-if-condition
Signed-off-by: kuralme <kuralme@protonmail.com >
initialize and immediate assignments made one line
Signed-off-by: kuralme <kuralme@protonmail.com >
* two more initialization fix
Signed-off-by: kuralme <kuralme@protonmail.com >
---------
Signed-off-by: kuralme <kuralme@protonmail.com >
Co-authored-by: PX4BuildBot <bot@px4.io >
2026-02-27 00:04:45 -09:00
Jacob Dahl
ce3e62841f
module_base: remove CRTP template pattern to reduce flash bloat ( #26476 )
...
* module_base: claude rewrite to remove CRTP bloat
* module_base: apply to all drivers/modules
* format
* fix build errors
* fix missing syntax
* remove reference to module.h in files that need module_base.h
* remove old ModuleBase<T>
* add module_base.cpp to px4_protected_layers.cmake
* fix IridiumSBD can_stop()
* fix IridiumSBD.cpp
* clang-tidy: downcast static cast
* get_instance() template accessor, revert clang-tidy global
* rename module_base.h to module.h
* revert changes in zenoh/Kconfig.topics
2026-02-19 15:17:17 +13:00
Hamish Willee and PX4BuildBot
cbf39f5ceb
msg: AirspeedValidated - uorb topic to standard ( #25579 )
...
* AirspeedValidated - uorb topic to standard
* Apply suggestions from code review
* Update msg/versioned/AirspeedValidated.msg
* Fix up links to renamed uORB constants
---------
Co-authored-by: PX4BuildBot <bot@pixhawk.org >
2025-09-25 11:02:02 +02:00
Silvan Fuhrer
d2e4d85bce
Add Altitude Cruise mode
...
-add new NAVIGATION_STATE_ALTITUDE_VOYAGER
-this mode does require manual control to enter
-but you can disable the manual control loss failsafe to continue
flying in case of manual control loss
-for MC: in throttle and yaw are controlled like in Altitude mode,
the tilt is controlled via integrated rate input (similar to Acro,
but with tilt limit)
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2025-09-18 15:50:10 +02:00
Beat Küng
6ce1634dea
fix msp_osd: ASAN raised some buffer overflows when running the unit tests
2025-07-11 10:39:28 +02:00
Peter van der Perk
0fe8738ed9
msp_osd: Add VTX config, stick commands and arming status
...
- Adds MSPv1 rx parsing to fetch VTX config
- Allows to inspect and change VTX channel through CLI
- Forward MSP_RC for stick commands osd
- Forward MSP_STATUS for arming status for PIT and LP mode
2025-06-11 11:32:32 -04:00
Beniamino Pozzan
a2c23acc65
fix (msp_ods): clear buffers before writing and adjust sizes ( #24951 )
...
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com >
2025-06-01 18:33:09 -08:00
Michael Smith and Michael
0f2012ba06
MSP_OSD Update: Add original battery status msg. ( #24872 )
...
Co-authored-by: Michael <mfs3ee@gmail.com >
2025-05-19 16:01:02 -08:00
815a339684
MSP_OSD code changes to support OpenIPC, DJI O3/O4 OSD rendering ( #24695 )
...
* Change MSP_OSD message content and rendering process
* Finish MSP_OSD battery message construct
* Finish MSP_OSD `display message` construct
HOL|DSAM|N
* Finish MSP_FC_VARIANT(0x02) message
BTFL
* Finish MSP_OSD RSSI message
📶 10%
* Finish MSP_OSD GPS message
🛰 10
🌐 000.000000
🌐 00.000000
* Finish MSP_OSD PITCH ROLL message
🔃 -10.5
🔁 13.2
* Change struct filed name
* Change OSD message postion
* Finish MSP_OSD PITCH Altitude message
🔝 15.2
* Finish MSP_OSD distanceToHome message
🏠 5000
* Add Hide/Show option for ALT and homeDist
* Format the code by `make format`
* Clean up stray text
* Remove other commented out dead code
* Change `sprintf()` to `snprintf()`
* Add msg field comment in `display_message` construct
* Init str buffer to 0, Change refresh rate back to 100ms
* Explicit conversion float to double
---------
Co-authored-by: Li.Tianming <Li.Tianming@example.com >
Co-authored-by: Li.Tianming <Li.Tianming>
2025-05-16 11:33:40 -08:00
Marco Hauswirth
5842c991ec
AirspeedSelector: add synthetic airspeed option
...
Synthetic airspeed is calculated based on the thrust setpoint
and the thrust<->airpseed model as configured in the parameters.
2025-05-02 13:37:18 +02:00
Matthias Grob
fd04ece6d4
geo: remove dependency on drv_hrt time driver
2024-10-07 14:24:18 +02:00
Matthias Grob
f2bca92221
Fix duplicate newlines at the end of files
2024-07-19 14:33:36 +02:00
Silvan Fuhrer
33701aa3d5
BatteryStatus: remove voltage_filtered_a
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-07-03 16:41:49 +02:00
Matthias Grob
ece60b6165
msp_osd: reuse existing mode name conversion
...
This saves a bit of flash, keeps the mode names up to date and
works like expected.
2023-12-11 17:29:45 +01:00
Matthias Grob
ef0926d64b
Commander: add position slow mode
2023-12-08 21:17:59 +01:00
Matthias Grob
1c25d65a1e
Add missing newline at the end of files
2023-12-01 13:11:00 -05:00
Daniel Agar
71b9e31005
drivers/osd/msp_osd: use proper EKF status flags instead of solution status bits
2023-10-18 20:55:12 -04:00
Sergei Grichine
f000238987
SensorGps.msg: switch to double precision for lat/lon/alt
...
To match https://github.com/PX4/PX4-GPSDrivers/pull/132 - adding high precision RTK lat/lon/alt components
2023-07-13 07:50:09 +02:00
Eric Katzfey
36877b9efc
Added crosshairs to MSP OSD driver
2023-04-25 13:49:42 -04:00
Chris Seto
6df2b68d72
Clean msp_osd help string and debug message
2022-11-07 21:05:17 -05:00
chris1seto and Chris Seto
079dfdf209
drivers/osd/msp_osd: cleanup and small fixes/additions ( #20399 )
...
- Fixed clearing arming word if flightmode unknown
- Added power and cell voltage elements
- New OSD layout
- Fixed home direction/distance are now correct
Co-authored-by: Chris Seto <chris1seto@gmail.com >
2022-10-14 10:54:14 -04:00
jmackay2
0ee4d89744
drivers/osd/msp_osd: fix uorb_to_msg isnan floating-point check ( #20309 )
2022-09-27 14:41:43 -04:00
Daniel M. Sahu
779e738143
MSP OSD Revision
2022-09-24 18:40:47 -04:00
Daniel Agar
98036f93c5
msp_osd: fix module documentation
2022-09-16 18:54:14 -04:00
chris1seto and Chris Seto
cfb98e44c9
MSP telemetry and OSD support ( #19515 )
...
Co-authored-by: Chris Seto <chris.seto@bossanova.com >
2022-09-16 11:46:08 -04:00
Alessandro Simovic
fb71e7587c
failure_detector: add motor/ESC failure detection
2022-05-12 07:58:56 +02:00
Silvan Fuhrer
f02786d112
Navigator/Commander: make GPS failsafe consitent: switch to Descend also for FW and VTOL
...
- remove GPS failsafe mode
- for VTOL: transition to hover in Descend (unless NAV_FORCE_VT is not set)
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-11-05 12:09:39 +03:00
Peter van der Perk
d5e3e9a7bc
[Kconfig] Decompose Kconfig, now each module has its own Kconfig
...
Which is better for versioning and decomposability
2021-10-07 10:09:01 -04:00
Beat Küng
e644036325
drivers: use updated I2C SPI driver interface
2021-07-08 12:59:35 -04:00
Daniel Agar
bb12fce66c
delete RATTITUDE flight mode
2021-03-09 10:47:00 -05:00
Daniel Agar
02f4ad61ec
I2C/SPI require device type in constructor
2020-04-01 12:24:22 -04:00
Beat Küng
8f3ba81c4a
refactor atxxxx: use driver base class
...
and increase update rate to 20Hz
2020-03-17 23:31:17 -04:00
Daniel Agar
5d33b9e999
delete Outback Challenge (OBC) AUTO_RTGS (datalink loss) and AUTO_RCRECOVER (rc loss)
2020-03-11 22:45:55 -04:00
Beat Küng
3198610f85
src/platforms: move all headers to platforms/common/include/px4_platform_common
...
and remove the px4_ prefix, except for px4_config.h.
command to update includes:
for k in app.h atomic.h cli.h console_buffer.h defines.h getopt.h i2c.h init.h log.h micro_hal.h module.h module_params.h param.h param_macros.h posix.h sem.h sem.hpp shmem.h shutdown.h tasks.h time.h workqueue.h; do for i in $(grep -rl 'include <px4_'$k src platforms boards); do sed -i 's/#include <px4_'$k'/#include <px4_platform_common\/'$k/ $i; done; done
for in $(grep -rl 'include <px4_config.h' src platforms boards); do sed -i 's/#include <px4_config.h/#include <px4_platform_common\/px4_config.h'/ $i; done
Transitional headers for submodules are added (px4_{defines,log,time}.h)
2019-10-30 11:48:47 +01:00
Daniel Agar
26364d44c9
px4_work_queue: command line status output and shutdown empty queues
...
* adds a work_queue systemcmd that will bring a tree view of all active work queues and work items
* WorkQueues now track attached WorkItems and will shutdown when the last WorkItem is detached
2019-10-02 12:23:17 -04:00
Beat Küng
f8e0441e7b
src/platforms/common: move to platforms/common
...
Script to update include paths:
for i in $(grep -rl 'include <px4_work_queue' src platforms); do sed -i 's/#include <px4_work_queue/#include <px4_platform_common\/px4_work_queue/' $i; done
2019-08-30 07:59:44 +02:00
Daniel Agar
203d9327ee
osd/atxxxx move to new WQ and uORB::Subscription
2019-07-29 10:52:33 -04:00
Beat Küng
d8da9db04c
fix atxxxx osd driver: use correct device id
2019-07-16 08:09:22 +02:00
Beat Küng
fcb7372554
atxxxx: fix comment
2019-07-16 08:09:22 +02:00
bresch
ec5da55107
Parameter update - Rename variables in drivers
...
using parameter_update.py script
2019-04-03 15:38:50 +02:00
Beat Küng
ea27a03599
atxxxx: various fixes & cleanup
2019-02-19 10:55:55 +01:00
Beat Küng
7312059c29
atxxxx: refactor to ModuleBase (fixes some uorb subscription problems)
2019-02-19 10:55:55 +01:00
Beat Küng
717e52fa57
osd: rename driver to atxxxx
2019-02-19 10:55:55 +01:00
DanielePettenuzzo
c3f9294b49
omnibus: initial osd driver for omnibus board
2019-02-19 10:55:55 +01:00