Commit Graph

11871 Commits

Author SHA1 Message Date
Felix Ruess c24b395589 [modules][messages] mission: LLA waypoints in 1e7deg instead of float
A 32bit float has 23bits for the mantissa, which is a bit more than 7 digits.
Since you already use 3 digits to represent the part to the left of the decimal point, that leaves about 4 digits for the rest..
So in the worst case of 180deg you have a resolution of only ~3m!

With 1e7deg 32bit int you get ~1cm resolution.

addresses first part of #984 (at least for the rotorcraft version, fixedwing version still converts to LLA float in between...)
2014-11-26 18:02:55 +01:00
Gautier Hattenberger c0074af11d [build] don't compile natnet if not needed 2014-11-26 17:57:37 +01:00
Felix Ruess 0fdbe7df4d Merge pull request #983 from paparazzi/ahrs_kill
[rotorcraft] force MODE_STARTUP instead of KILL until ahrs is aligned

- Go to MODE_STARTUP (which defaults to AP_MODE_KILL) instead of AP_MODE_KILL as long as the ahrs is not aligned.
- Remove AUTOPILOT_DISABLE_AHRS_KILL from all example airframes (but kept the functionality for now).

MODE_STARTUP is set to AP_MODE_NAV for the autonomous (without RC) ARDrone2.
Without AUTOPILOT_DISABLE_AHRS_KILL it will force MODE_STARTUP until the ahrs is aligned,
but still not allow to turn on the motors (as that also checks for ahrs_is_aligned).

This closes #964 (as long as you don't have AUTOPILOT_DISABLE_AHRS_KILL defined).
2014-11-26 17:44:40 +01:00
Felix Ruess fe02983feb [messages] possibility to add descriptions 2014-11-26 16:39:37 +01:00
Felix Ruess 1e2130271f [modules] rename flight_time to time_countdown
closes #886
2014-11-26 13:16:30 +01:00
Felix Ruess ee301947b6 [sim] remove launchsitl symlink
Please use pprzsim-launch directly, the launchsitl symlink was only meant to provide (partial) backwards compatibility for some time.
closes #919
2014-11-26 11:38:45 +01:00
Felix Ruess 53d7f27fe0 [rotorcraft] navigation: fix NavCircleCount 2014-11-25 15:03:34 +01:00
Felix Ruess 4f39d2ab7e [modules] rotorcraft_cam: fix DEFAULT_MODE 2014-11-25 15:03:07 +01:00
Felix Ruess 0cd9ed4cc6 [omap] start basic spi driver
totally untested...
2014-11-25 11:25:13 +01:00
Felix Ruess 78b52b6f3c [rotorcraft] arming: only check if motors can be armed if ahrs_is_aligned 2014-11-24 21:14:50 +01:00
Felix Ruess 63ba5a17a3 [rotorcraft] force MODE_STARTUP instead of KILL until ahrs is aligned
- Go to MODE_STARTUP (which defaults to AP_MODE_KILL) instead of AP_MODE_KILL as long as the ahrs is not aligned.
- Remove AUTOPILOT_DISABLE_AHRS_KILL from all example airframes (but kept the functionality for now).

MODE_STARTUP is set to AP_MODE_NAV for the autonomous (without RC) ARDrone2.
Without AUTOPILOT_DISABLE_AHRS_KILL it will force MODE_STARTUP until the ahrs is aligned,
but still not allow to turn on the motors (as that also checks for ahrs_is_aligned).

As far as I can see this should solve #964 as long as you don't have AUTOPILOT_DISABLE_AHRS_KILL defined.
2014-11-24 20:01:46 +01:00
Felix Ruess 0bafabcc0f [travis] run math tests 2014-11-24 18:58:39 +01:00
Felix Ruess da5de54450 [tests] add libpprzmath.so to LD_LIBRARY_PATH for running tests 2014-11-24 18:55:52 +01:00
Felix Ruess f7ae72dcb3 [tests] skeleton for testing math lib with libtap
using [libtap](https://github.com/zorgnax/libtap) to create a [TAP](http://testanything.org) (TestAnythingProtocol) producer.
You can also run the test (if already compiled) with prove:
```
prove --exec '' tests/math/test_pprz_math.run
```
2014-11-24 17:17:58 +01:00
Gautier Hattenberger 9913afeda5 Merge pull request #978 from fvantienen/bebop
UART and GPS bugs
2014-11-24 16:24:55 +01:00
Felix Ruess dd3bed7b2f update changelog 2014-11-24 15:14:40 +01:00
Gautier Hattenberger 1cf9b0e206 [gcs] also save size of widget when saving GCS layout
close #968
2014-11-23 23:45:24 +01:00
Freek van Tienen 3ae4c0a4ec [gps] Fix NMEA pointer error 2014-11-23 22:57:03 +01:00
Freek van Tienen 2affa15bed [uart] Fix stupid weak errors 2014-11-23 22:56:33 +01:00
dewagter c046fa7429 [ardrone] Handle memory full FTP upload error on ardrone (#967) 2014-11-21 16:12:10 +01:00
Felix Ruess ffa4c8dc41 [omap] i2c: disable some warnings and fix dox 2014-11-21 14:54:36 +01:00
Freek van Tienen eb38af898c [ms5611] Fix baro i2c transactions
Since the simple i2c driver for linux does busy waiting on i2c_submit (and not queue a new transaction),
setting the transaction status to done at the end (with a new transcaction in between) will set the status
of the wrong transaction...

Did not seem happen with the other i2c implementations (lpc21, stm32) so far, but since they add the transaction
to the queue which is handled in the I2C ISR, it could also happen there (race condition).

closes #960
2014-11-21 11:39:45 +01:00
Felix Ruess 5893091ea7 Merge pull request #946 from paparazzi/mpu60x0_ignore_cast_warning
[peripherals] mpuxxxx: use gcc pragma to ignore cast-qual warnings

The buffer is volatile, since filled from ISR...
But we know it's ok to use it here so we silence the warning.

Also there is a bug in some gcc version that incorrectly reports this as
peripherals/mpu60x0_spi.c:118:33: warning: cast discards '__attribute__((noreturn))' qualifier from pointer target type [-Wcast-qual]
see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55383
2014-11-21 10:36:47 +01:00
Freek van Tienen b474c5e126 [omap] Added linux i2c driver
closes #961
2014-11-21 10:06:55 +01:00
Gautier Hattenberger 8ae37c7f8b Merge pull request #959 from fvantienen/gps_furuno
[gps] Add Furuno NMEA based GPS

finally unblocking this stuff...
2014-11-21 10:01:17 +01:00
Freek van Tienen 1080da88d2 [gps] Add Furuno NMEA based GPS 2014-11-21 00:29:38 +01:00
Felix Ruess e24a21ce1d [conf] fix OCaml sim freqs for some airframes 2014-11-20 22:03:01 +01:00
Felix Ruess 8fd490f1e1 [imu] fix unbelievably stupid copy paste error 2014-11-20 21:40:43 +01:00
dewagter c61507317f [airframe] different radio_control in simulation 2014-11-20 21:32:31 +01:00
Felix Ruess 60c9bd16c4 [imu] fix default/weak implementation of imu_periodic
should fix #972
2014-11-20 19:07:41 +01:00
Felix Ruess ed9e970a0c fix radio_control sbus_dual subsystem 2014-11-20 14:38:09 +01:00
dewagter 88c95ce63b [conf] fix/part1 2014-11-20 14:24:57 +01:00
dewagter bf0a52af94 [OBC2014] Irrevisible failsafe on RC loss made optional in OBC rules 2014-11-20 14:13:36 +01:00
dewagter f3845efcd9 [modules] config_mkk_v2 settings to module 2014-11-20 14:12:01 +01:00
Felix Ruess 6250317f11 [rotorcraft] datalink: check ac_id of RC_4CH message
should fix at least some of the problems described in #965
2014-11-19 20:22:36 +01:00
Felix Ruess 25fb274954 [simulator] OCaml sim: simulate sys_time
should fix #962
2014-11-19 17:51:41 +01:00
Felix Ruess cbb497ed66 [tests] show warnings by default 2014-11-19 15:42:53 +01:00
Gautier Hattenberger c319d770a4 Merge pull request #956 from paparazzi/algebra_int_unsigned
[math] some cleanup and fixes for fixedpoint functions

Tested by @fvantienen and @flixr
2014-11-19 12:57:13 +01:00
Felix Ruess 9aee8b3777 create_module helper: only one init function 2014-11-19 10:53:23 +01:00
Felix Ruess a99d6662d6 [math] fix int32_vect2_normalize
keep correct sign of vector
2014-11-18 17:39:26 +01:00
Felix Ruess dd0c6cc1fa [rotorcraft] navigation: unsigned nav_leg_length 2014-11-18 17:13:07 +01:00
Felix Ruess b0070b261d [state interface] speed_norm_i is unsigned 2014-11-18 17:13:07 +01:00
Felix Ruess c03427b700 [math] int32_sqrt returns unsigned int
and takes unsigned int as arg
2014-11-18 17:13:07 +01:00
Felix Ruess 68e907947e [tests] get number of test targets for plan 2014-11-18 17:06:05 +01:00
Gautier Hattenberger 82d3015801 [light] allow to define a led for light module in airframe.h, not only as compile flag 2014-11-18 16:55:51 +01:00
Felix Ruess 80953a8498 [stm32] replace remaining rcc_peripheral_enable_clock
by less error prone rcc_periph_clock_enable
2014-11-18 15:18:45 +01:00
Felix Ruess dcea7274c5 [airborne] don't call uart_event() in simulators
uart_event was added as a weak function with #951, but it is not provided in simulators.
The compiler (correctly) fills in a zero and the simulator segfaults.

For now simply fix it by not calling uart_event in simulators.
2014-11-18 14:26:47 +01:00
Gautier Hattenberger ec865d84f0 [imu] mpu9250 mag has a different channel order than gyro/accel 2014-11-18 14:08:28 +01:00
Gautier Hattenberger b17322ecd5 [peripherals] ignore cast-qual for mpu9250 as well 2014-11-18 10:05:46 +01:00
Felix Ruess fadb06771f [peripherals] mpu60x0: use gcc pragma to ignore cast-qual warnings
The buffer is volatile, since filled from ISR...
But we know it's ok to use it here so we silence the warning.

Also there is a bug in some gcc version that incorrectly reports this as
peripherals/mpu60x0_spi.c:118:33: warning: cast discards '__attribute__((noreturn))' qualifier from pointer target type [-Wcast-qual]
see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55383
2014-11-18 10:02:38 +01:00