Mara Bos
10c20b38ad
Fix many format strings.
...
Fixes these invalid format strings:
- A `%d` for a pointer (replaced it by `%p`)
- A 0x%08x (and a 0x%0x8!) for a pointer (replaced by %p)
- 2 cases of `%d` for a `ssize_t` (replaced it by `%zi`)
- 1 case of a %u for an `int` (replaced by %i)
- 3 cases of %d for a `long` (replaced by %ld)
- 19 cases of `%d`, `%i`, `%u` or `%lu` for a `size_t` (replaced it by `%zu`)
- An unused formatting argument (removed it)
- A missing `%d` (added it)
- A missing `%s` (added it)
- 2 cases of `%llu` for a `uint64_t` (replaced it by `"%" PRIu64`)
- 6 cases of giving a string directly as format string (replaced it by `("%s", string)`)
- 2 cases of %*-s, which should probably have been %-*s.
(Looks like NuttX accepts (the invalid) %*-s, but other platforms don't.)
- A %04x for a `uint32_t` (replaced by "%04" PRIx32)
6 years ago
Beat Küng
dc62454f0a
px4fmu-v2_default: disable sf1xx distance sensor
...
Due to limited flash space
6 years ago
Beat Küng
db7cbf1770
aerofc, crazyflie, omnibus: remove vtol module
6 years ago
Beat Küng
86673ecfcb
navigator: remove dependency on vtol module by using the C param API
...
This is the quickest way to achieve the desired result.
Long-term we might do something else.
6 years ago
Beat Küng
ee5c18a737
SDLOG_MISSION param: update description
6 years ago
Beat Küng
c5d8abff00
log_writer_file: rename argument to avoid shadowing warning
6 years ago
Beat Küng
2642915a76
logger: enable mission log by default
...
To get it field-tested. This can be reverted for a release...
6 years ago
Beat Küng
3a462c2ba7
refactor logger: move debug buffer printf into separate method (DBGPRINT)
6 years ago
Beat Küng
234ec7f2a2
logger: add mission log to frontend, configurable via SDLOG_MISSION
...
- mission logs are stored in a separate directory mission_log
- It's disabled by default
- Does not increase RAM usage if disabled (if enabled, only 300 bytes)
- Log rotate does not apply to the mission logs
6 years ago
Beat Küng
4fc1c5c4f5
LogWriterFile: split long header messages that exceed the buffer length
...
Some message formats are longer than the 300 bytes. We can split the writes
because we have to wait until they are written anyway.
6 years ago
Beat Küng
28ac7679e0
logger: change message id from uint16_t to uint8_t
...
256 subscriptions are enough for now.
Reduces RAM usage by 300 bytes.
6 years ago
Beat Küng
d6e820fe67
logger: add mission file to LogWriterFile backend
...
Not used yet, it should not affect anything, except for slight RAM
increase.
6 years ago
Beat Küng
b86c7d2e8f
Logger: only write subscribed topic format definitions
...
Previously the formats of all known uorb messages were written.
- reduces header size by about 13KB
- reduce ulog_message_format_s size to reduce required stack size.
Largest message format is about 1000 bytes.
6 years ago
Beat Küng
0745ba9052
refactor logger: move some code inside run() into separate methods
6 years ago
Beat Küng
5eafa1b34b
refactor logger: move some independent methods into separate util file
6 years ago
Beat Küng
b65871b433
fix reposition: set acceptance radius
...
Previously the acceptance radius was 0, so the FlightTaskAutoLine was
randomly changing yaw and sometimes going into a random direction.
There is still something else wrong in there, but avoids the reposition
problem.
6 years ago
David Sidrane
3e9e55150d
px4nucleoF767ZI-v1: use board_hardfault_init API
6 years ago
David Sidrane
0658d4e2e5
px4fmu-v4pro:use board_hardfault_init API
6 years ago
David Sidrane
161288ef71
px4fmu-v4:use board_hardfault_init API
6 years ago
David Sidrane
0cd2d8f4aa
px4fmu-v2:use board_hardfault_init API
6 years ago
David Sidrane
9b4b831b22
px4-same70xplained-v1:Does not use hardfault_log
6 years ago
David Sidrane
4cda5513b9
omnibus-f4sd:use board_hardfault_init API and indicate on BLUE LED
6 years ago
David Sidrane
e0431911f9
nxphlite-v3:No Support for BBSRAM nor hardfault
6 years ago
David Sidrane
4353476b01
mindpx-v2:use board_hardfault_init API
6 years ago
David Sidrane
365c5d3ea7
crazyflie:use board_hardfault_init API
6 years ago
David Sidrane
082aa81ee9
av-x-v1:use board_hardfault_init API
6 years ago
David Sidrane
1e35fe189a
auav-x21:use board_hardfault_init API
6 years ago
David Sidrane
1856c4760d
aerocore2:Make sure errors light LED
6 years ago
David Sidrane
68ce4cf11d
aerofc-v1:Does not support bbsram no board_hardfault_init
6 years ago
David Sidrane
177251cc21
px4fmu-v5:use common board_hardfault_init
6 years ago
David Sidrane
74695f3cfb
stm32:add stm32 and stm32f7 board_hardfault_init
6 years ago
David Sidrane
2f6a297f3d
board_common:Add API for hardfault init
6 years ago
Beat Küng
294af5daad
LowPassFilter2p: fix _cutoff_freq <= 0 (disabled filter)
...
If the filter was disabled, the apply() would always return 0.
6 years ago
Daniele Pettenuzzo
d2e2b5e8ce
add pmw3901 optical flow support for fmu-v5 ( #10750 )
6 years ago
David Sidrane
99294b2040
fmu:Add Range checking for PWM5 modes
6 years ago
Daniel Agar
d832b4fe28
rc.mavlink AV-X reduce companion baudrate
6 years ago
CarlOlsson
d0c69efff9
gpio_led: fixed typo
6 years ago
CarlOlsson
6499a4ffc7
board_config: fixed typo
6 years ago
CarlOlsson
f15365fe97
process_sensor_data.py: update description
6 years ago
CarlOlsson
db4d79358a
commander: fix typo
6 years ago
CarlOlsson
b85710b194
ekf2: fix typo
6 years ago
CarlOlsson
02a3528f24
commander: fix typo
6 years ago
CarlOlsson
c826140c2b
commander: update comment to make post takeoff ekf quality test logic more clear
6 years ago
CarlOlsson
cd382d8874
voted_sensors_update: fix typo
6 years ago
CarlOlsson
7b0e0de43c
ekf2: fix typo
6 years ago
CarlOlsson
6647471238
ekf2: increase maximum of EKF2_MAG_YAWLIM. This is needed on some fw platforms
...
in order to not constantly switch mag fusion mode in gusty winds.
6 years ago
CarlOlsson
82106cc4c1
fw_l1_control: add underscores to perf for consistency
6 years ago
CarlOlsson
e6d378c9aa
navigator: fix typo
6 years ago
Daniel Agar
526fa9e9dd
uORB remove unnecessary priority from each subscriber
6 years ago
Daniel Agar
297c1b777b
mathlib LowPassFilter2p sync with LowPassFilter2pVector3f
6 years ago