Beat Küng
1851665fab
boards: add new spi+i2c config
...
Chip-select and SPI initialization uses the new config, whereas the drivers
still use the existing defines.
The configuration in board_config.h can be removed after all drivers are
updated.
2020-03-10 10:11:43 -04:00
Daniel Agar
c8211dee28
drv_mixer.h - delete unused MIXERIOCGETOUTPUTCOUNT
2019-11-22 15:00:25 -05: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
Daniel Agar
a475d71ca9
astyle shift module documentation to bottom of files
...
- Astyle chokes on the module description strings, so for now we can keep them near the bottom of each file.
2019-11-02 10:58:47 -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
4192414576
clang-tidy: partially fix cppcoreguidelines-pro-type-reinterpret-cast
2019-10-28 10:50:31 -04:00
Daniel Agar
35398e05ca
perf counter cleanup (mostly intervals)
...
Some of these perf counters were useful during initial development, but realistically aren't needed anymore, some are redundant when we can now see the average interval from `work_queue status` and some of them simply aren't worth the cost at higher rates.
2019-10-21 18:54:17 -04:00
Beat Küng
529da7b33e
MIXERIOCLOADBUF ioctl: remove unnecessary string length restriction
...
mixer.cpp ensures the string is null-terminated (buffer length is 2048).
2019-10-21 09:42:08 +02:00
Beat Küng
a8f6622831
OutputModuleInterface::updateOutputs return bool to control actuator_outputs pub
...
Required for pwm_out_sim: only publish actuator_outputs when we get
actuator_controls. Otherwise lockstep startup does not work.
The issue was there before but hidden, due to a long poll timeout.
Works with HIL too.
2019-10-21 09:42:08 +02:00
Beat Küng
0871802568
mixer_module: add support for test_motor (motor_test CLI command)
2019-10-21 09:42:08 +02:00
Beat Küng
349469cf75
refactor pwm_out_sim: use mixer_module and run on work queue
...
Tested with SITL + HITL
2019-10-21 09:42:08 +02:00
Beat Küng
f3eea85bef
MOT_ORDERING, MC_AIRMODE: move param def to mixer_module and 'Mixer Output' group
2019-10-11 08:14:17 +02:00
Beat Küng
2a492a8e47
fmu: remove unused include and variable
2019-10-11 08:14:17 +02: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
c8e59c4e39
parameter_update use uORB::Subscription consistently
2019-09-29 10:49:03 -04:00
Beat Küng
f0ee0b5d49
MixingOutput: make scheduling configurable
...
And make sure fmu calls MixingOutput::updateSubscriptions on startup even
if no mixer is loaded, so that it gets scheduled.
2019-08-31 10:05:00 -04:00
Beat Küng
a2ebbe9066
pwm_limit: rename to output_limit
...
As there is nothing pwm-specific about it.
2019-08-31 10:05:00 -04:00
Beat Küng
077b229655
MixingOutput: make mixer loading thread-safe
2019-08-31 10:05:00 -04:00
Beat Küng
d3fb610fde
mixer_module: create MixingOutput library and use in fmu
...
This should be a pure refactoring, no functional change.
2019-08-31 10:05:00 -04:00
Beat Küng
0ec6e79a0a
fmu: remove unused _num_failsafe_set
2019-08-31 10:05:00 -04:00
Beat Küng
1d577802cf
fmu: remove unused write() interface
2019-08-31 10:05:00 -04:00
Beat Küng
5b87b81b90
fmu: fix comments & documentation
2019-08-31 10:05:00 -04:00
Daniel Agar
78ef8aab2d
STACK_MAIN increase default 1024 -> 2048
2019-08-30 19:11:51 -07: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
Daniel Agar
b1d59c8817
px4fmu split safety button into new driver
2019-08-24 17:14:17 -04:00
Julien Lecoeur
907b6ccf46
fmu: fix implicit fallthrough
2019-08-21 07:56:20 -07:00
Daniel Agar
7d248e0f45
px4fmu: move to WQ with uORB callback scheduling ( #12224 )
2019-08-20 20:24:12 -04:00
BazookaJoe1900
7be5d15502
px4fmu: cleanup - removed duplicate const MAX_ACTUATORS definition
2019-07-11 18:25:56 -04:00
Roman Bapst
b54a43fccc
UAVCAN driver: support throttle linearization (THR_MLD_FAC parameter)
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2019-07-09 15:10:54 -04:00
CarlOlsson
12fcddd288
fmu: remove unused functions
2019-07-04 22:08:00 -04:00
bresch
34fca5a552
PWM - Remove unused MIXERADDSIMPLE
2019-06-05 16:53:08 +02:00
Daniel Agar
604cdc2b60
drivers/px4fmu initialize all arrays
2019-04-03 18:50:57 -04:00
Daniel Agar
184aa2861a
PX4_ISFINITE use builtin everywhere
2019-02-21 14:56:08 -05:00
DanielePettenuzzo
b12b4e1222
fixes after rebase
2019-02-10 18:07:44 -05:00
DanielePettenuzzo
50f8c7349c
fmu: add mode_4pwm2cap
2019-02-10 18:07:44 -05:00
David Sidrane
928e0140ee
fmu:Add MODE_4PWM1CAP, MODE_5PWM, MODE_5PWM1CAP
...
This extends the Capture support for FMU
CHAN 5 and 6.
2019-02-10 18:07:44 -05:00
Beat Küng
481bfc6308
px4_module: use px4_atomic_t
2019-01-30 10:24:06 -05:00
Alessandro Simovic
fc2fbf5e72
fmu: added missing include
2019-01-28 12:05:36 +01:00
Daniel Agar
60f2a92e3d
replace <cfloat> with <float.h>
...
- <cfloat> isn't available in the NuttX c++ library
2019-01-06 19:20:57 -05:00
Beat Küng
19ccab28bb
mixer: use an enum for airmode
2018-12-13 09:50:07 +01:00
bresch
7cc00f41d2
AirModeYaw - Change airmode type from bool to int
2018-12-13 09:50:07 +01:00
Daniel Agar
d4e06e517a
delete drv_gpio.h, modules/gpio_led, and fmu GPIO ioctls
2018-12-03 16:30:39 +01:00
David Sidrane
99294b2040
fmu:Add Range checking for PWM5 modes
2018-10-23 08:15:28 +02:00
David Sidrane
d3c37e0206
fmu:fix doumantation and pwm 8 useage
2018-09-28 07:48:32 +02:00
David Sidrane
c7edd9f31b
fmu:Add MODE_4PWM1CAP, MODE_5PWM, MODE_5PWM1CAP
...
This extends the Capture support for FMU
CHAN 5 and 6.
2018-09-28 07:48:32 +02:00
David Sidrane
22a65f6c1d
fmu:Fix Safety switch breakage from bc9c25a
...
The update check is on ORB_ID(safety) but the copy
was from ORB_ID(actuator_armed).
2018-09-13 11:21:53 -07:00
David Sidrane
b578419e09
Bug fix fmu hard fault on pwm info
...
A hardfault was happening on:
fmu stop
fmu mode_pwm
pwm info
The _mixer was null and being dereferenced to access the trim
setting that were moved to the mixer from the fmu.
This commit fixes that but making the getter issue a warning
and the setter fail.
2018-09-13 08:45:36 +02:00
David Sidrane
73b9f09920
fmu:Add test mode
2018-09-13 08:45:36 +02:00
Daniel Agar
01595947e5
px4fmu cleanup unnecessary Device CDev usage
2018-08-27 13:14:15 -04:00