Commit Graph

230 Commits

Author SHA1 Message Date
Mark Charlebois 9f3bf8e9f4 Rebase changes on upstream master
This brings in many of the changes from the PX4 fork on ATLFLight.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:41 +01:00
Julian Oes 1bbfb02430 position_estimator_inav: fix function declaration 2016-02-18 18:53:00 +01:00
ChristophTobler 19bc39e7ad added a offset parameter for lidar in inav 2016-02-10 09:24:39 +01:00
ChristophTobler 0a76347c9d Changed min/max distance with distance topic params. Added a check for mocap: mocap estimation requires heading from mocap 2016-02-10 09:24:39 +01:00
ChristophTobler c7640723c9 change std::fabs to fabs and rate_threshold to double 2016-02-10 09:24:39 +01:00
ChristophTobler c7ff253a6d change abs to std::fabs 2016-02-10 09:24:39 +01:00
ChristophTobler e7cdb19424 gyro threshold for optical flow and lidar min/max parameter 2016-02-10 09:24:39 +01:00
ChristophTobler a78d732957 change lidar altitude correction threshold 2016-02-10 09:24:39 +01:00
ChristophTobler e2c04b7fa7 replaced lidar min/max distances with parameters 2016-02-10 09:24:39 +01:00
ChristophTobler 1a6c4e123c formatting 2016-02-10 09:24:39 +01:00
ChristophTobler f822b136dc change optical flow weight and scale 2016-02-10 09:24:39 +01:00
ChristophTobler 82be3d09d6 added optical flow scale and removed blanks 2016-02-10 09:24:39 +01:00
ChristophTobler f32021f856 remove lidar filter value from qgc params 2016-02-10 09:24:39 +01:00
ChristophTobler 23f428d639 removed lowpass for lidar correction 2016-02-10 09:24:39 +01:00
ChristophTobler 42131e817d changed value for lidar filter 2016-02-10 09:24:39 +01:00
ChristophTobler b54bc23550 fix in flow yaw compensation 2016-02-10 09:24:39 +01:00
ChristophTobler 6650bca35b decoupled lidar from flow and used it for altitude estimation. qgc params added to enable it. 2016-02-10 09:24:39 +01:00
Andreas Antener 3d971e214a don't update local position reference if home position changes 2015-12-31 13:24:12 +01:00
Andreas Antener bdce1a902f update missin param in inav 2015-12-17 18:25:23 +01:00
Lorenz Meier 4a1dd4f047 Merge pull request #3234 from UAVenture/altitude_message
WIP: Altitude message
2015-12-06 14:10:31 +01:00
Lorenz Meier e1a5efb9a5 INAV: Be less chatty 2015-12-03 13:49:35 +01:00
Lorenz Meier f0a4979da6 Merged master into driver_framework 2015-12-01 12:34:02 +01:00
Lorenz Meier 3515e6ae91 INAV: Increase stack size as needed 2015-11-29 17:38:26 +01:00
Erik de Castro Lopo 0b3889e2e3 INAV: Valgrind fix
Make sure `struct position_estimator_inav_params params` is properly initialized.

At first there was no indication that this struct was un-initialized because valgrind
was issuing warnings about values that were derived (via float calculations) from
values in this struct. Maybe instruction re-ordering during optimization caused
this disconnect between the source of the problem and the symptom.
2015-11-27 17:51:12 +11:00
Andreas Antener c706c30e83 fill pressure altitude in global position from estimators 2015-11-24 14:04:33 +01:00
Andreas Antener 6bec773423 changed isfinite to PX4_ISFINITE 2015-11-24 13:37:06 +01:00
Andreas Antener 67dd28e2c4 update distance sensor separate from flow 2015-11-24 11:56:57 +01:00
Andreas Antener a87ffe9bf3 added terrain estimator to inav 2015-11-24 11:56:57 +01:00
Andreas Antener b7dfa3a9d0 made inav compile with c++ 2015-11-24 11:56:57 +01:00
Lorenz Meier c81e9714c7 INAV: Robustify polling 2015-11-22 14:01:52 +01:00
ChristophTobler 8044c5aaf6 remove unnecessary lines 2015-11-17 16:59:44 +01:00
ChristophTobler b0515ef07d added a disabling flag for mocap when using fake gps 2015-11-17 16:47:32 +01:00
ChristophTobler c1a67858a4 Merge branch 'master' of https://github.com/PX4/Firmware 2015-11-10 16:19:17 +01:00
Lorenz Meier f776c57fb2 INAV: Clean up output 2015-11-04 10:46:18 +01:00
ChristophTobler 1235c1f0bd gps re-init after loss 2015-11-03 08:30:14 +01:00
ChristophTobler 8137a26122 Additional yaw compensation for flow module offset from center of rotation. 2015-10-27 10:07:32 +01:00
ChristophTobler 66785916d0 several first changes to optical flow estimation (lidar, gyro comp., weights). 2015-10-22 14:03:58 +02:00
tumbili 99c1ae12eb fix limiting of dt 2015-10-15 16:06:42 +02:00
Daniel Agar 4151522902 only enforce frame size for nuttx 2015-10-06 23:37:33 -04:00
Daniel Agar 6c10cf18e4 re-enable Werror 2015-10-06 18:28:30 -04:00
Lorenz Meier fa5071b3c5 Remove module.mk files to prevent confusion of adopters upgrading 2015-10-06 11:23:20 +02:00
Mark Charlebois 1abd61303f qurt: Added patch for Eigen to use latest version
Updated to 7.2 Hexagon toolchain

Fixed issuse with stack usage

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-24 15:16:00 -07:00
Lorenz Meier c1c235edb2 Merge branch 'cmake-2' into cmake-2-pthread 2015-09-20 10:34:03 +02:00
Lorenz Meier 6ef94e0dfb Merged master into cmake-2 2015-09-20 10:33:39 +02:00
Lorenz Meier 54493154b9 INAV: Add missing POSIX header 2015-09-20 10:25:43 +02:00
James Goppert 1d6b31d196 Switch to cmake build system. 2015-09-07 20:37:45 -04:00
Lorenz Meier ae569ba543 INAV: Update to new sensors combined topic 2015-08-30 11:37:27 +02:00
Mark Charlebois 3a47434749 Fixes for qurt HIL build
Workaround required Eigen downgrade to 3.2. Hexagon toolchain does
not support C++11 features of newest version of Eigen.

Running make qurt_fixup will downgrade and patch Eigen for qurt.
Running make restore will revert the patch and do a git submodule update
to restore the expected Eigen version.

Added a "restore" target to undo qurt_fixup

Before doing a qurt build run:

    make qurt_fixup

That will downgrade Eigen to 3.2 and apply the require patch.
To build another target after downgrading:

    make restore

Them make the desired target (other than qurt).

Fixed type used in orb_priority to be consistent with the code
(int* was used in declaration but int32_t* used in code)

Removed unused class member variable in sensors.cpp

Added cmake fix for unit tests. The location of px4_log.c changed.

Fixed the qurt drv_hrt.c implementation to use us instead of ms for time resolution

Added px4_led.c to nuttx platform layer
Use the posix version of px4_led.c for nuttx so we don't end up with
duplicate files. It was moved out of common because it is not used by qurt.

Changed PX4_DEBUG to PX4_WARN when checking for the error condition for store_poll_waiter in vdev.cpp

Updated the px4_log.h file to make calls to the qurt_log functions.
The qurt_log function is defined in the platforms/qurt layer.

Added an option to control starting the commander module in HIL mode.

Moved the flight specific drivers to the configuration file instead of adding them
to the common tool chain file because HIL mode does not need them.

Added the uorb Subscriber and Publisher classes

Call PX4_ISFINITE macro instead of isfinite().

Added px4_led.c to nuttx platform layer
Use the posix version of px4_led.c for nuttx so we don't end up with duplicate files.
It was moved out of common because it is not used by qurt.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-08-25 21:59:01 -07:00
Mark Charlebois faae76e3c7 Removed __PX4_QURT ifdefs from application layer
Replaced test for __PX4_QURT with test for NAV_DEBUG.

Optimized implementation to remove code when flag is not set.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-08-06 12:51:20 -07:00
Mark Charlebois 009f528266 Fixes for posix-arm and qurt builds
Ifdefed out deadcode in position_estimator_inav_main.c as the
deadcode does not compile for qurt.

Added fixes to get a successful build for posix-arm and qurt targets.
Removed CLOCK_REALTIME def from px4_time.h for qurt and removed unused
variables in att_est_q and mc_att_control.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-08-05 18:34:46 -07:00