Phil-Engljaehringer
8a2239f3e8
drivers: Add TLA2528 ADC driver ( #25898 )
...
* tla2528 basic implementation (restarting driver still fails)
* fixed probe function, restarting driver now works
* -added reset call to init
-added return value checks on all important transfers and retry if failed when possible
-removed comments
-removed unnecessary parameters of module
* Introduced initialization-states that can be executed multiple times on failure
* Added one more state s.t. init() only does probing
* added communication error count _comms_errors
* use get() instead of param_find
* changed scheduling interval
* start in reset state. check second byte in probe. add 2 retries to probe function
* add space in front of comments
* jump to reset state when another state fails
* changed SAMPLE_INTERVAL to 10_ms
* added static assert on number of channels in adc_report
2025-11-18 17:30:34 +01:00
fb13b880ce
sensors: add ads7953 adc
...
* sensors: add ads7953 adc
* Update src/drivers/adc/ads7953/ADS7953.h
Co-authored-by: Jacob Dahl <37091262+dakejahl@users.noreply.github.com >
* Implemented changes suggested by review
* Implemented suggested changes
* removed unused variables and moved scope of ch_id
* Activated distance sensor again
* Update msg/AdcReport.msg
Co-authored-by: Hamish Willee <hamishwillee@gmail.com >
* Update ADC report message field comments
* Update ADC msg - fix layout
* update comments
* changed group to Sensors in module.yaml
* created new module subcategory "adc"
* reverted group change in module.yaml
* added module descrption to modules_driver.md
* removed module description in modules_driver.md (autogenerated)
* removed unused variable, changed board_adc publication method to "multi"
* added static assert
---------
Co-authored-by: Jacob Dahl <37091262+dakejahl@users.noreply.github.com >
Co-authored-by: Hamish Willee <hamishwillee@gmail.com >
2025-11-04 17:22:10 +01:00
Niklas Hauser
2aecdfe116
[adc] Refactor ADS1115 driver ( #24428 )
2025-03-05 00:36:39 -09:00
Alex Klimaj
4d1c65d722
boards: new ARK FPV FC ( #23830 )
...
* add new payload power switch (RC_MAP_PAY_SW)
2024-10-30 11:35:35 -04:00
BazookaJoe1900
4d83badba1
fix files tags on the header comments ( #23564 )
2024-09-19 09:25:18 +03:00
Matthias Grob
f2bca92221
Fix duplicate newlines at the end of files
2024-07-19 14:33:36 +02:00
Matthias Grob
1c25d65a1e
Add missing newline at the end of files
2023-12-01 13:11:00 -05:00
David Sidrane
68354dc760
px4 ADC Use device reference_v and dn_fullcount
2023-11-15 11:10:47 -05:00
Jukka Laitinen
2d4d824a98
src/drivers/adc/ads1115: Change adc_report type to PublicationMulti
...
To support several ads1115 modules publishing to different adc_report instances
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2023-09-05 13:09:26 -04:00
Hamish Willee
ea61d74c17
ADS1115: update docs ( #21638 )
2023-06-08 08:55:31 +02:00
Thomas Debrunner
da14650aa2
ads1115: Probe for reset value before init, do not spam console on device lost
2023-05-08 16:47:34 +02:00
Daniel Agar
45912066d2
fix copyright header year range
2023-01-14 09:16:16 -05:00
Jukka Laitinen
f8f1213841
board_adc: Small fix for printf formatter
...
Print sizeof type with %zu to be compatible with 64 bit targets, where it is unsigned long
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-08-25 07:50:23 +02:00
Raffaele Rossi
1e55b69fdb
ADS1115 ADC: start internal ADC as well ( #19880 )
...
But only publish the system power.
2022-07-15 08:15:26 +02:00
Beat Küng
28c27f1b9a
px4/fmu-v5x: add ADC_ADS1115_EN param to use external ADC
2022-02-09 16:54:45 -05: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
Peter van der Perk
4044fbd4a0
Initial Kconfig implementation in CMake
...
Used fmuk66-v3 as test case
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
David Sidrane
824dbce941
drivers:ADC Use inttypes
2021-06-16 17:07:47 +02:00
David Sidrane
84dd8839a2
i2c_spi_buses:Track NuttX change to getopts avoid name collision
...
NuttX #defined optarg and getopt to move to TLS. This fixes the
name collision.
2021-06-16 17:07:47 +02:00
Beat Küng
ade3871bee
adc: add support for multiple sensor voltage channels
2021-01-15 10:57:20 -05:00
Beat Küng
e2337a34eb
system_power: add comp_5v_valid and can1_gps1_5v_valid
...
And fill it in from the v5x GPIO expander.
2021-01-15 10:57:20 -05:00
SalimTerryLi
28a6e82698
Introduce new generic ADC driver for ADS1115 chip ( #14437 )
2020-09-14 11:03:40 -04:00
SalimTerryLi
c037dbef21
Rename and move src/drivers/adc to src/drivers/adc/board_adc
2020-09-07 23:09:20 -04:00
David Sidrane
0139acacfd
adc:Restore ADC test's usefulness
2020-05-23 11:43:04 -04:00
rfu
8787780de4
some printf format and conversion fixes
2020-05-04 09:49:23 +02:00
Daniel Agar
d89b7804f7
boards: initial CUAV X7Pro support (not complete)
...
- this is booting and functional, but still missing a few things
- still needs full PWM output, verification of all sensor rotations and IO, etc
2020-05-01 20:59:28 -04:00
SalimTerryLi
dc8e775d8f
ADC: replace ioctl with uorb message ( #14087 )
2020-03-20 11:23:32 +01:00
Timothy Scott
e9890d01d9
Fixed digital power module validity check
2020-01-16 10:43:23 -05:00
Daniel Agar
b7a63bfdf3
drivers/adc: move to ModuleBase and split out header
2020-01-07 14:04:13 -05:00
Daniel Agar
d19f18d40b
linux boards (ocpoc, bbblue, navio2) replace custom adc drivers with simple px4_arch implementation
2020-01-07 14:04:13 -05:00
Daniel Agar
e48b8b1abe
drivers/adc: start WQ cycle on init
2019-12-31 13:42:42 +01:00
David Sidrane
e847698c9f
PX4 System changes Supporting STM32H7
...
stm32:ToneAlarmInterfacePWM TIM15-TIM17 have a BDTR Register
common:board_crashdump Add H7 support
stm32/board_mcu_version:Support H7
PX4 ADC:Use 32 interface and resoution abstraction
Added PX4 stm32h7 ADC driver
stm32h7:adc fix ADC ready check
fmu: handle BOARD_HAS_PWM==5
cmake: improve error handling for NuttX olddefconfig failures
WorkQueueManager:Quiet loadmon stack warning
camera_trigger:GPIO support < 6 GPIO
Adjust stack sizes (under hw stack check)
PX4 System changes Supporting STM32H7 PX4IO Driver
aerotenna_ocpoc:ADC add px4_arch_adc_dn_fullcount
init.cmake:Track Upstream change needing Make.def at config time
PX4 System changes Supporting STM32H7
NuttX CMakeLists.txt Track upstream changes
Common board_crashdump add header and px4 config
NuttX simplify callinb make libapps
Use UINT32_MAX for error return
drivers:uavcannode NuttX chip is now hardware
drivers:uavcanesc NuttX chip is now hardware
px4io:Avoid Race on AP to PX4 IO upgrade
2019-11-16 11:43:42 +01: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
Daniel Agar
030e22c724
adc test shorten
2019-09-29 20:29:34 -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
Beat Küng
f3fccf53f6
src/drivers/{kinetis,stm32}: move to arch-specific directories
2019-08-30 07:59:44 +02:00
Beat Küng
1cb6c36a00
adc: refactor into arch-specific directories
2019-08-30 07:59:44 +02:00