307 Commits

Author SHA1 Message Date
Daniel Agar
e731fcdbc0
sensors (accel/gyro/mag) determine if external with device id 2022-01-10 10:31:07 -05:00
Matthias Grob
fabf865411 Use backwards compatible manual_control_setpoint instead of manual_control_input 2021-11-09 16:05:25 +01:00
Julian Oes
6a6b8d49fc msg: re-use manual_control_input in setpoint
This way we avoid duplication between manual_control_input and
manual_control_setpoint.
2021-11-09 16:05:25 +01:00
Peter van der Perk
b7f03cec5e [Kconfig] Add FMU-V5 and PX4-IOv2 px4board config 2021-10-07 10:09:01 -04: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
7a747b43f6 Initial boardconfig working with FMUK66 2021-10-07 10:09:01 -04:00
Daniel Agar
883624d915 lib/geo: move from ecl 2021-07-15 10:38:24 -04:00
Daniel Agar
fedf8f0266 world_magnetic_model: move from ecl 2021-07-15 10:38:24 -04:00
Daniel Agar
dbaed99626
cmake remove git_ecl target 2021-07-13 10:03:06 -04:00
David Sidrane
eea1477e80 FakeImu:Use inttypes 2021-06-16 17:07:47 +02:00
Daniel Agar
561cfca4f9 fake_imu: add fake ESC status for testing dynamic notch filters 2021-05-31 10:26:45 -04:00
Daniel Agar
c3884b5bc1
fake_imu (formally fake_gyro) updates for testing gyro filtering
- fake_imu now publishes sine sweeps over 10 seconds
 - accel is also published so that fake IMU can be selected when the only option
2021-05-17 20:26:25 -04:00
Daniel Agar
6a4c589c62 examples/work_item: add ModuleParams and more uORB::Subscription example usage 2021-04-13 14:23:36 -04:00
Daniel Agar
19de1e57e3 gyro_fft promote to modules and include on all boards 2021-03-05 10:56:54 -05:00
Daniel Agar
00b3b3678b sensors/vehicle_angular_velocity: gyro dynamic notch filters updated from onboard FFT 2021-03-05 10:56:54 -05:00
Daniel Agar
414f9f81d9
move fake GPS to standalone module 2021-02-20 14:13:36 -05:00
PX4 BuildBot
df66c8580c Update submodule CMSIS_5 to latest Sat Feb 6 00:38:34 UTC 2021
- CMSIS_5 in PX4/Firmware (6f03b880f05d0a1d4015f5040054b61012725794): 4ed5730787
    - CMSIS_5 current upstream: 2028526265
    - Changes: 4ed5730787...2028526265

    202852626 2021-02-01 Christopher Seidl - Updated CMSIS-Pack documentation
2021-02-05 20:18:25 -05:00
Daniel Agar
967d35a6b6
rate limit most parameter_update subscriptions
- parameter updates can be quite expensive because they trigger nearly all modules to reload all of their parameters immediately
 - limit modules from updating faster than once per second
2021-01-10 21:09:15 -05:00
Daniel Agar
d14deb0e5a FFT add simple median filter 2020-11-02 12:58:46 -05:00
Daniel Agar
614a0ac2a2
experimental/gyro_fft: improve peak detection, add start parameter
- add new parameter `IMU_GYRO_FFT_EN` to start
 - add 75% overlap in buffer to increase FFT update rate
 - space out FFT calls (no more than 1 per cycle)
 - increase `IMU_GYRO_FFT_MIN` default
 - decrease main stack usage
2020-10-25 23:48:21 -04:00
Daniel Agar
f557fa46e8
gyro_fft improve peak finding, parameterize min/max frequencies, remove debug logging
- add min/max frequency parameters for peak detection (IMU_GYRO_FFT_MIN, IMU_GYRO_FFT_MAX)
 - remove full FFT debug logging
 - fix Quinn's second estimator
 - log sensor_gyro_fft
 - fake_gyro use PX4Gyroscope
2020-10-12 15:19:39 -04:00
PX4 BuildBot
6097ea3fb3 Update submodule CMSIS_5 to latest Sat Oct 10 16:43:35 UTC 2020
- CMSIS_5 in PX4/Firmware (7fc24ccb599b7b890983ee58ab82fcef502851bc): 03a697980f
    - CMSIS_5 current upstream: 4ed5730787
    - Changes: 03a697980f...4ed5730787

    4ed573078 2020-05-28 Jonatan Antoni - Docs: Updated generated documentation for CMSIS-Zone 1.1.0
c5ff98f52 2020-04-23 Jonatan Antoni - Utilities: Readded PackChk and SVDConv (not using Git-LFS) - PackChk 1.3.89 - SVDConv 3.3.35
5c1547f5d 2020-04-22 Jonatan Antoni - Removed Git-LFS filter from .gitattributes
8be87e257 2020-04-09 Jonatan Antoni - Pack: Purged pre-built library binaries from repo.
a65b7c9a3 2020-04-09 Jonatan Antoni - Bump version and docs for release.
71cca2783 2020-04-09 Jonatan Antoni - Merge branch 'develop/upstream' into master/upstream
4a65d8801 2020-02-26 Jonatan Antoni - Updated published documentation: - Added CMSIS-Build 0.1.1 - Updated CMSIS logo - Reduced nav bar component names
79bc1e065 2019-12-13 Jonatan Antoni - Doc: Update generated documentation for - CMSIS-Zone 1.0.0 - CMSIS-Pack 1.6.1
b5f0603d6 2019-07-10 Jonatan Antoni - Pack: Fixup to version history.
c314b9028 2019-07-10 Jonatan Antoni - docs: Updated generated docs for release 5.6.0
288a1ae6a 2019-07-10 Jonatan Antoni - Merge branch 'develop/upstream' into master/upstream
ca8124215 2019-03-21 Jonatan Antoni - Fixed generated documentation for 5.5.1 - Added general version history.
382cb5993 2019-03-21 Jonatan Antoni - DoxyGen: Fixed version and history of CMSIS 5.5.1 in documentation overview.
08ffc1624 2019-03-20 Jonatan Antoni - Generated documentation for release 5.5.1.
decf9e99d 2019-03-20 Jonatan Antoni - Merge branch 'develop/upstream' into master/upstream
a82c293bf 2019-03-18 Jonatan Antoni - Updated generated documentation.
3c188c8c1 2019-03-18 Jonatan Antoni - Merge branch 'develop/upstream' into master/upstream
607099e7b 2019-03-16 Jonatan Antoni - Device: Fixed device files for Armv8.1-MML
11b17447c 2019-03-15 Joachim Krech - WiFi api definition: file doc added
7a3ff1bba 2019-03-15 Jonatan Antoni - Docs: Updated generated documentation for 5.5.0
9510c40cd 2019-03-15 Jonatan Antoni - Merge branch 'develop/upstream' into master/upstream
cb3fb9a70 2018-09-03 Jonatan Antoni - Revert "Changed 'Serial Viewer Output' to 'Serial Wire Output'"
85f971366 2018-08-23 Florian Behrens - Changed 'Serial Viewer Output' to 'Serial Wire Output'
74b68d2b5 2018-08-23 Robert Rostohar - Merge pull request #411 from ARM-software/revert-410-fix_define
f568cf95d 2018-08-23 Robert Rostohar - Revert "Fix define around EvrRtxKernelInitialized"
cb270c6a7 2018-08-23 Robert Rostohar - Merge pull request #410 from c1728p9/fix_define
707444066 2018-08-22 Russ Butler - Fix define around EvrRtxKernelInitialized
0b5217650 2018-08-01 Jonatan Antoni - Docs: Updated generated documentation for 5.4.0
d8515eb5a 2018-08-01 Jonatan Antoni - Merge branch 'develop/upstream' into master/upstream
49ac527aa 2018-02-22 Jonatan Antoni - Doxygen: Fixed broken link from general revision history to Core(A) history.
ca68d1caa 2018-02-22 Jonatan Antoni - Utilities: Fixed gen_pack.bat to copy genmodel (Javadoc) as part of Zone documentation.
d3be1443d 2018-02-22 Jonatan Antoni - Docs: Updated documentation for release 5.3.0.
1e50f4fb3 2018-02-22 Jonatan Antoni - Merge remote-tracking branch 'remotes/upstream/develop' into master/upstream
9c4c35760 2018-01-23 Jonatan Antoni - Doc: Adding temporary redirect for CMSIS-NN to develop preview on keil.com. This redirect is going to be overwritten with the full documentation at next full release.
80cc44bba 2017-11-16 Jonatan Antoni - Pack: Added release date for 5.2.0
a7da04c26 2017-11-16 Jonatan Antoni - Updated generated documentation for release.
72db7faf6 2017-11-16 Jonatan Antoni - Merge branch 'develop/upstream' into master/upstream
7cd3d4765 2017-09-19 Jonatan Antoni - Updated generated documentation for release 5.1.1
cbdfdd09f 2017-09-19 Jonatan Antoni - Fixed version history for release 5.1.1
8e8312d2b 2017-08-18 Vladimir Umek - RTX5: latest libraries (IAR)
4d4b37265 2017-08-18 Robert Rostohar - RTX5: latest libraries (ARM/GCC)
84e191728 2017-08-18 Robert Rostohar - RTX5: Corrected SysTick and SVC Interrupt Priority for Cortex-M.
c5d6156df 2017-08-04 Jonatan Antoni - CMSIS 5.1.0 online documentation
d92f477be 2017-08-04 Jonatan Antoni - Merge branch 'develop' for release 5.1.0
8a1d9d6ee 2017-02-08 Joachim Krech - updating prebuild documentation for 5.0.1
de96b11d4 2017-02-08 Joachim Krech - Merge branch 'develop' for version 5.0.1
6c0e0c157 2016-11-11 Joachim Krech - CMSIS 5.0.0 online documentation
2020-10-10 13:25:12 -04:00
Daniel Agar
8ee0c62e57
examples: add Gyro FFT using CMSIS 5 on Cortex-m (#15104)
- this is a work in progress experiment to compute real time FFTs from raw gyro FIFO data on Cortex-m hardware (stm32f4/f7/h7, etc)
2020-10-02 11:47:27 -04:00
Daniel Agar
2c450280d2 examples/uuv_example_app: replace sensor_combined with vehicle_acceleration 2020-08-23 17:38:27 -04:00
Daniel Agar
e8a074dc03 examples/px4_simple_app: replace sensor_combined with vehicle_acceleration 2020-08-23 17:38:27 -04:00
Daniel Agar
27f23ac290 move initial sensor priority to parameters and purge ORB_PRIORITY
- CAL_ACCx_EN -> CAL_ACCx_PRIO
 - CAL_GYROx_EN -> CAL_GYROx_PRIO
 - CAL_MAGx_EN -> CAL_MAGx_PRIO
2020-08-21 10:12:13 -04:00
Daniel Agar
1191a0efe6
Update ecl to geo_lookup, SymPy covariance, bugfixes
Co-authored-by: Matthias Grob <maetugr@gmail.com>
2020-08-02 12:26:48 -04:00
Matthias Grob
e9eae1bd76 Refactor: Name manual_control_setpoint the same way everywhere 2020-06-22 12:06:27 -04:00
Daniel Agar
0a63df25a6 create fake_magnetometer "driver" to publish magnetic field in body frame
- this can be helpful for orienting new unknown magnetometers
 - requires attitude and GPS position
2020-06-18 16:21:30 -04:00
Daniel Agar
f55ed0992c
accel and gyro calibration refactor and cleanup
- remove all remaining IOCTLs for accel and gyro and handle all calibration entirely in sensors module with parameters
 - sensor_accel and sensor_gyro are now always raw sensor data
 - calibration procedures no longer need to first clear existing values before starting
 - temperature calibration (TC) remove all scale (SCL) parameters
    - gyro and baro scale are completely unused
    - regular accel calibration scale can be used (CAL_ACC*_xSCALE) instead of TC scale
2020-06-17 22:50:09 -04:00
Daniel Agar
ad559a66a1 examples: add simple work_item example module 2020-04-06 09:43:55 -04:00
Daniel Agar
4698a09b98 delete unmaintained outback challenge (OBC) bottle drop example 2020-03-05 14:09:31 -05:00
Matthias Grob
f90d3671c0 vehicle_attitude_setpoint: get rid of unused q_d_valid flag 2020-02-27 09:17:52 +01:00
Hamish Willee
84f3cb74aa px4_simple_app: UPdate copyright to last modification 2020-01-15 08:14:43 +01:00
Daniel Agar
de4f594937 DriverFramework purge
The bulk of this change was tightly coupled and needed to be deleted in one pass. Some of the smaller changes were things that broke as a result of the initial purge and subsequently fixed by further eradicating unnecessary platform differences. Finally, I deleted any dead code I came across in the related files I touched while going through everything.

 - DriverFramework (src/lib/DriverFramework submodule) completely removed
 - added dspal submodule in qurt platform (was brought in via DriverFramework)
 - all df wrapper drivers removed
 - all boards using df wrapper drivers updated to use in tree equivalents
 - unused empty arch/board.h on posix and qurt removed
 - unused IOCTLs removed (pub block, priv, etc)
 - Integrator delete methods only used from df wrapper drivers
 - commander: sensor calibration use "NuttX version" everywhere for now
 - sensors: update to px4_{open, read, close} instead of DevMgr wrapper (adc open for analog differential pressure)
 - battery_status: update to px4_{open, read, close} instead of DevMgr wrapper (adc open for analog differential pressure)
 - cdev cleanup conflicting typedefs and names with actual OS (pollevent_t, etc)
 - load_mon and top remove from linux boards (unused)
 - delete unused PX4_MAIN_FUNCTION
 - delete unused getreg32 macro
 - delete unused SIOCDEVPRIVATE define
 - named each platform tasks consistently
 - posix list_devices and list_topics removed (list_files now shows all virtual files)
2020-01-13 14:07:03 -05:00
Daniel Agar
84fe64b1c2
create new multicopter rate controller module (mc_rate_control) split out of mc_att_control 2019-11-19 17:03:11 -05: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
6f1f5e0325 clang-tidy: partially fix readability-redundant-declaration 2019-10-28 10:50:31 -04:00
Daniel Agar
c8e59c4e39 parameter_update use uORB::Subscription consistently 2019-09-29 10:49:03 -04:00
Daniel Agar
0486d69240 delete obsolete segway example 2019-09-28 15:05:50 -04:00
Daniel Agar
78ef8aab2d STACK_MAIN increase default 1024 -> 2048 2019-08-30 19:11:51 -07:00
Beat Küng
43fdcd7876 px4_middleware: remove that header and move px4::init to px4_init.h
delete include:
for i in $(grep -rl 'px4_middleware.h' src platforms); do sed -i '/#include <px4_middleware.h/d' $i; done
2019-08-30 07:59:44 +02:00
Daniel Agar
2ad12d7977
sensors: create vehicle_angular_velocity module (#12596)
* split out filtered sensor_gyro aggregation from mc_att_control and move to wq:rate_ctrl
2019-08-06 12:55:25 -04:00
Daniel Agar
77694183b2 delete position_estimator_inav 2019-08-02 17:38:28 -04:00
Daniel Agar
79d4c09d59
uORB::Publication simplify and cleanup
- base class is now template
 - drop linked list
 - virtualization no longer required
2019-06-12 08:48:19 -04:00
Daniel Agar
2c63e335e9 uORB::Subscription subscribe directly to uORB device node object 2019-06-03 17:06:21 -04:00
Daniel Agar
739a02022b position_estimator_inav: move to examples (start deprecation) 2019-01-27 22:15:39 +01:00
Daniel Agar
2ffb49b734 delete px4_includes.h header and update boards/ to use syslog 2019-01-23 18:25:18 -05:00
Daniel Agar
67e5986c9b delete obsolete examples/subscriber 2019-01-23 18:25:18 -05:00
Daniel Agar
693ee4808a delete obsolete examples/publisher 2019-01-23 18:25:18 -05:00