Julian Oes
5b9dea5604
Replacing usleep with px4_usleep
...
This is a step towards isolating time from the system.
2018-12-22 10:32:18 +01:00
Daniel Agar
48d9484ceb
commander fix and enforce code style
2018-11-28 20:42:03 -05:00
Daniel Agar
acc24da0c2
delete gyro_report (alias for sensor_gyro_s)
2018-11-06 07:43:43 +08:00
Daniel Agar
9ce83f2208
fix all sign-compare warnings
2018-07-01 09:36:55 +00:00
Daniel Agar
ea3acb7121
cmake remove circular linking and reorganize
...
- px4_add_module now requires MAIN
- px4_add_library doesn't automatically link
2018-04-29 21:48:54 -04:00
Robbie Sharma
ab51a41793
Removed [cal] references from calibration_log_critical() routines.
2017-11-24 08:12:37 +01:00
Daniel Agar
8b7de092a2
sensors delete unused CAL_BOARD_ID
2017-10-29 16:24:31 +01:00
davidaroyer
99799d83b1
ocpoc support: update copyright dates
2017-06-04 04:24:50 +08:00
Mohammed Kabir
ed5cf9f729
commander : simplify platform defines
2017-05-27 00:31:05 +02:00
Mohammed Kabir
769fa7134a
commander : make gyro calibration correctly lock-in to corresponding uORB topic
2017-05-27 00:31:05 +02:00
Mohammed Kabir
d177ccc9a7
commander : warn if excess gyros are connected
2017-05-27 00:31:05 +02:00
Nate Weibley
9eb0e62787
Support calibration of fast+slow gyros #6998
2017-04-13 20:22:35 +02:00
Beat Küng
43afb8d41e
sensor calibration: remove param_save_default() calls
2017-04-06 11:49:03 +02:00
David Sidrane
473c211eb0
gyro_calibration uses simpler common bord indentity api
2017-02-04 22:27:04 +01:00
Beat Küng
b89b76fbe6
gyro_calibration: use param_notify_changes
2017-02-03 13:57:48 +01:00
Paul Riseborough
bdbc4f4d65
commander: fix bug in gyro calibration
...
If the same gyro data was contained in two uORB instances, the thermal offset coefficient was being corrected twice.
TODO should fix what was causing data from the same sensor to appear on two uORB topics.
2017-02-01 08:40:23 +01:00
Beat Küng
4763a119bc
calibration: make sure to notify the system when temp calibration changes
...
This is needed so that temperature compensation reads in the updated values
and publishes the updated sensor_correction topic.
2017-02-01 08:40:23 +01:00
Beat Küng
7ebe2ac017
gyro_calibration: take into account temperature compensation when storing the scale
2017-02-01 08:40:23 +01:00
Beat Küng
51def4fc60
gyro_calibration: make sure to initialize sensor_correction properly
...
if it's not published yet or published with low frequency, this makes sure
we have valid data.
also:
- _sensor_correction -> sensor_correction
- remove unnecessary init of sensor_correction_sub
2017-02-01 08:40:23 +01:00
Paul Riseborough
62694d92d2
commander: rework IMU cal for compatibility with temperature compensation
2017-02-01 08:40:23 +01:00
David Sidrane
63e3bbde07
gyro_calibration is using board_get_uuid_raw32 instead of mcu_unique_id
2017-01-25 07:43:11 +01:00
wangxdflight
b693e29d64
enable px4 flight for excelsior(legacy)
2017-01-16 08:25:58 -08:00
Beat Küng
241fd629ce
ERROR macro: get rid of the many 'oddly, ERROR is not defined for c++', use PX4_ERROR
2016-09-30 13:50:51 +02:00
Michael Schaeuble
6aa8fcdf53
Enable commander module for Parrot Bebop
2016-08-05 10:15:11 +02:00
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