Commit Graph

12653 Commits

Author SHA1 Message Date
Mark Charlebois 4d8061b22c Removed unused file mavlink_main_posix.cpp
The posix and nuttx changed were re-integrated back into mavlink_main.cpp

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-03 21:05:03 -07:00
Lorenz Meier 3dbd48fbad param style fix 2015-06-03 22:51:02 +02:00
David Sidrane 03bdf1e5f2 Allow allocation of changed paramaters to fail, then all param functions will return PARAM_INVALID or a count of 0 2015-06-03 22:49:57 +02:00
David Sidrane bcb3529490 Added confitional definition 2015-06-03 22:49:57 +02:00
David Sidrane 9d055ef95b Added ASSERT macro that mimic Nuttx but uses the system assert 2015-06-03 22:49:57 +02:00
David Sidrane 7950167bc5 Added assertion on allocation failure for parameter change storage, removed magic numbers 2015-06-03 22:49:57 +02:00
Lorenz Meier cf2d66bd81 Merge pull request #2268 from mcharleb/hrt_queue-fixes
Hrt queue fixes
2015-06-03 21:48:04 +02:00
Mark Charlebois f763c4cc0e POSIX: fixed type used in USEC2TICKS
The macro was using a constant defined as a long instead on an
unsigned long. Made corresponsing changes to barosim.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-03 11:49:28 -07:00
Mark Charlebois 122c52c731 POSIX: Fixes for ARMv7 build
uint64_t needs to use PRIu64 in printf.
Clang-3.5 found an error is variable types for a compare.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-02 16:55:39 +00:00
Mark Charlebois 325e063f18 POSIX: fixes for gcc
GCC complains about strict prototypes.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-02 16:55:39 +00:00
Mark Charlebois af45954690 POSIX: hrt_work_lock.h to hrt_work.h
The header file now contains all hrt workqueue related prototypes.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-02 16:55:38 +00:00
Mark Charlebois 6fd612a218 POSIX: fixed function prototype
Function was changed to be void but prototype was not updated

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-02 16:55:38 +00: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
Mark Charlebois 5e95b83eff POSIX: Fixes for HRT implementation of simulated HW clock polling
There is a race condition for the accel and mag polling rates.
Whichever one gets set first, the other will be uninitialized.

Set the mag polling rate to 1ms if uninitilized.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-02 16:55:34 +00:00
Mark Charlebois cced8ed69e POSIX: added hrt_queue for handling fast periodic events
The workqueues measure time in ticks  which is typically 10ms.
Some interrupt events in Nuttx occur at about 1ms so a more
granular workqueue is needed for POSIX.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-02 16:55:33 +00:00
Lorenz Meier 9882b78383 Merge pull request #2248 from mcharleb/gyrosim-fix
Gyrosim: Fixed constant looping
2015-06-02 01:40:49 -07:00
Lorenz Meier 9ad9dd13d2 Merge pull request #2252 from UAVenture/param_meta_fix
Fix group for posctl_th
2015-06-02 01:36:25 -07:00
Lorenz Meier 00fc4b5f13 Merge pull request #2256 from mcharleb/fixes-for-gcc
Fixes for gcc 4.8
2015-06-02 01:35:20 -07:00
Lorenz Meier e32c00be67 Merge pull request #2261 from PX4/navigator_port
Navigator port
2015-06-02 01:34:26 -07: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 c49f902635 Merge pull request #2263 from tumbili/linux_param_loading
use open/close instead of px4_open/px4_close for parameter file
2015-06-02 01:32:01 -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
Roman 7331ea32ef make navigator work for posix 2015-06-01 23:40:20 +02:00
tumbili f4a25097c1 use open/close instead of px4_open/px4_close for parameter file 2015-06-01 23:01:48 +02:00
Roman b688e3b97c remove unnecessary parenthesis 2015-06-01 11:17:40 +02:00
Roman 9ff89ffe5c use PX4_ISFINITE 2015-06-01 11:16:32 +02:00
Roman 64e8419ab0 remove suffix for double 2015-06-01 11:15:56 +02:00
Roman 6bc0d4d03b add definition of MAX_RAND 2015-06-01 11:14:45 +02:00
Roman e6ec33787f build navigator and controllib for posix 2015-06-01 11:12:59 +02:00
Luis Rodrigues 70bfb42956 fixed timming issued in I2C whoami communication 2015-05-31 21:09:21 +02:00
Lorenz Meier 7cde53597c Merge pull request #2257 from mcharleb/px4_poll-fix
px4_poll fix - was sleeping for usec instead of ms
2015-05-29 13:40:26 -07: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 Charlebois ca88251124 Fixes for gcc 4.8
The use of a non-static function without a declaration generates a
warning for gcc 4.8.

Clang-3.4 does not work when compiling for gprof. The executable always
generates a segv.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-29 12:38:51 -07:00
Andreas Antener 27f0b4edd7 fix group for posctl_th 2015-05-29 10:04:38 +02: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
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
Mark Charlebois 2d85578599 Gyrosim: Fixed constant looping
Gyrosim would call measure continuously because the write_checked_reg
was failing. There is no need to check faked reg writes in the
simulator so that code was removed.

The delay that was added to the simulator to pace the gyrosim reads
was also removed now that the source of the problem was determined.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-28 11:20:30 -07:00
Lorenz Meier 9cb944b553 Merge pull request #2245 from mcharleb/clean-fix
git_version.* not removed on clean
2015-05-28 10:28:02 -07:00
Mark Charlebois 77cc3cdde1 Remove Build/git_version.* on each make
The Build/git_version.d and Build/git_version.o files need to be
removed on each make to prevent confusion from a previously
generated dependency file for a different target.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-27 19:50:39 -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
Mark Charlebois d4749551da git_version.* not removed on clean
The Build/git_version.* files need to be removed on make clean.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-27 19:30:05 -07:00
Lorenz Meier d7547d388f Remove auto-generated airspeed topic 2015-05-27 15:21:34 -07:00
Lorenz Meier 1c6127b192 MAVLink app: Update command struct 2015-05-27 15:21:34 -07:00