Commit Graph
3458 Commits
Author SHA1 Message Date
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
David Sidrane 23ecb78552 px4cannode-v1 bootloader uses mfguid for hw_version unique_id 2017-02-04 22:27:04 +01:00
David Sidrane 278d6bb717 esc35-v1 bootloader uses mfguid for hw_version unique_id 2017-02-04 22:27:04 +01:00
David Sidrane 7600aa51f7 Remove fmu id command as it is redundant to ver uid
This command was redudnat to "fmu uid|all" However it
 printed the leading zeros.
2017-02-04 22:27:04 +01:00
David Sidrane bc8b117e85 common board idenity cleanup and add mfguid to api
Remove the notion of legacy from the api. The board level code
   will perform the traslation to lecacy format on the STM32.
   new targets will not need to do this as there is no case
   where the serial number were used by mfg for tracking.

   Extend board common api to get mfguid and mfguid formatted

   This adds an api that return the MFGUID as an array of bytes
   or a string.

   The data is returned with the MSD at index 0 and the LSD at
   index PX4_CPU_MFGUID_BYTE_LENGTH-1.

   Removed all reodering defines from the api and hal
2017-02-04 22:27:04 +01:00
Lorenz Meier 6bd29b24f6 POSIX: Avoid missing prototype warning on some POSIX platforms 2017-02-04 21:06:21 +01:00
Lorenz Meier 82fa9a8d43 Update return type for power management call 2017-02-04 21:06:21 +01:00
Lorenz Meier 4f1842c9c4 TAP v1 config: Add support for external power management calls 2017-02-04 21:06:21 +01:00
Lorenz Meier 1ad03ed8ef Common: Add support for power management (on / off) from the flight controller side 2017-02-04 21:06:21 +01:00
Lorenz Meier 565a43dee0 Aero FC v1: Remove unused power management file 2017-02-04 21:06:21 +01:00
Lorenz Meier f7fa374656 Implement default board power control to allow software switch-off 2017-02-04 21:06:21 +01:00
Daniel Agar 384e3bb693 meas_airspeed status aspd_com_err 2017-02-04 08:47:37 +01:00
Beat Küng 0d000173b5 l3gd20 selftest: don't check for 0 offset
If temperature compensation is enabled, the offset will be 0
2017-02-03 13:57:48 +01:00
Daniel Agar 345123bb04 clang-tidy readability-static-definition-in-anonymous-namespace 2017-02-01 22:15:50 -05:00
Daniel Agar be5764db48 clang-tidy misc-suspicious-missing-comma 2017-02-01 22:15:50 -05:00
Daniel Agar 96e51f7c59 clang-tidy remove redundant 2017-02-01 22:15:50 -05:00
Daniel Agar 6631e72d6f clang-tidy modernize-redundant-void-arg 2017-02-01 22:15:50 -05:00
Daniel Agar e927f3e040 clang-tidy modernize-use-nullptr 2017-02-01 22:15:50 -05:00
Paul Riseborough 253683af5f drivers: Don't require driver level gyro offsets to be non-zero 2017-02-01 08:40:23 +01:00
Paul Riseborough c00c638b77 Remove IMU calibration parameter checks 2017-02-01 08:40:23 +01:00
Beat Küng f746141afe mpu6000: add & check for the device_type on driver startup
Fixes the following case: a board that has several bus_options enabled,
and wants to start a specific device (eg mpu6000 -T 20608 start). In that
case the given device_type is never actually checked, and since the start
routine iterates over all bus_options, several can match, and thus start
multiple instances of the driver (note that the whoami check is performed
against the value provided with -T and thus the check will pass).

This happens on Pixracer (PX4_SPIDEV_MPU and PX4_SPIDEV_ICM_20608 are both
set).
2017-01-31 23:38:50 +01:00
Beat Küng 7c47991504 px4fmu-v4 board config: use PX4_SPIDEV_ICM_20608 instead of PX4_SPIDEV_ICM_20602
This is what's used according to https://pixhawk.org/modules/pixracer.
2017-01-31 23:38:50 +01:00
Lorenz Meier d1372ddb67 Snapdragon RC driver: Move RC struct out of main loop to preserve channel values. Initialize raw rc count. 2017-01-30 08:28:59 +01:00
Lorenz Meier 2c24900b9d FMU: Initialize raw RC count 2017-01-30 08:27:49 +01:00