Commit Graph
179 Commits
Author SHA1 Message Date
Lorenz Meier ee77ff4830 FW Att control: Avoid no symbols warnings 2015-10-14 22:36:01 +02:00
Lorenz Meier fb1af08234 FW att control: Remove excessive stack allocation 2015-10-10 22:23:35 +02: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
tumbili b4839731ad use correct syntax for polling 2015-09-01 09:36:27 +02:00
Lorenz Meier a508330bdf Fix attitude controller braces 2015-08-23 17:41:45 +02:00
devbharat 8257f3d2fd Replaced exits with return 2015-08-23 14:39:33 +02:00
devbharat 20d71870ec Minor changes to get fixed wing control apps running for posix 2015-08-23 14:39:25 +02:00
Lorenz Meier 62269004c8 FW control: Remove unused parameters 2015-08-19 10:43:35 +02:00
tumbili 04f55ce784 vtol fixes:
- mc pos control: publish attitude setpoint when vtol is in trans mode
- fw att control: do not publish attitude setpoint when in transition mode
- introduce flag in_transition_mode in vehicle status message for vtol
- improve tiltrotor code based on flight testing
2015-08-12 20:33:17 +02:00
Simon Wilks 809b6591c3 Bring back the ability to transition plus a partial cleanup of tiltrotor support and firefly6 config updates. 2015-08-05 16:16:03 +02:00
Lorenz Meier 4cf51beb4b FW Att control: Fix merge fail for attitude setpoint 2015-08-04 17:44:54 +02:00
Lorenz Meier 420acb9748 Merge branch 'beta' 2015-08-04 10:56:53 +02:00
Lorenz Meier 5b3449e75b FW Att control: Crank up pitch default gains 2015-08-02 16:07:32 +02:00
Lorenz Meier 4e1faafc9b Remove unused variables 2015-08-02 16:07:32 +02:00
Lorenz Meier fbc1b78b38 Attitude control: Enforce rate limits by default to prevent jittery control outputs / steps 2015-08-02 16:07:32 +02:00
Lorenz Meier ea7ae7d019 Merged beta into master 2015-08-01 16:58:02 +02:00
Lorenz Meier 06c45aadfb FW attitude control: Increase default integrator gains to compensate common airframe trim issues 2015-07-19 16:03:08 +02:00
Lorenz Meier d1f8edb346 Merged beta into master 2015-07-04 23:02:47 +02:00
Lorenz Meier 939d475ef2 Output flaps in all flight modes 2015-07-04 11:59:10 +02:00
Lorenz Meier ec85918e40 Set better defaults for fixed wing attitude controllers 2015-07-04 11:39:12 +02:00
Lorenz Meier 454becdae5 Merged release_v1.0.0 branch into master 2015-06-25 21:45:17 +02:00
tumbili 4e9fd5b2a4 rotate attitude for fw mode only if VTOL is a tailsitter 2015-06-19 09:25:16 +02:00
Lorenz Meier c9fefe236b Merged release into master 2015-06-13 11:06:01 +02:00
Lorenz Meier 8838b18da7 FW attitude control: Run attitude controller as fast as we can to minimize latency 2015-06-12 16:10:20 +02:00
Lorenz Meier 90362a9889 FW attitude controller: Fix usage of trim parameters to apply only to the final outputs 2015-06-09 14:16:37 +02:00
Lorenz Meier 46d969772c Fixed wing heading hold: Engage only after wings got close to level already 2015-06-05 22:45:07 +02:00
Lorenz Meier 21fde4b3f6 fw att control: Code style fixes 2015-06-05 22:45:06 +02:00
Lorenz Meier 5197be67a7 FW control: Add skeleton for distinct altitude control and position control flight modes
Conflicts:
	src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp
2015-06-05 22:45:05 +02:00
tumbili 134c7d87b8 do not run fw attitude controller when in rotary wing mode (VTOL) 2015-05-30 15:39:37 +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
Ban Siesta 96bfe85ceb fw_att_control: another ugly way to prevent a newline 2015-05-26 23:05:26 -07:00
Ban Siesta d3fe6fd256 fw_att_control: whitespace 2015-05-26 23:05:18 -07:00
Ban Siesta e2277bbe2d fw_att_control: don't brag about being running 2015-05-26 23:05:11 -07:00
Ban Siesta 4cf8ce30ba fw_att_control: another ugly way to prevent a newline 2015-05-25 19:10:05 +01:00
Ban Siesta d36b65aab5 fw_att_control: whitespace 2015-05-25 19:09:45 +01:00
Ban Siesta 38412993d6 fw_att_control: don't brag about being running 2015-05-25 19:09:28 +01:00
Lorenz Meier d906fb8f31 Merged master into linux 2015-05-19 21:00:02 +02:00
Lorenz Meier 66e6dccfee FW att control: Better param docs 2015-05-19 07:18:25 +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 9758112e31 Use px4_config.h instead of nuttx/config.h
Modified code to use OS independent header file for config settings.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:55:41 -07:00
Mark Charlebois bf429188b4 Reverted: Use OS independent API for task creation/deletion
Keep existing API use in code. Bind the use of the OS independent
implementation in the systemlib layer.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:49:44 -07:00
Mark Charlebois ddb32742eb Use OS independent API for task creation/deletion
Calls to task_delete and task_spawn_cmd are now
px4_task_delete and px4_task_spawn_cmd respectively.

The px4_tasks.h header was added to the affected files
and incusions of nuttx/config.h were removed.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:49:44 -07:00
Daniel Agar 2e824bbeea fix incorrect argc < 1 check for no arguments
-requiring arguments should be argc < 2
2015-04-18 12:02:58 +02:00
Lorenz Meier 80b5abeb0d Fix comment in FW params 2015-04-18 11:40:25 +02:00
Lorenz Meier 644fb1c0bb Revert "Remove newline so meta data parser can parse"
This reverts commit 3a70e7bf1b.
2015-04-18 11:38:34 +02:00
Don Gagne 3a70e7bf1b Remove newline so meta data parser can parse 2015-04-18 11:14:12 +02:00
Simon Wilks ea521844fe Correct formatting of parameter definition to unbreak documentation generation. 2015-04-17 14:34:53 +02:00
Daniel Agar 8aae66b893 trivial code style cleanup round 2 2015-03-27 23:38:58 -04:00