Commit Graph

276 Commits

Author SHA1 Message Date
Lorenz Meier c62ae87c69 Merge release_v1.0.0 into master 2015-05-28 18:08:31 -07:00
Lorenz Meier aab379cde9 MAVLink app: Fix yaw scaling for joystick input 2015-05-28 17:41:03 -07:00
Lorenz Meier 5ac5fae020 MAVLink app: better yaw scaling 2015-05-28 11:50:18 -07:00
Lorenz Meier d39db2eba8 MAVLink app: better yaw scaling 2015-05-28 11:49:57 -07:00
Lorenz Meier 1c6127b192 MAVLink app: Update command struct 2015-05-27 15:21:34 -07:00
Lorenz Meier 2f5e40e6d0 Update MAVLink app with topic updates 2015-05-27 15:21:32 -07:00
Lorenz Meier 1a9d402feb mavlink receiver: fix topic handle initialization of manual control topic 2015-05-27 15:36:05 -07:00
Lorenz Meier 4565f57468 Merged release_v1.0.0 into master 2015-05-27 15:28:41 -07: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
TSC21 0d1bc2cd0b mavlink: added multi advertise for distance_sensor in mavlink receiver 2015-05-26 23:35:45 +01:00
Lorenz Meier 009815deb0 Improve config and mapping 2015-05-24 20:11:51 +02:00
Lorenz Meier 2bb655c46c mavlink app: Improved mapping to RC input 2015-05-24 20:11:51 +02:00
Lorenz Meier 01fd84e4dc mavlink and commander app: Add support for manual input, either directly or via remote control 2015-05-24 20:11:50 +02:00
Anton Babushkin af546def91 mavlink: use 'buttons' field of MANUAL_CONTROL message as mode switches 2015-05-24 20:11:50 +02:00
Ban Siesta 2fb999674b Merge remote-tracking branch 'px4/pr/2200' into lidarlite_merge 2015-05-24 16:30:02 +01:00
TSC21 72e9390985 distance_sensor: minor changes 2015-05-24 16:03:01 +01:00
Ban Siesta cf39e8c721 mavlink: adapted to change in distance_sensor msg 2015-05-24 15:58:44 +01:00
TSC21 36dfda4aea distance_sensor: mavlink_receiver: changed to SI units 2015-05-23 17:58:20 +01:00
TSC21 43668cc8c8 distance_sensor: adopt message in both range drivers and on ekf_att_pos_estimator 2015-05-23 17:49:52 +01:00
TSC21 6049365123 Merge branch 'master' 2015-05-23 11:24:15 +01:00
Lorenz Meier 8fd00f4d6d Merged release_v1.0.0 into master 2015-05-23 11:07:10 +02:00
Roman Bapst 0eeaa83b3d send autopilot version message on startup and on request 2015-05-23 09:59:46 +02:00
TSC21 30218b0de7 distance_sensor: added mavlink_receiver handler for msg 2015-05-20 00:15:27 +01:00
Lorenz Meier e5fad077df Merge master into linux 2015-05-18 23:28:57 +02:00
Erik Jähne fcb1bb2bb6 FIX HIL GPS conversion 2015-05-17 14:50:17 +02:00
Mark Charlebois 36f5d47ed9 Merge remote-tracking branch 'upstream/master' into linux
Signed-off-by: Mark Charlebois <charlebm@gmail.com>

Conflicts:
	src/modules/commander/gyro_calibration.cpp
	src/modules/mavlink/mavlink_ftp.cpp
2015-05-16 15:04:38 -07:00
Lorenz Meier 4fb91f47cd Fix mavlink FTP list stack overflow. Fixes #2180, not flight-critical 2015-05-15 11:15:04 +02:00
Lorenz Meier 66b87ac761 Fix state-level HIL. Reported by @s3erjaeh 2015-05-13 16:04:33 +02:00
Mark Charlebois 2002d4e774 POSIX: disable UART in mavlink
Most of the current POSIX builds will not use the UART and it
is just a unnecessary dependency to satisfy when running in a
test environment.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-07 10:07:18 -07:00
Thomas Gubler cc62033190 improve mavlink set_attitude_target handling
port #1920 to mavlink_receiver
fixes #1921
2015-05-07 16:44:54 +02:00
Mark Charlebois 12a25e4b63 Merge remote-tracking branch 'upstream/master' into linux
Signed-off-by: Mark Charlebois <charlebm@gmail.com>

Conflicts:
	makefiles/firmware.mk
	src/modules/commander/module.mk
	src/modules/mavlink/mavlink_ftp.h
	src/modules/mavlink/mavlink_tests/module.mk
2015-05-04 16:36:59 -07:00
Don Gagne 46da294ffb New bust mode ftp file download 2015-05-03 19:26:54 -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 1d283bf3c1 MAVLink app: Fix usage of static struct, make streams list const 2015-04-26 14:33:57 +02:00
Mark Charlebois a1332e699c QuRT and POSIX changes - part 5
Last part of the main QuRT related changes

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-24 01:39:25 -07:00
Mark Charlebois e764c68d0a mavlink: consolidated nuttx and posix changes
Removed nuttx and posix specific files for mavlink_ftp and mavlink_receiver.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-22 11:08:19 -07:00
Mark Charlebois ac0df5c61d Linux: added HRT test, moved tests to linux/tests
Also fixed naming of mavlink files for NuttX build.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 11:07:00 -07:00
Mark Charlebois d013ac0927 Support for building more modules with Linux
Added more queue support to linux/px4_layer.

Use virt char devices for ms5611, and mavlink.

Added more HRT functionality. uORB latency test
now fails. Likely due to bad HRT impl for Linux.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 11:07:00 -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
M.H.Kabir 66e6938c6d timesync: Add uORB topic, general fixes 2015-04-14 13:14:15 +05:30
Matt Beall fa9f7075fa Changed message staging 2015-03-31 10:52:26 -06:00
Matt Beall ce9f46d4e7 Added ping message handling to mavlink receiver 2015-03-31 10:30:57 -06:00
Lorenz Meier ba0a343090 MAVLink app: Adjust stack size of receiver thread 2015-03-08 08:14:58 +01:00
Lorenz Meier 61437a5587 MAVLink app: Do no allocate memory statically, but only on execution on stack. 2015-03-08 07:49:00 +01:00
Lorenz Meier 0ebbb5f533 MAVLink: Use less RAM 2015-03-01 18:32:07 +01:00
Thomas Gubler 7fb82e74c8 tiny comment improvement 2015-02-28 18:39:36 +01:00
Matt Beall 0f51907dd6 Check if offboard mode was activated before publishing controls 2015-02-28 15:19:16 +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 b0e878dbae Compiler error 2015-02-28 15:19:16 +01:00