Commit Graph
268 Commits
Author SHA1 Message Date
Lorenz Meier 06b496e257 Navigator: Only set acceptance radius based on navigation capabilities for fixed wing flight. 2016-01-24 14:08:41 +01:00
Andreas Antener fbf42c8949 added auto takeoff support, updated configuration for solo and generalized landing mission items 2015-12-28 15:21:50 +01:00
Lorenz Meier 73216e0497 Fixed geofence verbosity 2015-12-24 14:37:18 +01:00
Erik de Castro Lopo 87202a08b1 Navigator: Reorder data members to fix valgrind warnings
During construction of an Navigator object, a pointer to the incomplete
object was passed to the RTL constructor which then called a method on
the incomplete Navigator object accessing uninitialized data.
2015-11-26 13:29:11 +11:00
Lorenz Meier 4950762d4e Navigator: Fix compile error 2015-11-22 15:55:49 +01:00
Lorenz Meier 4fa0123652 Navigator: Only indicate timeout if we really time out 2015-11-22 14:01:52 +01:00
Lorenz Meier 6be674cb74 Navigator: Move to orb_check() API use 2015-11-22 13:59:24 +01:00
Lorenz Meier e96fd83565 Navigator: Support takeoff command 2015-11-20 11:14:51 +01:00
Roman 3d3398e330 added code handling aborting landings 2015-11-17 22:28:09 +01:00
Lorenz Meier b6a959ad3e Navigator: Code style 2015-11-17 12:23:41 +01:00
Lorenz Meier 81ff8d8060 Navigator: Initialize home position at boot time 2015-11-17 09:32:35 +01:00
Daniel Agar a2ba34d1ae geofence violation actions 2015-10-27 09:28:30 +01:00
Lorenz Meier 941c898113 Navigator: Allow 200 ms wait time 2015-09-20 15:21:07 +02:00
Lorenz Meier b067a0c094 Merge branch 'ekf_voting_priority' 2015-09-19 10:51:01 +02:00
Lorenz Meier 4450f1ae54 Navigator: Fix priority to run at much lower priority than controllers, but higher than common stuff. 2015-09-06 15:36:37 +02:00
Lorenz Meier 502a25d27f Navigator: Update to new sensors combined topic 2015-08-30 11:37:27 +02:00
Lorenz Meier d26aa2c85b Fix navigator priority 2015-08-23 17:41:15 +02:00
Lorenz Meier 8c5d99484e Navigator: Improve output 2015-07-05 13:45:10 +02:00
Lorenz Meier d19de58102 Merge branch 'master' of github.com:PX4/Firmware into master_release 2015-06-27 11:54:17 -07:00
tumbili 47c4ece9eb use px4_poll instead of poll 2015-06-26 15:07:30 +02:00
Lorenz Meier 454becdae5 Merged release_v1.0.0 branch into master 2015-06-25 21:45:17 +02:00
Lorenz Meier d673bf8457 Navigator: Reduce excessive stack allocation 2015-06-22 22:16:03 +02:00
Lorenz Meier 2cf10a5e99 Navigator: Publish mission validity in mission result 2015-06-15 17:28:04 +02:00
Lorenz Meier c9fefe236b Merged release into master 2015-06-13 11:06:01 +02:00
Lorenz Meier a66b1b9d04 Improve feedback when auto mode is rejected due to a non suitable mission 2015-06-11 17:03:13 +02:00
Lorenz Meier 30969eb10c Navigator: Use correct open call 2015-06-10 13:20:13 +02:00
Lorenz Meier 1fb7434128 Navigation capabilites: Ensure regular publication of updated topic 2015-06-08 16:48:50 +02:00
Lorenz Meier b2a694f71d navigator: Use the controller radius also as lower bound for mission items 2015-06-08 16:48:50 +02:00
Lorenz Meier 0f3438eb17 Navigator: Obey minimum turn radius the controller is capabable of. 2015-06-08 16:48:49 +02:00
Roman 7331ea32ef make navigator work for posix 2015-06-01 23:40:20 +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 321e1c1f7b navigator: stop complaining about some geofence not cleared 2015-05-26 23:00:44 -07:00
Ban Siesta 3c39e85fdf navigator: stop complaining about some geofence not cleared 2015-05-25 18:09:01 +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 190814bc97 Merge remote-tracking branch 'upstream/master' into linux
Signed-off-by: Mark Charlebois <charlebm@gmail.com>

Conflicts:
	src/drivers/rgbled/rgbled.cpp
	src/modules/commander/PreflightCheck.cpp
	src/modules/commander/airspeed_calibration.cpp
	src/modules/commander/calibration_routines.cpp
	src/modules/commander/gyro_calibration.cpp
	src/modules/commander/mag_calibration.cpp
	src/modules/mc_att_control/mc_att_control_main.cpp
2015-04-28 11:48:26 -07:00
Lorenz Meier f7f949f455 Navigator: Reduce excessive stack 2015-04-26 14:33:56 +02: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
Lorenz Meier 4b34221614 navigator: Get rid of audio tag in strings and use appropriate priority to get audio out when needed in the GCS 2015-04-14 13:25:49 +02:00
Daniel Agar 25dfd84b40 Geofence max horizontal and vertical distance
-changes GF_ON to GF_MODE
-adds GF_MAX_HOR_DIST and GF_MAX_VER_DIST params
2015-04-13 22:22:19 -04:00
Lorenz Meier dc46736ead Merge ROS into master 2015-02-03 20:07:55 +01:00
Lorenz Meier b42b6c50d4 Improve Navigator output 2015-02-03 14:21:31 +01:00
Thomas Gubler 2d124852c1 propagate uorb contants change through all modules/drivers 2015-01-28 16:31:41 +01:00
Ban Siesta a4e27fd849 navigator: reset some flags after the mission result has been published 2014-12-19 23:39:25 +00:00
Ban Siesta f0ff914b62 navigator: don't publish mission result immediately but only after every iteration of the navigator 2014-12-19 23:36:32 +00:00
Ban Siesta 2a09473e5f topics: move geofence status to its own topic 2014-12-19 22:26:31 +00:00
Steven Blass 69271a7251 made invalid setpoints publish once every time it enters an invalid state 2014-11-18 08:40:52 -05:00
Steven Blass 4eb930f704 improved readability of offboard fixes 2014-11-18 08:26:29 -05:00