David Sidrane
4fe29e5246
Fiexs frsky telemetry stack warning
...
WARN [load_mon] frsky_telemetry low on stack! (164 bytes left)
Added 168 bytes = 160 needed + 8 bytes for head room
2017-03-18 10:54:49 +01:00
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
2017-03-13 07:26:36 -10:00
Beat Küng
32cf540159
rgbled: make sure to load the params on startup
2017-03-12 00:08:35 +01:00
Beat Küng
f22fc1c543
led: add breathe mode
2017-03-12 00:08:35 +01:00
Beat Küng
df791cef94
RPi: make sure navio_rgbled works and add it to autostart
2017-03-12 00:08:35 +01:00
Beat Küng
83afc207d4
drv_rgbled.h: remove this, it's not used anymore
2017-03-12 00:08:35 +01:00
Beat Küng
729486f992
rgbled: switch to new led uorb interface
2017-03-12 00:08:35 +01:00
Beat Küng
7fd6748f34
rgbled_pwm: switch to new led uorb interface
2017-03-12 00:08:35 +01:00
Beat Küng
6debbcb20d
navio: switch to new led uorb interface
2017-03-12 00:08:35 +01:00
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
2017-03-12 00:08:35 +01:00
Beat Küng
5ebbbfc6bf
rgbled_pwm: warnx -> PX4_WARN, NULL -> nullptr
2017-03-12 00:08:35 +01:00
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.
2017-03-12 00:08:35 +01:00
Beat Küng
61c1f6a8ef
rgbled: warnx -> PX4_WARN and NULL -> nullptr
2017-03-12 00:08:35 +01:00
José Roberto de Souza
07921c9f3a
aerofc: Use ram_flash dataman backend
2017-03-10 11:31:07 +01:00
Beat Küng
019386a5a0
bmi160: remove debug output
2017-03-10 11:28:41 +01:00
Michael Schaeuble
06c5cb506a
Enable ICM 20608 on Pixhawk Pro
2017-03-08 04:18:48 +08:00
Mathieu Bresciani
d67b6efda3
PixHawk Pro: Update mag IDs to have external higher priority
2017-03-07 23:43:28 +08:00
zthorson
b8e72789cd
px4fmu-v4: Formatting fixes
...
Signed-off-by: zthorson <zachthorson@gmail.com >
2017-03-05 11:42:27 +08:00
zthorson
a716b105f5
px4fmu-v4: Only close down fmu drivers on reset if they weren't running
...
Signed-off-by: zthorson <zachthorson@gmail.com >
2017-03-05 11:42:27 +08:00
zthorson
63857c6afc
px4fmu-v4: Fix for HIL Unable to Set Control Surfaces. Fixes #5651
...
The sensor_rest command added to the startup script for px4fmu_v4 hardware
was leaving the /dev/pwm_output0 driver open. This would prevent the
pwm_out_sim module from registering as a simulated driver. The result
would cause the system to properly boot in HIL mode, but you would not
be able to set any control surfaces.
Since sensor_rest and peripheral_reset are only used on initialization, the
drivers can be shut down after they have performed their reset functions.
Signed-off-by: zthorson <zachthorson@gmail.com >
2017-03-05 11:42:27 +08:00
Beat Küng
570aca98a3
pwm_out_sim: make sure g_pwm_sim is initialized with nullptr
2017-03-04 05:59:10 +08:00
Michael Schaeuble
497a210742
lis3mdl: Fix check_calibration() output
...
The previous implementation returned OK when the sensor was not calibrated and vice
versa. This fixes a preflight fail due to selftest failed.
2017-02-27 22:52:28 +01:00
Beat Küng
85708063d6
fix tap_esc: use correct ORB_ID for esc_status advertisement
2017-02-27 08:52:43 +01:00
José Roberto de Souza
ef228b82aa
boards: AeroFC: Make it a memory constrained system
...
The maximum number of missions was increased in almost 8 times in
recent commit: 9369262e63 navigator: allow more mission items.
As this board loads missions in RAM, now it don't have enough memory
to allocate causing dataman start to fail, so mark it as a memory
constrained system and reduce the number of maximum missions
supported.
2017-02-23 08:26:42 +01:00
José Roberto de Souza
b372d15443
drivers: tap_esc: Fix low on stack warning
...
WARN [load_mon] tap_esc_main low on stack! (284 bytes left)
2017-02-23 08:26:42 +01:00
Lorenz Meier
bbc5186e2a
GPS driver: Improve GPS "fake" mode init and code style
2017-02-17 22:28:55 +01:00
James Goppert
7659402fdb
WIP: valgrind runtime analysis and fixes ( #6521 )
...
* Fix several valgrind identified mem leaks
* Added callgrind target.
* px4_posix_tasks use nullptr
2017-02-17 12:36:52 -05:00
Beat Küng
df8f0da70c
param & param_shmem: enable locking
...
We need to protect access to the param_values array. This is dynamically
allocated and resized (utarray_reserve() calls realloc). If some thread
was iterating the array while another was resizing the array, the first one
would iterate on a freed array, thus accessing invalid memory.
On NuttX this could lead to hardfaults in rare conditions.
Unfortunately we need to initialize the semaphore on startup, by calling
sem_init(). This adds a param_init() method called by every board/config
that uses the params (at least I think I've found all of them)
2017-02-17 11:27:08 +01:00
Phillip Kocmoud
e4afce8b1b
Add the 20602 start command for the AUAV x2.1 to the ROMFS rc.sensors file
2017-02-17 09:18:22 +01:00
Phillip Kocmoud
36e2bc8ae7
Fix AUAV X2.1 Board Config for 20608
...
These changes were required to fix support for the ICM-20608 after this commit:
https://github.com/PX4/Firmware/commit/f746141afe3499ae56e75b3db06409381ead2f4b
This has been tested!
2017-02-17 09:17:41 +01:00
José Roberto de Souza
aa8fa2ae05
drivers: AeroFC: Add more leds
...
Also change the initial state of the leds to off.
2017-02-17 09:13:33 +01:00
José Roberto de Souza
83a387a553
drivers: Led: Do not initialize twice
2017-02-17 09:13:33 +01:00
Lorenz Meier
7bd8514697
PWM out sim: Do not obey hardware lockdown flag
2017-02-16 12:34:51 +01:00
Phillip Kocmoud
ccfecd4ad2
Add support for the ICM-20602 to the Pixracer FMUv4 ( #6577 )
...
The current ICM-20608 is nearing EOL.
I have tested on both ICM-20608 and ICM-20602 based Pixracers.
2017-02-14 06:37:04 -10:00
klopezal
b5858e729c
lis3mdl : correct offset and scale checks
2017-02-12 13:52:41 +01:00
Kevin
1167fba9ad
px4fmu-v4pro : adding correct logic for overcurrent sensing
2017-02-12 13:52:41 +01:00
Kevin
1ce0bafebd
lis3mdl : fix logic in check functions and code style
2017-02-12 13:52:41 +01:00
Kevin
62b4d2de0d
Fixing code style
2017-02-12 13:52:41 +01:00
klopezal
f09b60ad9e
lis3mdl : several fixes and enhancements
2017-02-12 13:52:41 +01:00
klopezal
089e50c574
px4fmu-v4pro : board configuration
2017-02-12 13:52:41 +01:00
Lucas De Marchi
62ea471ae7
ms5611: support MS5611/MS5607 autodetection
...
From their registers it's not possible to differentiate MS5611 from
MS5607. Here we use a little heuristic that people won't likely be
flying (or starting to fly) on very high altitude, greater than 5300m.
Even on these altitudes the error would be much lower using the MS5611
calculations for MS5607 than it is on MSL.
2017-02-09 21:30:19 +01:00
Beat Küng
08f0524b58
camera_trigger: remove unused fields _gpio_fd and _p_pin
2017-02-07 13:36:16 +01:00
Beat Küng
507e3b0263
camera_trigger: add TRIG_INTERFACE=3 for Mavlink forwarding
2017-02-07 13:36:16 +01:00
Beat Küng
212502b2b1
camera_trigger: make sure it builds for SITL & add to SITL cmake
2017-02-07 13:36:16 +01:00
Beat Küng
882146785c
camera_trigger: rename info command to status
...
to be consistent with the rest of the system
2017-02-07 13:36:16 +01:00
Beat Küng
d6c54e4240
camera_trigger: remove params from build
2017-02-07 13:36:16 +01:00
David Sidrane
602279ad56
zubaxgnss-v1 bootloader uses mfguid for hw_version unique_id
2017-02-04 22:27:04 +01:00
David Sidrane
29888659f2
s2740vc-v1 bootloader uses mfguid for hw_version unique_id
2017-02-04 22:27:04 +01:00
David Sidrane
c52a8544c1
px4flow-v2 bootloader uses mfguid for hw_version unique_id
2017-02-04 22:27:04 +01:00
David Sidrane
050b909b20
px4esc-v1 bootloader uses mfguid for hw_version unique_id
2017-02-04 22:27:04 +01:00