530 Commits

Author SHA1 Message Date
Mark Charlebois
f3126e9d3a Fixes for DriverFramework, accelsim and gyrosim
DriverFramework was updated to properly delete nodes in managed lists.

Baro was fixed to use DriverFramework.

Accelsim was fixed with change to DriverFramework to return < 0 when start()
is called and the driver was already started, or stop() is called but the
driver was not running.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-24 22:46:20 -08:00
Lorenz Meier
d4c8be3933 Update driver framework with fixed DF list deletion 2015-11-24 09:29:00 +01:00
Lorenz Meier
da47e8ade8 Validator: Reset error state if no error condition triggers 2015-11-24 00:11:49 +01:00
Lorenz Meier
352b1692d1 Geo lib: Do not hardcode assumptions about process name. 2015-11-22 14:00:31 +01:00
Lorenz Meier
b4e64f4914 Update version of Matrix library 2015-11-22 12:26:07 +01:00
Lorenz Meier
b157bee75c Update Driver framework version 2015-11-22 12:19:10 +01:00
Lorenz Meier
240b13e003 DriverFramework: Update 2015-11-21 17:43:24 +01:00
Lorenz Meier
2b8cb692ca Update DriverFramework to fix locking and missing field initializers 2015-11-21 14:25:04 +01:00
Lorenz Meier
75e962ee7c Merged master into driver_framework 2015-11-20 09:14:37 +01:00
Lorenz Meier
c9c5f59bce Update driver framework to include Mac build fixes 2015-11-20 09:05:38 +01:00
Mark Charlebois
ec250ea9d4 Updated to latest DriverFramework
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-19 20:40:45 -08:00
Mark Charlebois
59b1e6b559 Added qurt stub for pthread_cont_init
Updated to latest DriverFramework

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-19 20:15:14 -08:00
Mark Charlebois
34410e7ce4 Changes for updated DriverFramework
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-19 19:03:10 -08:00
Mark Charlebois
c4438bf50a Fix to move DriverFramework includes to common
Nuttx now gets to link phase. But there are two unresolved symbols:

arm-none-eabi/include/c++/4.7.4/bits/basic_string.h:1128: undefined reference to `std::string::assign(char const*, unsigned int)'
arm-none-eabi/include/c++/4.7.4/bits/stl_list.h:1534: undefined reference to `std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)'

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-19 09:35:18 -08:00
Mark Charlebois
52957ab0cc Don't add DriverFramework dir for NuttX
I am unable to get the nuttx build dependencies set up so that
it builds the export dir before it builds df_driver_framework.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-18 20:14:48 -08:00
Mark Charlebois
af155b8e59 Fixed SITL build
The SITL build seems to run correctly now

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-18 13:02:39 -08:00
Mark Charlebois
b8c40ecb6b Enabled DriverFramework drivers for SITL build
The code here works only for SITL at the present time.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-18 11:58:21 -08:00
Mark Charlebois
238db8c6d7 Moved IOCTL definitions to DevIOCTL.h in DriverFramework
Removed sched.h from platform/qurt since it is now in DSPAL.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-17 19:30:51 -08:00
tumbili
154fa07a46 fixes after review 2015-11-17 22:28:09 +01:00
Roman
c989c21269 fixed geo functions 2015-11-17 22:28:09 +01:00
Roman
e48cf53ce8 fix code style 2015-11-17 22:28:09 +01:00
Roman
2719789b2e use matrix lib to enable building for posix 2015-11-17 22:28:09 +01:00
Roman
4abff89be0 updated terrain estimator and runway takeoff libs to cmake build system 2015-11-17 22:28:09 +01:00
Andreas Antener
5b1c7321e7 reverted navigation on landing back to old heading hold 2015-11-17 22:28:09 +01:00
Roman
896dff40cf added geo functions to create new waypoints from given setting 2015-11-17 22:28:09 +01:00
Andreas Antener
4e22d65325 don't use virtual line anymore for takeoff but use correct starting point to navigate, updated default parameters for wheel controller 2015-11-17 22:28:09 +01:00
tumbili
11c6ee2b5a make terrain estimate invalid after range sensor timeout 2015-11-17 22:28:08 +01:00
Andreas Antener
36df3a0499 fixed minor things from review 2015-11-17 22:28:08 +01:00
Andreas Antener
b16e6249e4 more correct groundspeed scaling for wheel controller 2015-11-17 22:28:08 +01:00
tumbili
3b865624f1 added library for terrain_estimation
Conflicts:
	makefiles/nuttx/config_aerocore_default.mk
	makefiles/nuttx/config_px4fmu-v1_default.mk
	makefiles/nuttx/config_px4fmu-v2_default.mk
	makefiles/nuttx/config_px4fmu-v2_multiplatform.mk
	makefiles/posix/config_posix_sitl.mk
2015-11-17 22:28:08 +01:00
Andreas Antener
e0cdf65fb4 use navigator to hold heading 2015-11-17 22:28:08 +01:00
Andreas Antener
f5f61e42af replaced magic values with parameters, renamed internal representations 2015-11-17 22:28:08 +01:00
Andreas Antener
9c70eb0b63 reduce wheel control speed scaling 2015-11-17 22:28:08 +01:00
Andreas Antener
0769ec5345 added max pitch parameter for climbout phase 2015-11-17 22:28:08 +01:00
Andreas Antener
178ec7f4fc stay out of climbout once height has been reached, don't mix navigator roll with fixed heading 2015-11-17 22:28:08 +01:00
Andreas Antener
e987082292 split takeoff into 2 phases, reseting integrators when still on runway 2015-11-17 22:28:08 +01:00
Andreas Antener
0c875dd6d1 calculate shortest yaw error 2015-11-17 22:28:08 +01:00
Andreas Antener
234a200e60 renamed heading controller to wheel controller, added groundspeed dependency and separate parameters 2015-11-17 22:28:08 +01:00
Andreas Antener
6c31421889 extracted heading controller 2015-11-17 22:28:08 +01:00
Andreas Antener
51ef854173 extracted runway takeoff logic into external class 2015-11-17 22:28:08 +01:00
tumbili
ee4249f30f extended ecl yaw controller for yaw tracking with rudder 2015-11-17 22:28:07 +01:00
Mark Charlebois
8882e10278 Updated DriverFramework
Fixed static function that was not marked static

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-16 23:41:53 -08:00
Mark Charlebois
8a6b719897 Updated DriverFramework
Fixed failure due to float promotiion to double

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-16 23:35:39 -08:00
Mark Charlebois
1bcb93180b Set flags for building the proper DriverFramework target
The DF_TARGET cmake variable needs to be set to (linux, darwin, qurt, nuttx)
The define __DF_LINUX or __DF_QURT needs to be set.
The __DF_DARWIN target is untested

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-16 23:24:59 -08:00
Mark Charlebois
618626103f Use DevMgr::getNextDevicePath()
Also, a fix for number of args passed for accelsim.

Updated to newest version of DriverFramework.

DF drvices show up now in list_devices

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-16 16:57:57 -08:00
Mark Charlebois
dbe3b0e52b Re-enabling code to handle DF framework
Updated to latest DriverFramework and changed ioctl args to
unsigned int from void *.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-16 13:51:39 -08:00
Kabir Mohammed
5a1f7ca95a attitude_q : verbose failure reporting 2015-11-14 21:55:32 +05:30
Kabir Mohammed
0d7cd22ae7 data validator : verbose error state reporting 2015-11-14 21:55:24 +05:30
Kabir Mohammed
0f489a194f attitude_q : more verbose failsafe output 2015-11-14 21:06:23 +05:30
Lorenz Meier
c5c783bad9 Update driver framework 2015-11-14 00:04:32 +01:00