Commit Graph
278 Commits
Author SHA1 Message Date
Jimmy Johnson bbc8eaefd7 Adding new follow target navigation and main states. New follow target
topic added. New follow fsm added to the navigator
2016-03-27 12:10:57 +02:00
Julian Oes bba0d0384d drivers/modules: changes after mavlink_log change
The mavlink_log API changes lead to changes in all drivers/modules using
it.
2016-03-24 13:10:02 +01:00
Lorenz Meier b323908fc5 Correct param name 2016-03-13 18:12:17 +01:00
Lorenz Meier 2a2dca84bf Navigator: Do not interpret DO_SET_SPEED as 3D location, reset speed on negative value. 2016-03-13 18:09:52 +01:00
Lorenz Meier 2549505e7b Navigator: Add support to read cruising speed off a mission item 2016-03-13 18:07:47 +01:00
Lorenz Meier 1fdf252e96 Remove duplicate LAND mode, clean up mode reporting across the board to ensure consistency 2016-03-13 15:39:35 +01:00
Lorenz Meier 509be82081 Navigator: Show feedback on pause / continue command 2016-02-28 11:17:27 +01:00
Lorenz Meier 64a6c16fb6 Add reposition command support 2016-02-27 11:22:39 +01:00
Andreas Antener eb5b8a32ee transition alignment will force heading now and go to RTL if it cannot reach it in time, handle mission failure correctly, reset after mission update, issue message with actual problem 2016-02-15 23:29:38 +01:00
Lorenz Meier d8892eb86d Navigator: Announce app name in poll error return 2016-02-05 00:52:35 +01:00
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