Commit Graph

15011 Commits

Author SHA1 Message Date
knmcguire ed9a15ca6f Generic rotation matrix for mounted stereocamera (#1998)
This pull request adds a rotation matrix to the stereocam module group. The stereocam in combination with the lisa-s, the new lisa MXs, and the ardrone are usually mounted on there in different direction (facing backwards, forwards and downwards). Before, we had to constantly double check the direction of the velocities to transform that manually to body fixed coordinates, which was very prone to mistakes. Same goes with the derotation of optical flow on the stereocam.

This addition should make it easier and more generic for platforms with the mounted stereocamera.
2017-02-13 20:29:27 +01:00
Ewoud Smeur df32f7de80 [fix] Correct cpu_ticks_per_sec for chibios 2017-02-13 18:36:30 +01:00
Gautier Hattenberger feedf244e8 Merge pull request #2008 from paparazzi/auto_imu_scaling
MPU based IMUs: default scaling based on selected range
2017-02-13 09:47:52 +01:00
Michal Podhradsky 9842681122 [chibios] Initial support for VMS ECU 1.0 (documentation to be added on the wiki later) 2017-02-12 18:50:39 -08:00
Michal Podhradsky a64141f406 Fix typo in makefile 2017-02-12 18:50:22 -08:00
Felix Ruess 6ca62208ff [imu] scaling based on range for MPU9250 IMUs 2017-02-12 17:38:04 +01:00
Felix Ruess b53e1d96a9 [imu] scaling based on range for some more MPU60X0 based IMUs 2017-02-12 16:27:14 +01:00
Ewoud Smeur 184cdc9b7d [INDI] small compile error fix 2017-02-12 16:19:05 +01:00
Ewoud Smeur 98ba658b64 [indi] support rate mode (#2004)
Also prevent unused parameter warning for the thrust callback
2017-02-12 14:52:47 +01:00
Ewoud Smeur 9792de5704 [hybrid vehicles] gradually transition back from forward flight (#2003)
Before, if you wanted to go back from forward flight to hover, the pitch angle setpoint would jump back to hover. Some vehicles can handle this, but possibly not all. With this commit when you switch back the setpoint will gradually come up again, just like in the transition to forward flight.

Also add the attitude visualizer message to the indi controller
2017-02-12 14:51:46 +01:00
Ewoud Smeur 6ffd819f33 Module with servo tester function (#2001)
useful for identifying the response of a servo
2017-02-12 14:36:23 +01:00
Gautier Hattenberger c145dfee53 [imu] auto scalin based on range
for MPU60x0 and MPU9250 drivers, used on Apogee IMU as an example
2017-02-12 12:01:59 +01:00
Michal Podhradsky 1a783c5edd [chibios] Initial support for PX4FMU_v2 2017-02-11 18:50:32 -08:00
Gautier Hattenberger 498c326ff7 [generator] always pass flight plan name as it is needed for modules.h
This should fix the error described in #2006.
But it is still a dirty hack. Rewritting all this part is a work in
(slow) progress.
2017-02-12 00:19:16 +01:00
Michal Podhradsky 53c42e3233 [chibios] Support for Lisa M 2.0 and 2.1 boards 2017-02-11 11:33:50 -08:00
Michal Podhradsky 1af7460619 [chibios] Lia bootloader now works with Chibios (a custom linker script was needed) 2017-02-11 11:18:19 -08:00
Michal Podhradsky 35c38041f6 [chibios] Lia works without bootloader (only LED flash tested), ChibiOS is having issues with a bootlodaer (probably something with the linker script) 2017-02-11 10:43:42 -08:00
Michal Podhradsky e921f08c91 [chibios] Initial support for Lia board (untested) 2017-02-11 10:10:07 -08:00
Michal Podhradsky 601d942c71 [chibios] Make compatible with STM32F1 chips 2017-02-11 10:09:37 -08:00
Michal Podhradsky 38caab953e [chibios] Pass luftboot vector table shift to Assembler flags 2017-02-11 10:09:06 -08:00
Michal Podhradsky 08f7e4c56e Allow BMP JTAG on Lia board 2017-02-11 10:07:39 -08:00
Michal Podhradsky e0ce4ac170 [chibios] Fix adc driver to support STM32F1xx chips 2017-02-10 17:34:47 -08:00
Michal Podhradsky 64fd5a0076 Fix vector table offset 2017-02-10 17:34:12 -08:00
Michal Podhradsky 48fa641f15 [sd_log] Fix compiler warning 2017-02-10 17:33:50 -08:00
Michal Podhradsky 316c45b501 Remove debugging console output from the makefile 2017-02-10 17:33:19 -08:00
Michal Podhradsky 03a0d63822 Update chibios to the latest stable version 2017-02-10 17:32:56 -08:00
Gautier Hattenberger 67d54d7994 [conf] fix conf for blender airframe 2017-02-10 23:30:25 +01:00
Felix Ruess a386448edb radio_control_spektrum: better document USE_DSMX define 2017-02-09 23:11:12 +01:00
Ewoud Smeur 12d6c35c25 [INDI] support for servos (#2005)
Now you can add dynamics for servos next to the first order dynamics of
motors. Also, you can give a rate limit in PPRZ/loop units
2017-02-09 10:39:26 +01:00
Ewoud Smeur 8340f82d02 some settings for indi full (#2002) 2017-02-09 10:23:34 +01:00
Gautier Hattenberger ca801af1c7 [chibios] rename some variables in makefile 2017-02-07 12:48:03 +01:00
Michal Podhradsky dcae49bed3 Cleaned up ChibiOS makefile script (now depends on linker scripts in chibios directory)
Added first part of lia_1.1_chibios makefile
Tested on Lisa MX
2017-02-06 18:38:46 -08:00
Michal Podhradsky 056433d653 Fixed typo in the px4 linker script comment 2017-02-06 17:43:32 -08:00
Michal Podhradsky 4ab2ea10f4 [Lia] Fixed compilation warnings for Lia board 2017-02-06 17:42:51 -08:00
Gautier Hattenberger b1f6cde2c2 [rotorcraft] add support of ChibiOS for the rotorcraft firmware (#1999)
* [rotorcraft] add support of ChibiOS for the rotorcraft firmware

allows in particular to use the SDLOG on Apogee boards, and any modules
based on chibios threads in general

* [rotorcraft] also port rotorcraft FBW part to chibios
2017-02-06 21:42:15 +01:00
Ewoud Smeur 841d83ec81 Matlab script for estimating control effectiveness (#1994) 2017-02-06 21:40:33 +01:00
Ewoud Smeur fc9fafee26 Warn if GUIDANCE_INDI_RC_DEBUG is true 2017-02-06 21:38:09 +01:00
Felix Ruess 17cc32d4b2 forgot to save all files in last commit 2017-02-05 23:54:44 +01:00
Felix Ruess d98973695b fix autopilot STARTUP_MODE
make sure the autopilot implementation init which sets the STARTUP_MODE is called after the guidance module init has run.

This should fix a regression from #1977 and #1978
2017-02-05 23:51:22 +01:00
Michal Podhradsky 04e138c6a3 [px4] Allow SWD flashing for px4_io 2017-02-03 16:42:51 -08:00
kevindehecker 04025de32d Disable default uart6 intermcu port for none intermcu px4 boards (#1997) 2017-02-02 18:51:16 +01:00
Open UAS 32b4cca75b Part of current config cleanup 2017-02-02 09:55:10 +01:00
kevindehecker 129e8dac7f Automatically switch build settings qtcreator (#1991)
Automatically switch build settings when changing aircraft in pprz center. Also set standard code style settings
2017-02-01 10:40:56 +01:00
kevindehecker 67f5022ad9 Intermcu spektrum compile fixes (#1996) 2017-01-31 22:15:38 +01:00
Ewoud Smeur 1707c0059f Fix for buidling indi_rate (#1993)
With this commit, you can only use indi rate, when you are using
stabilization indi or indi_simple.

Also fixing spelling of stabilization
2017-01-30 22:43:56 +01:00
Gautier Hattenberger c3ec53141e [board] add support for Parrot Disco plane (#1992)
- mostly based on Bebop2
- add PWM output and SBUS input on Linux (based on ArduPilot work)
- some changes to the Linux serial port lib to handle arbitrary baudrate
  (this code could be improved and factorized in the future)
- all sensors are working, the video system is not tested
2017-01-30 00:22:09 +01:00
Felix Ruess d9b1cd21f6 [conf] fix Quad Navstik and update some settings 2017-01-29 11:47:35 +01:00
Felix Ruess 33e699c8e4 [modules] fix intermcu can/spi 2017-01-29 11:41:58 +01:00
Felix Ruess 9975636582 silence unused arg warning 2017-01-29 11:34:09 +01:00
Felix Ruess 32f4ce9453 [modules] fix actuators mkk_v2 2017-01-29 11:33:31 +01:00