Commit Graph

175 Commits

Author SHA1 Message Date
Lorenz Meier 6b89ce0b7f Fix decimal places in att control params 2016-03-10 09:15:49 +01:00
Lorenz Meier e3853ed4e5 MC att control: Support increment meta data 2016-02-28 19:42:34 +01:00
Lorenz Meier 44e885f3c3 Att control: Allow higher yaw rate by default 2016-02-27 11:23:24 +01:00
jwilson 4adfea7fa9 Resolved shared memory parameter problems and removed additional debug code. 2016-02-19 16:59:49 +01:00
jwilson d84639f8c4 This code is flyable, but a few problems exist which cause values in the .config files to be overwritten by the defaults in the .XML file. 2016-02-19 16:59:49 +01:00
Roman 1d5cf70e83 implemented vtol weathervane yaw control for landing and loiter mission item 2016-02-15 09:49:24 +01:00
sander dc7077b125 Move constraint after feed forward 2016-02-15 09:48:37 +01:00
Roman 80f8fcbdf6 implemented vtol weathervane yaw control for landing and loiter mission item 2016-02-15 09:48:37 +01:00
Lorenz Meier 9cb82e93be MC att control: Param meta data 2016-02-14 18:43:58 +01:00
Lorenz Meier 9f2498af94 Attitude controller: Include process name in poll error message 2016-02-05 00:54:40 +01:00
Lorenz Meier c78fd7014d MC: Only use auto yaw limits if manual control is off 2016-01-31 20:18:12 +01:00
Lorenz Meier 7455a833d0 MC: Split yaw speed limiting between manual and velocity control modes 2016-01-31 20:18:12 +01:00
Roman c9b1fb154d hotfix:
multirotors shouldn't use tailsitter recovery code.
2016-01-26 13:29:53 +01:00
Lorenz Meier 17c3aa3bac MC att control: Slightly increase max yaw rate 2016-01-26 12:32:26 +01:00
Lorenz Meier bf03b8cb18 Yaw rate limit: use a lower limit for less twitching 2016-01-24 11:13:47 +01:00
Mark Charlebois f22c574b87 Integrated cmake_hexagon for qurt build
Still a WIP since the IDL file needs to be replace with the
muorb IDL file.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-01-10 20:54:26 +01:00
Lorenz Meier 4d41f1d6ce MC att control: Add time constant to simplify user-tuning of basic vehicle operation 2015-12-26 16:10:21 +01:00
Lorenz Meier 623aeac18d Fix code style in MC params 2015-12-24 13:13:10 +01:00
Roman 7c3a67e374 use optimal recovery strategy for tailsitters 2015-12-24 10:17:53 +01:00
Roman ac4e95df05 use optimal recovery strategy for tailsitters 2015-12-24 10:17:31 +01:00
Youssef Demitri 170f0032fd updated to master (solve merge conflicts) 2015-11-06 12:18:31 +01:00
Lorenz Meier 3f6fd8b94d MC att ctrl: Do not build unused param file 2015-10-29 10:36:38 +01:00
Eddy Scott 4e5e8d1c95 Modified how mc_att_control handles rattitude mode 2015-10-28 08:37:12 -04:00
Eddy d4a19163bb Added switching from attitude control generated rate setpoints to manual rate setpoints when in rattitude mode 2015-10-28 08:37:12 -04:00
Youssef Demitri c22c678b7d Merge branch 'master' of github.com:PX4/Firmware into control_state 2015-10-14 11:02:23 +02:00
Youssef Demitri 035216fc9c fully replaced vehicle_attitude with control_state in mc_att_control 2015-10-13 17:54:28 +02:00
Youssef Demitri 6dbf4e4573 integrated ctrl state rates in mc_att_control 2015-10-08 22:43:00 +02:00
Daniel Agar 4151522902 only enforce frame size for nuttx 2015-10-06 23:37:33 -04:00
Lorenz Meier fa5071b3c5 Remove module.mk files to prevent confusion of adopters upgrading 2015-10-06 11:23:20 +02:00
James Goppert 1d6b31d196 Switch to cmake build system. 2015-09-07 20:37:45 -04:00
Lorenz Meier 82280cc327 MC att control: Set tighter angle limits to make response smoother 2015-09-06 15:52:41 +02:00
Lorenz Meier c776082dd8 Merge branch 'beta' 2015-09-03 08:34:46 +02:00
Lorenz Meier d722292381 MC attitude controller: Use tighter attitude control gains 2015-08-30 22:43:07 +02:00
Lorenz Meier ce90c40413 Merged beta to master 2015-08-07 14:41:19 +02:00
Lorenz Meier ebb061764a MC attitude control: Limit yaw rate further to avoid mixer saturation in the first place 2015-08-06 22:09:09 +02: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
Lorenz Meier 454becdae5 Merged release_v1.0.0 branch into master 2015-06-25 21:45:17 +02:00
Lorenz Meier ff39773666 MC: Better attitude control defaults 2015-06-23 09:11:22 +02:00
Lorenz Meier 62b102d0b4 MC attitude controller: Set better defaults 2015-06-21 19:00:06 +02:00
Lorenz Meier 9e3e43c49e Update comments in attitude controller. Fixes #2369 2015-06-14 15:27:24 +02:00
Lorenz Meier c9fefe236b Merged release into master 2015-06-13 11:06:01 +02:00
Lorenz Meier f6dc9c9727 multicopter manual attitude control: Leave some margin for yaw control 2015-06-05 22:45:07 +02:00
Mark Charlebois 1ca05aaa64 orb_advert_t changed to void * and checks changed to nullptr
The existing orb_advert_t use thoughout the code sometimes tries
to treat it as a file descriptor and there are checks for < 0
and ::close calls on orb_advert_t types which is an invalid use
of an object pointer, which is what orb_advert_t really is.

Initially I had changed the -1 initializations to 0 but it was
suggested that this should be nullptr. That was a good recommendation
but the definition of orb_advert_t had to change to void * because
you cannot initialize a uintptr_t as nullptr.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-27 14:42:49 -07:00
Mark Charlebois a734fc96d1 extensive orb_advert_t fixes
The calls to orb_advertise were being mishandled throughout the code.
There were ::close() calls on memory pointers, there were checks
against < 0 when it is a pointer to a object and values larger than
0x7ffffffff are valid. Some places orb_advert_t variables were
being initialized as 0 other places as -1.

The orb_advert_t type was changed to uintptr_t so the pointer value
would not be wrapped as a negative number. This was causing a failure
on ARM.

Tests for < 0 were changed to == 0 since a null pointer is the valid
representation for error, or uninitialized.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-27 14:41:33 -07:00
Roman 5b6f1b5ca5 fixed rates feedforward: plant for feedforward is given by derivative operator 2015-05-23 13:19:15 +02:00
Roman 16df7e1656 fixed rates feedforward: plant for feedforward is given by derivative operator 2015-05-22 21:12:18 +02:00
Lorenz Meier d906fb8f31 Merged master into linux 2015-05-19 21:00:02 +02:00
Lorenz Meier 5fb99e9300 MC att control: Better param docs 2015-05-19 07:18:41 +02:00
Mark Charlebois c5237f7f6f Removed extra abstracton layer in systemlib
The calls to task_spawn_cmd, kill_all, and systemreset  were wrappers
around the px4_{task_spawn_cmd|kill_all|systemreset} implementations.

Removed the wrappers and changed all calls to the px4_ equivalents.

NuttX specific code was moved into px4_tasks.h

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-06 14:43:11 -07:00
Mark Charlebois 2f8cad6c00 Fixed bad update of poll to px4_poll change
I updated poll to px4_poll but forgot to change
struct pollfd to px4_pollfd_struct_t.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-30 09:12:39 -07:00