Beat Küng
f6d9d77f60
param_notify_changes: set unsaved to true
...
This will make sure that commmander will save the params.
8 years ago
Beat Küng
0e650638e4
param: implement RW locking
...
This allows concurrent read access, which are much more common; reducing
potential lock contention and increasing concurrency.
Taking a lock is expensive, and the reader lock is now even more expensive.
An RCU synchronization scheme would reduce the overhead of the readers to
increasing/decreasing an atomic counter.
Thus this should only be an intermediate step until we move towards RCU.
Tested on SITL & Pixracer.
8 years ago
Beat Küng
b4290b6b52
params: make param_t uint16_t on NuttX
...
param_t is only used as an offset and we have <1000 params, so an uint16_t
is enough.
This saves roughly 1KB of RAM. We only do that on NuttX because normal
integers have better performance in general.
Previously on amd64, this was even 64bits because it was an uintptr_t.
8 years ago
Beat Küng
45af77a543
mavlink parameters: try to send 5 params at once on USB & UDP connections
...
This further speeds up param loading.
On Pixracer via USB, it's possible to send up to 11 at once before the TX
buffer gets full, so there is still enough free bandwidth left.
8 years ago
Beat Küng
2873d973de
mavlink: increase parameter rate from 120 to 300Hz
...
This speeds up parameter loading. Slow links like telemetry are unaffected,
since the mavlink loop runs only with ~100Hz.
Tested on various links, like:
- telemetry link
- pixracer WiFi
- pixracer USB
- SITL
8 years ago
Simone Guscetti
cc153638d2
commander calibration_routines: fix the white led
...
The white led state would continue during calibration, now it return to the previus state
8 years ago
Simone Guscetti
1e4b79034f
commander_helper: Add rgbled function
...
with priority and blink period
8 years ago
Lorenz Meier
2af5d1b929
Mission transfer: Fix retry logic
...
Previously the retry would not actually have been sent if nothing had been received in time.
8 years ago
Lorenz Meier
10dcb90d52
Commander: Store last manual stick setpoints only when actually in manual control mode
8 years ago
David Sidrane
bef24b906e
Removed v4pro cloned v4 inappropriate definitions ( #6808 )
...
* Remove remove safty swtich LED from FMU control
* Differentiate GPIO_BTN_SAFETY_FMU from GPIO_BTN_SAFETY
8 years ago
Lorenz Meier
1a3317ebab
Commander: Do not abort low battery handling due to stick motion.
8 years ago
Lorenz Meier
e9e79cdc9b
Updated optical flow repo
8 years ago
Lorenz Meier
706464d2eb
Land detector: Fix param meta data
8 years ago
Lorenz Meier
e4c012289f
Logger: Sync setpoints and states to same rates
8 years ago
Lorenz Meier
f7e4d8453d
Logger: Drop position_setpoint_triplet to 5 Hz since its not required at such a high rate in analysis
8 years ago
Beat Küng
32cf540159
rgbled: make sure to load the params on startup
8 years ago
Beat Küng
2cf849a520
led_control: fix errors by clang-tidy
8 years ago
Beat Küng
f22fc1c543
led: add breathe mode
8 years ago
Beat Küng
30841ee6bf
send_event: separate initialization and wait until started for 'send_event start_listening'
8 years ago
Beat Küng
1177ec91e5
temperatoru_calibration: reformat comments to use doxygen style
8 years ago
Beat Küng
7cb291aa62
temperature_calibration: use a define for error code -110
8 years ago
Beat Küng
ce8707532e
led/led: change update logic to keep blinking led's in sync
8 years ago
Beat Küng
9e09f70f37
lib/led: make sure to do an orb_copy on startup
8 years ago
Beat Küng
b7f5d92b21
lib/led: add some clarifying comments
8 years ago
Beat Küng
df791cef94
RPi: make sure navio_rgbled works and add it to autostart
8 years ago
Beat Küng
38156d862f
temperature_calibration: add led indication
...
- starts with yellow blinking
- turns led to solid according to progress
- blink red on error, green on success
8 years ago
Beat Küng
1e4fcb6616
cmake configs: add systemcmds/led_control and lib/led where needed
8 years ago
Beat Küng
b1be963083
px4fmu_test rcS: switch to led_control command
8 years ago
Beat Küng
46fef30526
systemcmds: add new command led_control
...
This can be used to test & control the new uorb-based led backend.
8 years ago
Beat Küng
83afc207d4
drv_rgbled.h: remove this, it's not used anymore
8 years ago
Beat Küng
95e8e26ae0
commander: use led_control uorb topic
8 years ago
Beat Küng
8dae94d90a
lib/led: add BREATHE mode (but not implemented yet)
8 years ago
Beat Küng
729486f992
rgbled: switch to new led uorb interface
8 years ago
Beat Küng
7fd6748f34
rgbled_pwm: switch to new led uorb interface
8 years ago
Beat Küng
6debbcb20d
navio: switch to new led uorb interface
8 years ago
Beat Küng
43b98d9a2f
lib/led: add led class with led_control uorb topic
...
This is the new interface to control external LED's (user-facing).
Features:
- Supports maximum N Leds (where the board can define N)
- on/off/blink M times
- Different priorities
- Allows setting a single led or multiple at once
8 years ago
Beat Küng
5ebbbfc6bf
rgbled_pwm: warnx -> PX4_WARN, NULL -> nullptr
8 years ago
Beat Küng
b0439836f6
refactor drv_led.h: rename to drv_board_led.h
...
This makes it clear that it's used to control the board LED's, not external
LED's.
8 years ago
Beat Küng
61c1f6a8ef
rgbled: warnx -> PX4_WARN and NULL -> nullptr
8 years ago
Beat Küng
4b1bbaa114
posix: remove rgbledsim driver which does nothing
...
In addition this is almost a copy of the rgbled driver
8 years ago
Julian Oes
404719953c
commander: fix abs bug / trigger POSCTL both ways
...
The check if stick were touched was only working in one direction (per
axis) because fabsf was used incorrectly.
However, this check is still only a differential check triggered by
fast movement and does not trigger if someone slowly moves a stick to
the side. Also, the sensitivity depends on the rate of the commander
loop and/or the RC update loop. The correct solution would be a proper
filtering and trigger for movement.
8 years ago
Lorenz Meier
fb64403607
Updated jMAVSim
8 years ago
Lorenz Meier
86a8e95017
Update jMAVSim to fix compatibility with recent java versions
8 years ago
David Sidrane
5a66539b36
HOTFIX:Backport Memory corruption due to stack coloring overreach
...
Backport of upstream NuttX PR 264
As discovered by dcabecinhas. This fix assume the 8 byte
alignment options for size stack size or this will overwrite
the first word after TOS
See https://github.com/PX4/Firmware/issues/6613#issuecomment-285869778
8 years ago
Daniel Agar
742d0e53f9
examples NULL to nullptr
8 years ago
Daniel Agar
0611677ee2
segway move to examples
8 years ago
Daniel Agar
89ff9f1fe3
cmake fmu-v3 fix and enable more examples
...
- sync posix_sitl_default and px4fmu-v4pro/v5 with fmu-v3
- fixes #6667
8 years ago
Beat Küng
4811ab6b13
logger: reduce rate of some topics
...
In SITL, logging rate reduces from 70kB/s to 45kB/s.
8 years ago
José Roberto de Souza
f61b830ae9
nuttx-configs: aerofc: Enable CONFIG_STM32_FLASH_WORKAROUND_DATA_CACHE_CORRUPTION_ON_RWW
...
Now AeroFC is making use of both flash memory banks so it need this
workaround.
8 years ago
José Roberto de Souza
03e3877535
nuttx-patches: Add workaround for flash data cache corruption on read-while-write
8 years ago