- Apr 20, 2015
-
-
Mark Charlebois authored
Added the basic files to start building for QuRT Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Some virtual devices were mapped to /vdev. Putting them back to /dev. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
list_devices will list virtual devices starting with "/dev/". list_topics will list topics ("/obj/") Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
The commander module now compiles for Linux. state_machine_helper_linux.cpp iterates over the virtual devices vs all devices under /dev as per NuttX when disabling publishing. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Quelch stderr when looking for clang-3.5. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Call to read should have been px4_read. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Simulator gets incoming MPU data and gives raw MPU data to the gyrosim sensor when read. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
The HIL driver now runs in the Linux build Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Simulator listens for UDP input data at port 9876. Data is for now comma separated. Not yet connected to the various sim classes: accelsim, gyrosim, magsim. Barometer measurements not yet supported. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
px4_task_t is negative for failure conditions. It was set mistakenly to pthread_t (which is unsigned) for LInux. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Fixed to use clang 3.4.2 on Ubuntu 12.04 Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Was checking if argc < 1 and then accessing argv[1]. Fixed by checking if argc < 2. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Converted px4_linux_tasks to C++ so the task struct can use a string. Sometimes the name string was in the stack of the calling function and goes out of scope. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
The name of the app was adc but should have been adcsim. Added a barometer simulator. This will allow ms56711_linux to depend on real devices and not simulation. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
The sensor module is now able to run after the simulation modules are started. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Use %zd instead of %d or %ld for sizeof(x). Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
The code is based on mpu6000. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
GCC 4.8 and higher implement 16 byte static data alignment on 64-bit. This means that the 24-byte param_info_s variables are 16 byte aligned by GCC and that messes up the assumption that the address of the second parameter is at ¶m[0]+sizeof(param[0]). When compiled with clang it is true, with gcc is is not true. See https://llvm.org/bugs/show_bug.cgi?format=multiple&id=18006 The fix is needed for GCC >=4.8 only. Clang works fine without this. Added __attribute__((aligned(16))) to first member of param_info_s. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
The calls to open, close, ioctl should have been px4_open, px4_close and px4_ioctl. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
This is a bug and is unsafe. I am not going to change the code but it needs to be changed to a cast to int or a <= as it is unsafe to check for equality with 0.0F. Disabled warning for GCC 4.9 for now. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Function was always returning -ENOTTY instead of the "ret" variable. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Previously it created 4 instances instead of the next available slot. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
The list_tasks and list_devices commands will show lists of running px4 threads and created virtual device nodes. The list_builtins command was removes and the list of commands will be shown if return is pressed. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
The MS5611_SIM class is supposed to simulate data from a real ms5611. An externl simulator could provide an interface to call to get data that would be returned from a transfer() call. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Drivers simulating HW can implement specific behavior for calls to transfer. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
The getopt command uses global variables and is not thread safe. Created a minimal px4_getopt version that supports options with or without an arg, and random placement of options on the command line. This version modifies the order of the args in argv as does the POSIX version of getopt. This assumes that argv[0] is the program name. Nuttx may not support that properly in task_spawn. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
If sudo is used to run socat the tty cannot be opened by a regular user Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
The simulator satisfies the dependencies for an accelerometer being present. The accel code compiles but is not fully functional. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
The simulated device satisfies the factory pattern used by MS5611 to create a specific I2C or SPI device instance. For now the functions just return true, but should/could return simulated data. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
I have not been able to unravel why nullptr is passed as the device path to the constructor of ms5611_i2c. This crashes the VDev code as it expects to create a virtual driver with the device path passed as devname. It causes VDev to do a strncmp with null. Using /vdev/ms5611_i2c as the name for the now. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Calls to open and close were used instead of px4_open and px4_close. Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-
Mark Charlebois authored
Signed-off-by:
Mark Charlebois <charlebm@gmail.com>
-