Commit Graph

1725 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 46920cfd27 GPS driver: Obey non-publish flag in all modes 2015-05-28 17:41:26 -07:00
Mark Charlebois 35e0d866eb Fix compare of int and uint32
VEHICLE_CMD_START_RX_PAIR is defined as uint32 and is being compared to an int.
GCC complains about this and fails. Changed int cast to a unsigned int.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-27 19:43:54 -07:00
Lorenz Meier 2d156b39a0 trone driver: Update topic names 2015-05-27 15:21:33 -07:00
Lorenz Meier ad251d558f px4io driver: update command names 2015-05-27 15:21:33 -07:00
Lorenz Meier f46cbae012 px4flow driver: update topic names 2015-05-27 15:21:33 -07:00
Lorenz Meier 7bfeb1f5ac mb12xx: Update topic names 2015-05-27 15:21:33 -07:00
Lorenz Meier 041a963ca1 ll40s driver: Update topic names 2015-05-27 15:21:33 -07:00
Lorenz Meier ffc6bb7e85 gimbal driver: Update topic names 2015-05-27 15:21:33 -07:00
Lorenz Meier aa531aec64 airspeed driver: Update topic names 2015-05-27 15:21:33 -07:00
Lorenz Meier e07731de7a Move esc_status to generated topics 2015-05-27 15:21:31 -07:00
Lorenz Meier 4565f57468 Merged release_v1.0.0 into master 2015-05-27 15:28:41 -07:00
Lorenz Meier a2bb8cd766 PX4FLOW driver: Fix use of topic initialization 2015-05-27 15:15:37 -07:00
Lorenz Meier 4f92afd420 Lidar lite driver: Fix use of topic initialization 2015-05-27 15:15:19 -07:00
Mark Charlebois a452478ef9 More fixups for orb_advert_t changed to void *
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-27 14:42:49 -07:00
Mark Charlebois bd2b5e4738 Revert change to src/drivers/device/vdev.cpp
This change was not part of the orb_advert_t fix.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-27 14:42:49 -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
Lorenz Meier 9a67303416 Merge pull request #2231 from jgoppert/lidar_lite_pwm_fix
Lidar lite driver fixes.
2015-05-27 10:54:59 -07:00
Ban Siesta 1734b97635 px4flow: tell the user which PX4FLOW couldn't be connected 2015-05-26 23:04:09 -07:00
James Goppert 5955773574 Lidar lite driver fixes.
Conflicts:
	src/modules/uORB/Subscription.cpp
2015-05-25 21:55:03 -04:00
Lorenz Meier 54fde63d66 FMU driver: Code style fix 2015-05-25 17:31:37 +02:00
Lorenz Meier 983243933d PX4IO params: better documentation 2015-05-25 16:42:47 +02:00
Lorenz Meier e3d7f0042a FMU params: better documentation 2015-05-25 16:42:47 +02:00
Lorenz Meier d54b931554 IO driver: auto update param 2015-05-25 16:42:47 +02:00
Lorenz Meier 2dd94b7f0f FMU driver: auto param update 2015-05-25 16:42:47 +02:00
Lorenz Meier 129aa35fcd FMU driver: Load channel reverse mask from parameters 2015-05-25 16:42:47 +02:00
Lorenz Meier b155e97a54 Load IO params for mask 2015-05-25 16:42:47 +02:00
Lorenz Meier c46c150a3d Rename IO params 2015-05-25 16:42:46 +02:00
Lorenz Meier 3b3e98ed19 Rename FMU params 2015-05-25 16:42:46 +02:00
Lorenz Meier a1232083fc IO driver: Support pwm reversal, prepare config parameters 2015-05-25 16:42:46 +02:00
Lorenz Meier e4a5ceb429 FMU driver: Support pwm reversal, prepare config parameters 2015-05-25 16:42:46 +02:00
Lorenz Meier 9fce6dd8ba Merge pull request #2230 from bansiesta/fix_startup_printfs
Cosmetic startup fixes
2015-05-26 23:02:56 -07:00
Mark Charlebois 379075d29c POSIX: Increased number of devmap entries
The orb_advertise and/or orb_publish calls were failing because
there were not enough devmap entries allocated for all the orb
topics advertised.

The number of entries was increased from 50 to 100.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-25 23:20:19 -07:00
Ban Siesta 414f3330b3 px4flow: tell the user which PX4FLOW couldn't be connected 2015-05-25 18:34:31 +01:00
Ban Siesta 9f314dd191 drivers: corrected log string 2015-05-24 20:56:25 +01:00
Ban Siesta 69cbbd9b5e distance_sensor: changed all distance sensors to orb_advertise_multi 2015-05-24 19:20:25 +01: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
Ban Siesta 517acd4586 px4flow: publish sonar distance to distance_sensor topic as well 2015-05-24 17:31:16 +01: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 a729d6f301 ll40ls: first stab at adapting ll40ls to the new distance_sensor msg 2015-05-24 15:59:29 +01:00
Ban Siesta 0128fef8e0 drivers: more adaptations to changed message 2015-05-24 15:57:42 +01:00
Ban Siesta 103d59e9be distance_sensor: adapted message to float for distance and adapted the drivers 2015-05-24 14:28:19 +01:00
Ban Siesta a0011d2163 Merge remote-tracking branch 'px4/pr/2200' into lidarlite_merge 2015-05-24 13:59:18 +01:00
Ban Siesta 2c4c0ecb32 ll40ls: forgot to remove commented out stuff in PWM driver 2015-05-24 13:00:45 +01:00
Ban Siesta e7f1f3ba28 ll40ls: made PWM driver version functional 2015-05-24 12:47:04 +01:00
Ban Siesta ef658cf926 ll40ls: changed I2C driver to new ringbuffer namespace, and various style stuff 2015-05-24 12:46:23 +01:00
Ban Siesta fbc4ca61ac ll40ls: removed unneeded comments 2015-05-24 12:44:53 +01:00