Commit Graph
139 Commits
Author SHA1 Message Date
Youssef Demitri 5092bcae70 fully ported control state attitude into fw_att_control 2015-10-14 09:57:41 +02:00
Youssef Demitri 8d756055b8 integrated control state in fw_att_control 2015-10-09 08:59:05 +02: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 4e1faafc9b Remove unused variables 2015-08-02 16:07:32 +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 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
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
Matt Beall 9e6d318d68 Added flag to uorb publish wrapper...resolves no actuators in manual mode in fw_att_control 2015-03-27 10:39:18 -06:00
Lorenz Meier d5c59b515b FW att control: Adjust stack size to real use 2015-03-08 08:13:54 +01:00
Matt Beall 220fb19eb7 Removed actuator_control_mode flags...Using pre-existing flags instead 2015-02-28 15:19:16 +01:00
Matt Beall e2de72b882 Added offboard actuator controls flags to offboard control mode and vehicle control mode to disable controls in att_control apps 2015-02-28 15:19:16 +01:00
Matt Beall 877232119f Small changes 2015-02-28 15:19:16 +01:00
Thomas Gubler d1e9868b9b fw att: add acceleration to control_input 2015-02-15 10:13:49 +01:00
Thomas Gubler 53ffde30c2 fw att: add param to select yawrate control method 2015-02-15 10:13:49 +01:00
Thomas Gubler 84ff3c671d Merge remote-tracking branch 'upstream/master' into ros_messagelayer_merge2_attctrl_posctrl
Conflicts:
	src/drivers/px4fmu/fmu.cpp
2015-02-01 11:06:47 +01:00
Lorenz Meier c4cf28fa95 Move FW att control to multi pub sub API 2015-01-29 16:33:53 +01:00
Thomas Gubler 9b4a210495 missing headers for fmu2 target 2015-01-25 15:55:32 +01:00
Thomas Gubler 96db9e8188 Merge remote-tracking branch 'upstream/master' into ros
Conflicts:
	src/platforms/px4_middleware.h
2015-01-15 12:42:28 +01:00
Lorenz Meier 1bee73af22 Latency measurements: Estimate latency based on sensor timestamp through full system 2015-01-11 11:03:56 +01:00
Thomas Gubler fe279d340d Merge remote-tracking branch 'upstream/master' into dev_ros
Conflicts:
	Makefile
2015-01-07 16:00:59 +01:00
Thomas Gubler c6722fce0b fw att control: cleanup, create base class for ECL
Adding a new base class to remove a lot of boilerplate code, no
functionality changes
2015-01-06 16:11:31 +01:00