Julian Oes
fa614a3cc1
RPi: just use RPI instead of RPI2.
...
The reason for this change is that RPi2 and RPi3 are compatible, and
hopefully all differences coming up can be resolved without ifdefs but
at runtime.
2016-07-16 15:51:00 +01:00
Beat Küng
4a199c1360
gyro calibration: avoid double initialization of gyro_scale data
...
They're initialized in do_gyro_calibration already
2016-07-14 14:17:38 +02:00
Julian Oes
f1b8bed5df
gyro_calibration: set scale to 1 instead of 0
2016-07-14 13:13:56 +02:00
Miguel Arroyo
3c11c0d8d8
Adds Calibration Support for RPi2 and Navio2 ( #4999 )
2016-07-07 22:38:17 +02:00
jwilson
c6250657eb
Added mag support to the DriverFramework mpu9250 driver. Shortened parameter names for legacy drivers. Added temporary ifdef's in the calibration code for Snapdragon Flight builds.
...
Signed-off-by: jwilson <jwilson@qti.qualcomm.com>
2016-05-31 16:43:12 +02:00
Julian Oes
8707cfe9f2
commander: use macro with wait in all calibrations
2016-04-05 15:36:03 -07:00
Julian Oes
1fc9b99307
commander: some rebase fixes
2016-03-24 13:10:02 +01:00
Julian Oes
bba0d0384d
drivers/modules: changes after mavlink_log change
...
The mavlink_log API changes lead to changes in all drivers/modules using
it.
2016-03-24 13:10:02 +01:00
Julian Oes
790fa7667c
commander: cherry-pick fixes
2016-03-24 13:08:31 +01:00
Julian Oes
88a812618c
commander: fix the calibration for NuttX.
...
This fixes some regressions on the calibration using NuttX, especially
considering the PRIME param and the device ids.
2016-03-24 13:08:31 +01:00
Julian Oes
e949d6d18a
commander: get PRIME parameter back
...
The PRIME param got lost on the way of the refactoring.
2016-03-24 13:08:31 +01:00
Julian Oes
1b5210ca13
sensors/calibration: use params in DF wrappers
...
Instead of using a uORB topic with the calibration values published in
sensors and consumed by the DriverFramework driver wrappers, let's just
use the the params directly. This is quite a rough change and needs
definitely some cleanup and refactoring.
2016-03-24 13:08:31 +01:00
Julian Oes
b9cc0b74e2
drivers: re-use calibration topic
...
E.g. instead of defining a gyro_scale struct in drv_gyro.h, use the
gyro_calibration message.
2016-03-24 13:08:30 +01:00
Julian Oes
98e407696e
commander: whitespace only
...
Trailing whitespace all over.
2016-03-24 13:08:30 +01:00
Mark Charlebois
fea910d45a
Code cleanup and ifdefs required for qurt build
...
Code that was previously out of tree that was #if 0, is now #ifdef __PX4_QURT.
These changes were required for flight using the qurt build.
Changes include code cleanup for shmem_posix.c.
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:43 +01:00
Lorenz Meier
ca125bccbd
Update error message
2015-11-19 16:03:36 +01:00
Lorenz Meier
c77c0f927b
Gyro cal: be more forgiving in calibration offset
2015-11-19 15:54:57 +01:00
Lorenz Meier
020844e9e9
Gyro: also output to console
2015-11-19 15:53:08 +01:00
Lorenz Meier
53ff04e016
Commander: Finish preflight update for prime sensor IDs
2015-10-14 19:35:12 +02:00
Lorenz Meier
e5bb1cff91
Store primary sensor ID to allow cross-check of calibration on next boot
2015-10-14 19:35:12 +02:00
Mark Charlebois
dcb55ff38d
Changed isfinite to PX4_ISFINITE
...
There are cross platform issues with the isfinite call that are handled
by PX4_ISFINITE
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-18 09:58:49 -07:00
Mark Charlebois
36f5d47ed9
Merge remote-tracking branch 'upstream/master' into linux
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
Conflicts:
src/modules/commander/gyro_calibration.cpp
src/modules/mavlink/mavlink_ftp.cpp
2015-05-16 15:04:38 -07:00
Lorenz Meier
3be1fc7d42
commander gyro calibration: Do not require a specific position, automatically start a retry after motion on the first try
2015-05-08 11:01:19 +02:00
Mark Charlebois
0cea93a55c
POSIX and QuRT: fixed calls needing px4_ prefix
...
There were some missed calls to open and ioctl that need to be
px4_open and px4_ioctl.
QuRT also does not provide usleep() so px4_time.h has to be included
in files calling usleep.
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-05 12:13:39 -07:00
Mark Charlebois
2446dfec16
Fixups after merge from master
...
MuORB was missing the orb_exists() function added to uORB.cpp
gyro_calibration.cpp still had some merge conflicts that had not been resolved.
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-28 12:28:10 -07:00
Mark Charlebois
190814bc97
Merge remote-tracking branch 'upstream/master' into linux
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
Conflicts:
src/drivers/rgbled/rgbled.cpp
src/modules/commander/PreflightCheck.cpp
src/modules/commander/airspeed_calibration.cpp
src/modules/commander/calibration_routines.cpp
src/modules/commander/gyro_calibration.cpp
src/modules/commander/mag_calibration.cpp
src/modules/mc_att_control/mc_att_control_main.cpp
2015-04-28 11:48:26 -07:00
Lorenz Meier
362672ece8
commander: Fix calibration feedback so that QGC picks up all error conditions
2015-04-26 17:33:45 +02:00
Don Gagne
a7f88d97b8
Sensor cal rework
...
- cancel support
- versioned cal messages
- better still detection
- better messaging
2015-04-26 14:34:19 +02:00
Mark Charlebois
a1332e699c
QuRT and POSIX changes - part 5
...
Last part of the main QuRT related changes
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-24 01:39:25 -07:00
Mark Charlebois
694427e4ba
Converted commander to use px4_posix calls
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 11:37:50 -07:00
Mark Charlebois
bba26c3430
Linux: enabled commander module
...
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>
2015-04-20 11:37:50 -07:00
Lorenz Meier
1da048549a
commander gyro cal: Optimize parameter set calls and allow up to 0.0055 rad/s deviation - tuned to allow in-field calibration, but fail anyone really rotating during the step
2015-04-19 16:06:52 +02:00
Lorenz Meier
1685f77031
Loosen the thresholds on gyro calibration based on in-field calibration feedback
2015-04-19 15:36:02 +02:00
Lorenz Meier
17ee20a338
commander: Improve gyro cal
2015-03-28 16:44:26 -07:00
Don Gagne
716fb561aa
Include sensor number
2015-03-28 13:09:07 -07:00
Daniel Agar
8aae66b893
trivial code style cleanup round 2
2015-03-27 23:38:58 -04:00
Lorenz Meier
904fc9b21c
commander: Improve gyro calibration
2015-03-15 17:24:29 +01:00
Lorenz Meier
807cf7bd16
Commander: Implement calibration routines for multi-sensor setups
2015-02-09 22:56:23 +01:00
Lorenz Meier
19cd496157
Commander: Use indexed sensor names in calibration routines
2015-02-03 08:55:16 +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
7f299ea0cc
Move commander to multi pub/sub API
2015-01-29 16:33:53 +01:00
Lorenz Meier
b51c669344
Commander: Improve calibration routines to produce more conscise and better sequenced instructions
2014-11-02 21:24:50 +01:00
Lorenz Meier
07fb1e089d
Make commander multi-device aware
2014-06-10 15:04:56 +02:00
Anton Babushkin
349809f535
sensors, commander: code style fixed
2014-05-11 13:36:51 +02:00
Anton Babushkin
ef42ef15c6
accel/gyro/mag calibration: big cleanup, use common messages
2013-10-21 22:24:59 +02:00
Anton Babushkin
ea89f23c91
calibration: bugs fixed, mavlink messages cleanup
2013-10-21 20:07:47 +02:00
Stefan Rado
ed79b686c5
Adjusted mavlink info messages during gyro calibration to not break QGroundControl.
2013-10-21 09:32:37 +02:00
Stefan Rado
6a624ff753
Fix gyro calibration for rotated sensors.
...
The calibration routine now uses the raw sensor values instead of the already rotated values.
2013-10-19 23:04:36 +02:00
Lorenz Meier
ac00100cb8
Hotfix: Disable gyro scale calibration to prevent people from wrongly using it
2013-09-18 08:43:38 +02:00
Lorenz Meier
2d83c6f825
Closing all opened file descriptors, fixed param save issue, tests clean
2013-09-01 12:47:10 +02:00