Commit Graph

3340 Commits

Author SHA1 Message Date
Lorenz Meier fe82b412f6 Merge pull request #2269 from mcharleb/uorb-posix-fix
Created px4_access to handle check of virtual files
2015-06-04 08:39:56 +02:00
Mark Charlebois f985a48fbc Created px4_access to handle check of virtual files
uORBManager_posix.cpp did a stat to see if a file exists but the
file is actually a virtual file. Using stat was incorrect because
it required a stat buffer that was never used. The POSIX access
function is a better choice so I created a px4_access version to
handle virtual files.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-03 16:22:14 -07:00
Mark Charlebois b4152f3daa POSIX: Fixed output for list_topics, list_devices, etc
Removed extra carriage returns in output strings

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-02 16:55:37 +00:00
Luis Rodrigues f3b392513d fixed timming issued in I2C whoami communication 2015-06-02 10:32:57 +02:00
Lorenz Meier 6a35887f54 Merge pull request #2260 from Terabee/master
fixed timming issued in I2C whoami communication
2015-06-02 01:32:47 -07:00
Lorenz Meier f54080bd43 Merge pull request #2226 from rmackay9/orig-precland6
Driver for the IR Lock vision sensor (derivative of the Pixy vision sensor)
2015-06-02 01:31:01 -07:00
Luis Rodrigues 70bfb42956 fixed timming issued in I2C whoami communication 2015-05-31 21:09:21 +02:00
Mark Charlebois 6343b2c56f px4_poll fix - was sleeping for usec instead of ms
There was a conversion error in the timeout (in ms)
passed in and the ts.tv_nsec field of the struct timeval.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-29 13:26:29 -07:00
Mark Whitehorn 61904d3106 fix type mismatch 2015-05-29 10:05:29 -06:00
Randy Mackay 7dcef40516 irlock: report target in radians 2015-05-29 16:50:48 +09:00
Randy Mackay 54308288f3 irlock: formatting fixes 2015-05-29 16:50:48 +09:00
Randy Mackay 10139400d5 irlock: simplify driver
Remove ioctl calls by always starting cycling
Remove unused orb variables and includes
Remove unused angle from irlock_s structure
Add test and set I2C address to pixy default
Reduce max num objects to 5
Add read errors reporting via nsh
2015-05-29 16:50:47 +09:00
Michael Landes 210ad9e36c irlock: initial version of IR-LOCK sensor driver
Also works with the Pixy Cam
2015-05-29 16:50:46 +09:00
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
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