- Apr 20, 2015
-
-
Mark Charlebois authored
PX4 uses NuttX data structures throughout so those data structures were preserved and used to implement high and low priority queues. A unit test for the work queues was added. The polling rate of the queues are set in px4_config.h in CONFIG_SCHED_WORKPERIOD. The units are milliseconds. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
if only uorb is called with no other args it crashes. Handle the case where no args are passed. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Now run: make PX4_TARGET_OS=nuttx or make PX4_TARGET_OS=linux To test the linux build and make sure that the required directories exist, run: make linuxrun Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Based on NuttX work queue code. Not yet functional. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Import copies of work queue releated filed from NuttX. These are the original files. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Create and open I2C virtual device and support I2C_RDWR ioctl Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
The src/platform/linux/tests modules were commented out in the config file. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
LDFLAGS was missing -pthread Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Added linker script to resolve __param_start and __param_end. Added mc_att_control to list of supported builtins. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Thread based implementaton can't call errx or exit Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
The builtin commands all have _main suffix by convention so no need to show _main. Also nsh calls the commmands without the _main suffix. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
If the topic has not been published, orb_copy returns a negative number which causes update() to memset the data contents to zero. In some instances data is a null pointer. This causes a segment violation crash. Added a check for data != 0 Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
I2C class derives from CDev class which requires a devname but in at least some instances, a nullptr is passed for devname. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
When printing a uint64_t type using %llu, this works on a 32bit system, but on a 64bit machine uint64_t is an unsigned long. The compiler complains about unmatching types. The time times in PX4 should likely have been unsigned long long and not uint64_t as that type changes per architecture. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
For now it uses the bus number as the id. Not sure how this should actually be mapped. Seems like the I2C devices come up in random order and have random id but that a specific device can be found in the /sys/bus/i2c interface. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Running the blinkm device to test I2C Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
if termios.h is included before mathlib.h then BO is undefined. Since mathlib.h is not needed it was removed but I still don't know why this error occurs. Also added -lrt to link flags for clock_gettime Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Removed hardcoded requirement to use gcc Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
PX4 will not build with gcc-4.6. If you are running Ubuntu 12.04 still (you poor old sod) follow the directions at http://ubuntuhandbook.org/index.php/2013/08/install-gcc-4-8-via-ppa-in-ubuntu-12-04-13-04/ to install gcc-4.8.1 Alternatively you can install clang 3.4.1 for Ubuntu 12.04 from http://llvm.org/releases/3.4.1/clang+llvm-3.4.1-x86_64-unknown-ubuntu12.04.tar.xz Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Not yet functional. Full implementation will provide an IOCTL interface to do bi-directional transfer. will model the interface after Linux. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
When running the process without sufficient privilege to use real time scheduling, warn the user and run with SCHED_OTHER. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
ms5611 uses getopt to parse args but the static variable optind was not being properly updated. Replaced use of external getopt call with simple parser; Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Also fixed naming of mavlink files for NuttX build. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
- Missing static declarations for functions not used outside a file. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Fixed bug with missing quote in #error found by gcc 4.9.1 Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
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>
-
Mark Charlebois authored
The dataman module now works under linux using /tmp/dataman as the file path. Two files from NuttX were added to the Linux impl for single linked queue handling. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
uORB module now compiles and runs for Linux using the virtual CDev implementation. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
The previous name implied some kind of daemon. AppState is aggregated state of an application's running state and interfaces to request app termination, and check app state. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
The High Resilution Timer functions are stubbed out for now. Certain queue functions are required to compile uORB so adding the queue.c from NuttX. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Moved posix-like functions to vcdev_posix.cpp and updated the copyright notice. Added test case to make sure poll unblocks when a write occurs. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-