Commit Graph
277 Commits
Author SHA1 Message Date
Mark Charlebois 3336fce1f4 QuRT and POSIX changes
Partial commit of the changes for QuRT and related changes for POSIX

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-24 00:52:44 -07:00
Mark Charlebois f63ab3d5e3 Merge branch 'master' into linux
Signed-off-by: Mark Charlebois <charlebm@gmail.com>

Conflicts:
	makefiles/firmware.mk
2015-04-22 10:38:46 -07:00
Mark Charlebois 36a9f7a818 Posix: fixed calls to open that should be px4_open
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-21 23:26:14 -07:00
Mark Charlebois da29004a26 Sync state_machine_helper_posix to state_machine_helper
state_machine_helper_posix.cpp was out of sync with
state_machine_helper_posix.cpp.

Added debug to detect when sensors is started before uorb.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-21 22:04:01 -07:00
Don Gagne 638be07c2c Use new @board attribute for ifdef's 2015-04-21 12:31:30 -07:00
Mark Charlebois f3b5076d70 Linux to posix conversion
Changed "linux" target to "posix". Most of the changes are shared with
QuRT and with OSX. The Linux specific parts are in for i2c which uses
<linux/i2c.h> and <linux/i2c-dev.h>.

There is also a check for __PX4_LINUX in mavlink for a tty ioctl that is
not supported.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-21 09:53:09 -07:00
Andreas Antener 9c282cf6d6 added parameters to specify range and channel, caping result 2015-04-21 07:01:58 +02:00
Mark Charlebois 894611df04 Linux: Fixed argc check in sensors_main
Was checking for argc < 1, and should be argc < 2.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 11:34:12 -07:00
Mark Charlebois d013ac0927 Support for building more modules with Linux
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>
2015-04-20 11:07:00 -07:00
Mark Charlebois 9758112e31 Use px4_config.h instead of nuttx/config.h
Modified code to use OS independent header file for config settings.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:55:41 -07:00
Mark Charlebois bf429188b4 Reverted: Use OS independent API for task creation/deletion
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>
2015-04-20 10:49:44 -07:00
Mark Charlebois ddb32742eb Use OS independent API for task creation/deletion
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>
2015-04-20 10:49:44 -07:00
Lorenz Meier 5c44146c1b sensors app: Be less verbose 2015-04-20 09:14:13 +02:00
Lorenz Meier 1c8e79cbf1 sensors app: Always set a valid rotation, even if sensor is unconfigured 2015-04-18 20:34:18 +02:00
Daniel Agar 2e824bbeea fix incorrect argc < 1 check for no arguments
-requiring arguments should be argc < 2
2015-04-18 12:02:58 +02:00
Lorenz Meier c4b98fb47d Revert "Use new @board attribute for ifdef support"
This reverts commit 750b02b4e5.
2015-04-18 11:39:03 +02:00
Don Gagne 750b02b4e5 Use new @board attribute for ifdef support 2015-04-18 11:13:04 +02:00
Don Gagne 05c351183f Parameter meta data fixes 2015-04-15 11:29:37 -07:00
Don Gagne 07853fbb58 Fixed warnx messages to show correct sensor # 2015-03-28 13:09:07 -07:00
Lorenz Meier 81546e8f84 sensors app: Log all temperature 2015-03-25 22:58:54 -07:00
Daniel Agar c2abb0f82a fix code style if trivial one line difference 2015-03-19 23:49:36 +01:00
Don Gagne dfd6be78bf Add RC_CHAN_CNT, RC_TH_USER
These are used by ground station software
2015-03-03 09:22:01 -08:00
Lorenz Meier 675b86550f Sensors: Clear old mag rotation param once new values is present 2015-02-28 20:49:54 +01:00
Lorenz Meier e4830eb53f mag detection (sensors / commander): Default all sensors to internal, set the ones which have been found explicitely to zero if they were -1. 2015-02-28 04:01:10 +01:00
Lorenz Meier 2e4c0c3156 sensors app: Comment handling of old param values properly 2015-02-15 19:52:02 +01:00
Lorenz Meier 6fd89aa2bd Rsensors app: Programming style: rely on logical orr for failed evalution. 2015-02-15 19:52:02 +01:00
Lorenz Meier 4740568446 sensors: Update param name 2015-02-15 19:52:02 +01:00
Lorenz Meier 162814c33e sensors: Set up mag rotation parameters correctly 2015-02-15 19:52:02 +01:00
Lorenz Meier bed3eaafa1 Sensor app: Formatting, documentation and cleanup 2015-02-15 19:52:01 +01:00
Lorenz Meier 12ae984198 sensors app: Use -1 in rotation parameter to indicate that a sensor cannot be rotated as it is internal. 2015-02-15 19:52:01 +01:00
Lorenz Meier 3d195bc7cc Proper mag rotation handling 2015-02-15 19:52:01 +01:00
Lorenz Meier 81c9b9fd95 Get secondary mag to work, but only if internal 2015-02-10 22:01:31 +01:00
Lorenz Meier df2ad183e3 Initialize error counts high enough 2015-02-09 22:56:26 +01:00
Lorenz Meier 3a43649850 sensors app: Fix loading of calibration params 2015-02-09 22:56:25 +01:00
Lorenz Meier bd90700f59 Sensors app: Improve sensor config handling 2015-02-09 22:56:24 +01:00
Lorenz Meier ddb7d49354 Sensors: Move to 0 based indices 2015-02-09 22:56:23 +01:00
Lorenz Meier dc46736ead Merge ROS into master 2015-02-03 20:07:55 +01:00
Thomas Gubler 2252a9696d fix codestyle in sensors.cpp 2015-02-03 18:13:01 +01:00
Thomas Gubler f53aa5628e sensors: init accel and gyro with default rates 2015-02-03 18:13:01 +01:00
Lorenz Meier 23e7823b51 sensors app: Use indexed param names 2015-02-03 08:55:16 +01:00
Thomas Gubler 84ff3c671d Merge remote-tracking branch 'upstream/master' into ros_messagelayer_merge2_attctrl_posctrl
Conflicts:
	src/drivers/px4fmu/fmu.cpp
2015-02-01 11:06:47 +01:00
hauptmech 0b784c20c8 Save and check device id for acc and gyro calibration parameters.
Fix config utility to work with all devices of each type.
Accel, gyro and mag devices correctly set their device_id devtype.
Combo devices (mpu6000 lsm303d) now correctly return their devtype.
config util shows device id for all sensor types.
Add, save during calibration and check during preflight ID parameters for accelerometer and gyro
2015-01-31 15:53:34 +01:00
Lorenz Meier 9190d59791 Move sensors app to multi pub/sub 2015-01-29 16:33:53 +01:00
Lorenz Meier c3eb10560b Move sensors to new mag interface 2015-01-29 16:33:53 +01:00
Thomas Gubler 2d124852c1 propagate uorb contants change through all modules/drivers 2015-01-28 16:31:41 +01:00
Thomas Gubler dcdde8ea88 Merge remote-tracking branch 'upstream/master' into ros_messagelayer_merge
Conflicts:
	src/modules/attitude_estimator_ekf/attitude_estimator_ekf_main.cpp
	src/modules/uORB/topics/vehicle_attitude.h
2015-01-21 14:41:03 +01:00
Lorenz Meier 9a40fe4ede Sensors: Fix corner case on FD leak (not a real leak) 2015-01-21 08:58:47 +01:00
hauptmech e18e5ca5b5 Add SENS_MAG_ID parameter
Record devid to SENS_MAG_ID during mag calibration
Verify devid matches SENS_MAG_ID during preflight_check
2015-01-17 18:41:43 +01:00
Thomas Gubler f960bbf529 bring back switch_pos_t 2015-01-08 10:54:09 +01:00
Thomas Gubler 7507e4a4b5 sensors: argument is not an enum anymore 2015-01-05 15:31:28 +01:00