| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If PX4_I2C_SIMULATE is set to 1, then the actual I2C device will
not be opened and all transfers will succeed.
If PX4_I2C_SIMULATE is false and transfer() is called, then the
appropriate ioctl is make on the actual device.
if I2C::ioctl is called via px4_ioctl() then the command fails and
a warning is printed to use I2C::transfer
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
|
|
|
|
|
|
|
| |
The parameter is not present in the linux implementation so removed
the documentation for the parameter.
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
|
|
|
|
|
|
|
| |
To avoid confusion when a real device and a virtual device is
being used, changed CDev to VDev for Linux.
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
|
|
|
|
|
|
|
|
|
| |
Added PX4_ISFINITE(x) to px4_defines.h to handle the differences on
NuttX and Linux.
This change also picked up some file renaming for virtual character devices
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
|
|
|
|
|
|
| |
Create and open I2C virtual device and support I2C_RDWR ioctl
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
Running the blinkm device to test I2C
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
|
|
|
|
| |
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
- Missing static declarations for functions not used outside a file.
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
uORB module now compiles and runs for Linux using the
virtual CDev implementation.
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
|
|
|
|
| |
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
|
|
|
|
|
|
| |
Modified code to use OS independent header file for config settings.
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
|
|
|
|
|
|
|
| |
Keep existing API use in code. Bind the use of the OS independent
implementation in the systemlib layer.
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
Calls to task_delete and task_spawn_cmd are now
px4_task_delete and px4_task_spawn_cmd respectively.
The px4_tasks.h header was added to the affected files
and incusions of nuttx/config.h were removed.
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
|
| |
|
|
|
|
| |
-requiring arguments should be argc < 2
|
| |
|
| |
|
|\
| |
| | |
fixed publication of mixer limit flags
|
| | |
|
|\ \
| |/
|/| |
UBlox GNSS driver improvements
|
| |
| |
| |
| | |
earlier)
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
Also use full charge capacity instead of design capacity so that an old
battery's capacity will appear as lower than its original capacity but
it will still report 100% charged after charging
|
| | |
|
| |
| |
| |
| | |
this also fixes the behaviour of the -C option
|
| |
| |
| |
| |
| | |
if we can't read the temperature registers 10 times then disable the
feature.
|
| |
| |
| |
| | |
added "hmc5883 tempon" and "hmc5883 tempoff" to enable/disable
|
| | |
|
|\ \
| |/
|/| |
Support 16 channels on IO via S.BUS
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
|\ \ |
|
| | | |
|
| | |
| | |
| | |
| | | |
these are read at the same rate as the mag
|
| | |
| | |
| | |
| | | |
control surface inputs
|