Julian Oes
9a96ca14be
Tools: make Python import error more readable
...
The problem with printing the exception was that starting with
Python 3.6 the ImportError is yet another (sub) exception called
ModuleNotFoundError which can't be printed as a string and then triggers
another exception:
```
Traceback (most recent call last):
File "/home/julianoes/src/Firmware/Tools/serial/generate_config.py", line 11, in <module>
import jinja2
ModuleNotFoundError: No module named 'jinja2'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/julianoes/src/Firmware/Tools/serial/generate_config.py", line 13, in <module>
print("Failed to import jinja2: " + e)
TypeError: must be str, not ModuleNotFoundError
```
As per @bkueng's suggestion the easiest is to cast the exception to str
and that way prevent the second exception.
2020-02-14 11:40:05 +01:00
Nuno Marques
7cafbc824e
simulator: add support for multi-distance_sensor instances ( #14143 )
...
* simulator: add support for multi-distance_sensor instances
* update submodule Tools/sitl_gazebo
* sitl_gazebo: add updated iris_obs_avoid; simulator: cleanup distance_sensor topic init
* update submodule Tools/sitl_gazebo
* simulator: delete _dist_pubs uORB::PublicationMulti<distance_sensor_s> in simulator destructor
2020-02-14 11:32:28 +01:00
Julian Oes
abd2bb4eb7
cmake: fix Python 3 libs name
...
This was just wrong. `devel` might be correct on Fedora but no on Ubuntu
:).
2020-02-13 09:20:26 -05:00
Nico van Duijn
55372d7cbe
Parameterize timeout for radio status
2020-02-13 08:52:27 -05:00
BazookaJoe1900
c78572b471
px4io: fix array regs[] size ( #14135 )
...
may cause memory override if _max_controls larger then _max_actuators
2020-02-13 13:01:12 +01:00
Beat Küng
5e3796324c
px4io: fix argv index & avoid empty 'unknown argument: ' warning
2020-02-13 03:49:16 -08:00
Beat Küng
ccf2078c66
nxp/fmurt1062-v1: use hw description methods for timer configuration
2020-02-13 03:49:16 -08:00
Beat Küng
6b1ee7bbe2
io_timer_init.h: avoid using timer_channel, as imxrt does not have it
2020-02-13 03:49:16 -08:00
Beat Küng
ef36d70cb4
px4_arch imxrt: add hw description constexpr util methods
2020-02-13 03:49:16 -08:00
Beat Küng
8cd9afc19a
imxrt io_timer: remove some fields from io_timers_t and split out channel indexes
...
IOMUX uses different enumeration from GPIO pin + port, so we cannot use
.gpio_out, and add a .gpio_portpin.
2020-02-13 03:49:16 -08:00
Beat Küng
d74d094940
nuttx configs: disable nuttx timers which are used for PWM output
...
These are not required, and to be consistent we enforce disabling them now.
2020-02-13 03:49:16 -08:00
Beat Küng
b380278f02
uvify/core: use hw description methods for timer configuration
2020-02-13 03:49:16 -08:00
Beat Küng
40898ba237
px4/fmu-v5x: use hw description methods for timer configuration
2020-02-13 03:49:16 -08:00
Beat Küng
a0bfb7ad8e
px4/fmu-v4pro: use hw description methods for timer configuration
2020-02-13 03:49:16 -08:00
Beat Küng
d53153bb9b
px4/fmu-v3: use hw description methods for timer configuration
2020-02-13 03:49:16 -08:00
Beat Küng
4599c30817
px4/fmu-v2: use hw description methods for timer configuration
2020-02-13 03:49:16 -08:00
Beat Küng
ba4be76bcc
omnibus/f4sd: use hw description methods for timer configuration
2020-02-13 03:49:16 -08:00
Beat Küng
03210f5386
mro/x21: use hw description methods for timer configuration
2020-02-13 03:49:16 -08:00
Beat Küng
bd3fe62fcf
mro/x21-777: use hw description methods for timer configuration
2020-02-13 03:49:16 -08:00
Beat Küng
b3fe4a6691
mro/ctrl-zero-f7: use hw description methods for timer configuration
2020-02-13 03:49:16 -08:00
Beat Küng
451af07472
modalai/fc-v1: use hw description methods for timer configuration
2020-02-13 03:49:16 -08:00
Beat Küng
93106836df
intel/aerofc-v1: use hw description methods for timer configuration
2020-02-13 03:49:16 -08:00
Beat Küng
d2254c2e44
holybro/kakutef7: use hw description methods for timer configuration
2020-02-13 03:49:16 -08:00
Beat Küng
ebbcc01f12
av/x-v1: use hw description methods for timer configuration
2020-02-13 03:49:16 -08:00
Beat Küng
366e2b9dc9
airmind/mindpx-v2: use hw description methods for timer configuration
2020-02-13 03:49:16 -08:00
Beat Küng
6cdf368776
stm32 io_timer: add support for 16 PWM outputs
2020-02-13 03:49:16 -08:00
Beat Küng
2b0f7e514e
io-v2: use hw description methods for timer configuration
2020-02-13 03:49:16 -08:00
Beat Küng
f7637ebf8f
fmu-v5: use hw description methods for timer configuration
2020-02-13 03:49:16 -08:00
Beat Küng
d1e690a036
fmu-v4: use hw description methods for timer configuration
2020-02-13 03:49:16 -08:00
Beat Küng
c01f6811d0
nxp/fmuk66-v3: use hw description methods for timer configuration
2020-02-13 03:49:16 -08:00
Beat Küng
5319a98fec
durandal-v1: use hw description methods for timer configuration
2020-02-13 03:49:16 -08:00
Beat Küng
4fd431b5e5
crazyflie: use hw description methods for timer configuration
2020-02-13 03:49:16 -08:00
Beat Küng
3217b539c6
px4_arch: add hw description constexpr util methods
...
These will be used in the board configurations.
2020-02-13 03:49:16 -08:00
Beat Küng
418262a131
px4_micro_hal: add PX4_MAKE_GPIO_INPUT and PX4_MAKE_GPIO_OUTPUT
...
Instead of using macros defined in the board config.
2020-02-13 03:49:16 -08:00
Beat Küng
685be9b3d1
io pins: avoid using GPIO_GPIOx_OUTPUT, use timer_io_channels instead
...
The whole system now uses timer_io_channels, which will allow the redundant
GPIO_GPIOx_OUTPUT definitions to be removed.
2020-02-13 03:49:16 -08:00
Beat Küng
62b4f3487a
io timer: remove some fields from io_timers_t and split out channel indexes
...
- reduces amount of board configuration required
- removes the cyclic dependency between io_timers_t and timer_io_channels_t
Fixes a bug in the fmuk66-v3 config: the 2. timer has 3 channels associated
not 2.
Fixes a bug in the modelai config: the 2. timer has 4 channels associated.
2020-02-13 03:49:16 -08:00
Beat Küng
8020e82c1c
MultirotorMixer: allow for longer mixer geometry names (16 instead of 8)
2020-02-13 03:49:16 -08:00
Beat Küng
73bd90ddd5
crazyflie: fix PWM channel ordering
...
Channels belonging to a certain timer were not all grouped together.
This is required by the .first_channel_index and .last_channel_index data
members.
We introduce a new mixer geometry to solve the problem.
2020-02-13 03:49:16 -08:00
bresch
17ab617877
ecl update: contains important fixes for accel bias instabilities
2020-02-12 22:34:17 +01:00
David Sidrane
2193cce50b
rddrone-uavcan146:Board Added
2020-02-12 10:29:27 -05:00
David Sidrane
80ac80b5e4
s32k1xx:Add stubbed out chip and arch
2020-02-12 10:29:27 -05:00
Daniel Agar
0d36e5094b
px4_io-v2 add to vscode variants and fix SVD file find
2020-02-10 09:40:39 +01:00
Daniel Agar
8cdbc4c593
px4iofirmware: add PX4IO_PERF define to completely disable perf counters
2020-02-10 09:40:39 +01:00
Daniel Agar
2015cc2b39
logger: restore buffer statistics update
...
- this was accidentally dropped during a rebase of #14050
2020-02-10 00:17:28 -05:00
Daniel Agar
e6d7612997
cmake jlink add path hints for macos
2020-02-09 23:24:44 -05:00
Daniel Agar
c54a09974c
vscode improvements
2020-02-09 23:24:44 -05:00
stmoon
8b273b46aa
fix the encoding problem for subprocess.check_output
2020-02-09 10:12:15 +00:00
Daniel Agar
6c76f99fe5
Update submodule mavlink v2.0 to latest Sat Feb 8 12:38:03 UTC 2020
...
- mavlink v2.0 in PX4/Firmware (8df22541ef
): a62c139225
- mavlink v2.0 current upstream: 1847cbbff5
- Changes: a62c139225...1847cbbff5
2020-02-08 18:28:34 -05:00
Daniel Agar
13a6d57703
Makefile/cmake remove legacy target naming transition helpers
2020-02-08 14:38:56 -05:00
PX4 BuildBot
c6c7f963ac
Update submodule nuttx to latest Sat Feb 8 12:38:09 UTC 2020
...
- nuttx in PX4/Firmware (4b356c91f2be41dfdadb38270fab01ddb337d3c7): 7b36108b54
- nuttx current upstream: fdf1837077
- Changes: 7b36108b54...fdf1837077
fdf1837077 2020-02-07 Peter van der Perk - [BACKPORT] S32K add support for Nxp drone boards (#224 )
f479b26c98 2020-02-07 Peter van der Perk - [BACKPORT] imxrt added missing i2c prescale mask
26dd187034 2020-02-07 Peter van der Perk - [BACKPORT] Kinetis renamed TJA1100 to TJA110X registers
2020-02-08 13:59:26 -05:00