aboutsummaryrefslogtreecommitdiff
path: root/src/drivers
Commit message (Collapse)AuthorAgeFilesLines
* Linux: added read and write function overrides for i2cMark Charlebois2015-04-202-2/+25
| | | | Signed-off-by: Mark Charlebois <charlebm@gmail.com>
* Linux: I2C implementation with simulator stubMark Charlebois2015-04-202-43/+38
| | | | | | | | | | | | | 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>
* Linux: removed documentation of parameterMark Charlebois2015-04-201-1/+0
| | | | | | | The parameter is not present in the linux implementation so removed the documentation for the parameter. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
* Linux: changed CDev to VDev for virtual device implementationMark Charlebois2015-04-208-100/+82
| | | | | | | 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>
* Fixed std::isfinite vs isfinite differencesMark Charlebois2015-04-204-2/+2
| | | | | | | | | 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>
* Linux: I2C virtual deviceMark Charlebois2015-04-202-2/+30
| | | | | | Create and open I2C virtual device and support I2C_RDWR ioctl Signed-off-by: Mark Charlebois <charlebm@gmail.com>
* Linux: Handle nullptr passed to I2C constructorMark Charlebois2015-04-201-1/+4
| | | | | | | 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>
* Linus: print format fixes to build with clang on IFC6410Mark Charlebois2015-04-202-3/+3
| | | | Signed-off-by: Mark Charlebois <charlebm@gmail.com>
* Linux: I2C opens /dev/i2c-xMark Charlebois2015-04-202-2/+12
| | | | | | | | | | | 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>
* Linux: Add support for blinkm to test I2C layeringMark Charlebois2015-04-203-1/+1026
| | | | | | Running the blinkm device to test I2C Signed-off-by: Mark Charlebois <charlebm@gmail.com>
* Linux: added I2C classMark Charlebois2015-04-204-114/+76
| | | | Signed-off-by: Mark Charlebois <charlebm@gmail.com>
* Linux: Added config and stubs to compile I2C device for LinuxMark Charlebois2015-04-205-123/+314
| | | | | | | 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>
* Linux: replaced getopt in ms5611_linux.cppMark Charlebois2015-04-201-55/+114
| | | | | | | | | 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>
* Linux: Minor fixes of error caught by gcc-4.9.1Mark Charlebois2015-04-201-0/+1
| | | | | | - Missing static declarations for functions not used outside a file. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
* Support for building more modules with LinuxMark Charlebois2015-04-2024-286/+1822
| | | | | | | | | | | 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>
* Added MuORB based on virtual CDev implementationMark Charlebois2015-04-203-38/+28
| | | | | | | uORB module now compiles and runs for Linux using the virtual CDev implementation. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
* Added new file for virt dev posix-like functions and test caseMark Charlebois2015-04-205-200/+305
| | | | | | | | | 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>
* Fixes to compile again for NuttXMark Charlebois2015-04-202-8/+8
| | | | Signed-off-by: Mark Charlebois <charlebm@gmail.com>
* AddedMark Charlebois2015-04-206-526/+1820
| | | | Signed-off-by: Mark Charlebois <charlebm@gmail.com>
* Use px4_config.h instead of nuttx/config.hMark Charlebois2015-04-2068-68/+68
| | | | | | Modified code to use OS independent header file for config settings. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
* Reverted: Use OS independent API for task creation/deletionMark Charlebois2015-04-209-23/+23
| | | | | | | 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>
* Use OS independent API for task creation/deletionMark Charlebois2015-04-209-23/+23
| | | | | | | | | | 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>
* Commander: Play startup tune if preflight checks are good, play alarm otherwiseJohan Jansen2015-04-201-2/+3
|
* fix incorrect argc < 1 check for no argumentsDaniel Agar2015-04-185-5/+8
| | | | -requiring arguments should be argc < 2
* Add STM32F4 discovery config.Lorenz Meier2015-04-166-1/+526
|
* Store the port so the in use port will be referenced when reopening.Simon Wilks2015-04-131-2/+8
|
* Merge pull request #2008 from PX4/mixer_limit_publicationLorenz Meier2015-04-124-3/+23
|\ | | | | fixed publication of mixer limit flags
| * fixed publication of mixer limit flagsRoman Bapst2015-04-104-3/+23
| |
* | Merge pull request #1992 from Zefz/gps-improvementsLorenz Meier2015-04-111-2/+17
|\ \ | |/ |/| UBlox GNSS driver improvements
| * UBlox: Check valid time bit for NAV_TIMEUTC messages (used for Ublox 6 and ↵Johan Jansen2015-04-101-0/+1
| | | | | | | | earlier)
| * UBlox: Only use time and date if flags are validJohan Jansen2015-04-071-0/+4
| |
| * UBlox: Only use fix and velocity if flags are validJohan Jansen2015-04-071-2/+12
| |
* | batt_smbus: add ioctl to return batt capacityRandy Mackay2015-04-102-10/+53
| | | | | | | | | | | | 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
* | hmc5883: read the temperature every 10 samples when enabledAndrew Tridgell2015-04-081-19/+33
| |
* | hmc5883: added -T option to enable temperature compensationAndrew Tridgell2015-04-081-21/+18
| | | | | | | | this also fixes the behaviour of the -C option
* | hmc5883: try to cope with genuine 5883 partsAndrew Tridgell2015-04-081-1/+25
| | | | | | | | | | if we can't read the temperature registers 10 times then disable the feature.
* | hmc5883: added support for temperature compensationAndrew Tridgell2015-04-081-4/+105
| | | | | | | | added "hmc5883 tempon" and "hmc5883 tempoff" to enable/disable
* | drv_mag: added ioctl to control temperature compensationAndrew Tridgell2015-04-081-0/+3
| |
* | Merge pull request #1819 from PX4/chan16Lorenz Meier2015-04-071-5/+11
|\ \ | |/ |/| Support 16 channels on IO via S.BUS
| * PX4IO driver: Support 16 output channelsLorenz Meier2015-03-151-5/+11
| |
* | trivial code style cleanup round 2Daniel Agar2015-03-2710-18/+22
| |
* | Mag drivers: Temp supportLorenz Meier2015-03-251-0/+1
| |
* | HMC5883: Temp dummy valueLorenz Meier2015-03-251-0/+3
| |
* | LSM303D: Temp supportLorenz Meier2015-03-251-6/+7
| |
* | MPU6K: Temp supportLorenz Meier2015-03-251-1/+1
| |
* | mpu6000: add set_accel_rangeJonathan Challinger2015-03-251-71/+40
| |
* | Merge branch 'pullrequest-imu-temperature' of git://github.com/tridge/FirmwareLorenz Meier2015-03-252-5/+25
|\ \
| * | mpu6000: show temperature in "mpu6000 info"Andrew Tridgell2015-03-171-3/+10
| | |
| * | lsm303d: support temperature readings in lsm303dAndrew Tridgell2015-03-171-2/+15
| | | | | | | | | | | | these are read at the same rate as the mag
* | | PX4IO driver: Add mapping of AUX1-3 channels, in case these are also used as ↵philipoe2015-03-241-0/+18
| | | | | | | | | | | | control surface inputs