Commit Graph
2968 Commits
Author SHA1 Message Date
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
TSC21 ff1f3ba7f1 drivers: added validity check to sf0x 2015-05-26 18:08:55 +01:00
TSC21 79e084a154 drivers: added validity check 2015-05-26 18:05:26 +01: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
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
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
Ban Siesta 0ab0de5805 ll40ls: adapt the cli interface, so that the commands work with the PWM and I2C driver 2015-05-24 12:42:14 +01:00
Ban Siesta bb3ad64aac pwm_input: get rid of start full and instead start whenever someone reads from the driver, as well as various other small changes 2015-05-24 12:41:19 +01:00
Ban Siesta 4e897bf197 pwm_input: comment style 2015-05-24 12:40:29 +01:00
Ban Siesta 1151996c0b ll40ls: Weffc++ was complaining about 'class LidarLitePWM' has pointer data members, had to disable it 2015-05-24 12:38:22 +01:00
Lorenz Meier ae50328646 Properly define global limits for RC input in driver 2015-05-24 12:48:31 +02:00
Ban Siesta d473b8bddd Merge branch 'fix_ringbuffer' into lidarlite_merge 2015-05-24 10:18:07 +01:00
Ban Siesta 362fc205b3 drivers: various whitespace 2015-05-24 10:05:42 +01:00