19453 Commits

Author SHA1 Message Date
Beat Küng
94dbf358bd vmount: refactor architecture & use C++
This splits vmount into inputs and outputs modules with a small API in
between. It allows for greater flexibility, as any input method can be
combined with any output method. At the same time it is easy to add a new
input or output module.
2016-09-06 11:33:18 +02:00
Beat Küng
8757b9a9a5 cmake posix sitl: add vmount driver 2016-09-06 11:33:18 +02:00
Leon
faebdeedcf vmount: add mount and ROI implementation
MavLink spec implementation

implemented vehicle_roi topic

rename old gimbal to rc_gimbal

little changes

corrected RC Gimbal group

Starting ROI implementation in commander

implementation done, needs to be tested

uhm..

add todo

Change to float32 for x,y and z

remove mission topic again, not needed

change roi coordinates to lat, lon and alt

adjust to float64

starting mount implementation

correcting small mistakes, compiles now

add todos

further progress

implementing parameters

adjust default parameters

started implementation of mavlink

fix typo

change to lat, lon and alt

fix typo :D

change to double (to represent float64)

add global_position_

add mount topic

commander mount implementation done

cleanup

almost finished

little fix

codestyle fixes

leave pitch at 0 degrees

added pitch calculation

codestyle changes

Undo vehicle_mount, react to updated parameters, parsing of CMD_DO_MOUNT_* in mount.cpp

start implementing mode override

forgot a semikolon.

add debug

Finish implementation of mount override and manual control.

fix codestyle

correct cleanup

rename to vmount

works now

fix rebase error

fix polling

refactoring and custom airframe for gimbal

couple changes

remove warnx

almost done

finally

What is going on?

change back to actuator_controls_2

working

bump parameter version number and some clarification

fix submodules
2016-09-06 11:33:18 +02:00
Beat Küng
e6391189bc px4_simple_app: update printf to latest format version 2016-09-06 10:41:46 +02:00
Beat Küng
0da44b7166 posix main: make <data_directory> argument optional, default to CWD 2016-09-06 10:41:36 +02:00
Daniel Agar
f07cd13fe8 circleci update to tolerate submodule changes (#5451)
- remove broken ccache setup
2016-09-05 00:47:48 -04:00
Carlo Wood
4a5eae23a2 Increase stack space on posix 64bit architectures. (#5447)
When running a simulation with, for example,
make posix jmavsim
px4 crashed almost 100% reproducable near start up.

This turned out to be a stack overflow. On gitter
it was suggested that the main reason for this could
be stack sizes, as currently used, assume a 32bit pointer
size and that doubling the stack size for everything
but NuttX would be the Right Thing.

This is the solution that I came up with (it makes
my core dumps disappear).
2016-09-04 23:04:04 +02:00
Lorenz Meier
f607069a57 Purge old configs 2016-09-04 21:57:19 +02:00
Lorenz Meier
3aa66da20f Build serdis / sercon with size optimization 2016-09-04 21:44:30 +02:00
Lorenz Meier
07966de432 Build serdis / sercon with size optimization 2016-09-04 21:43:44 +02:00
Lorenz Meier
8709078c38 Save some flash for much too verbose output 2016-09-04 20:55:03 +02:00
Dennis Shtatnov
585147d5b7 Working LPS25H driver 2016-09-04 19:12:08 +02:00
Dennis Shtatnov
1fd3636ab3 Flyable gains for CF2 2016-09-04 19:12:08 +02:00
Dennis Shtatnov
c842b0457f Syslink for battery, RSSI, and initial radio control 2016-09-04 19:12:08 +02:00
Dennis Shtatnov
b99b886576 CF2 correct motor map and LEDs 2016-09-04 19:12:08 +02:00
Dennis Shtatnov
e91821d2a2 Merge Crazyflie motor driver with FMU
Comment corrections
2016-09-04 19:12:08 +02:00
Dennis Shtatnov
e6b98b2ab8 Tweak configs for CF2
Fix build error

Capitalization mistake for headers

Non-Mac compiler issue

Baudrate for crazyflie nrf and fix code style

Save space

Cleanup mpu9250 driver
2016-09-04 19:12:08 +02:00
Dennis Shtatnov
5100785f51 MPU9250 I2C mode
Fixes for other boards

Functioning sensors
2016-09-04 19:12:08 +02:00
Dennis Shtatnov
9c8e56401b Working motors and mtd for CF2 2016-09-04 19:12:08 +02:00
Tim Dyer
b65ff53b00 Initial build for Crazyflie 2.0
Working crazyflie firmware build

* Console on USART3
* Could not disable building PX4IO firmware, currently commented out

Don't build PX4IO firmware if the board doesn't ask for it

Added crazyflie motor driver

Fixed wrong register

CLK_SEL is in PWR_MGMT_1

Initial I2C/SPI MPU9250 device

* Tested with I2C
* Need to add error checking
* Intermittent crash on stop call

Working ak8963 mag driver

Functional lps25h driver. Work in progress.

Works well enough to probe and allow sensors task to start.

Added serial port test module

HACK! Get sensors module working

Set crazyflie PWM range

Extend baudrate for Crazyflie's NRF radio

Added dummy tone alarm to allow for init

Added autostart script for Crazyflie
2016-09-04 19:12:08 +02:00
Lorenz Meier
c1e681df60 HMC: Fill extended mag report completely 2016-09-04 19:11:46 +02:00
Lorenz Meier
45f740e210 Device: Allow access to device id 2016-09-04 19:11:28 +02:00
Lorenz Meier
31bba3a847 Report mag data 2016-09-04 19:10:57 +02:00
Lorenz Meier
8c49372e7a Better error reporting for sdlog2 2016-09-04 18:47:41 +02:00
Carlo Wood
cc69dd5665 printf format fixes. (#5444)
After I got a compiler warning for a printf format in this file
(which I cannot reproduce anymore; for some reason g++ is usually
quite happy with all the errors in this file), I fixed all 'printf'
formats to match the type of their arguments as follows:

uint8_t         : %hhu
uint16_t        : %hu (or %hx)
uint32_t        : %u (or %x)
int16_t         : %hd
int and int32_t : %d
long int        : %ld

Since this file is C++, what we REALLY should be using is
ostream operator<<'s of course (type safe by design and faster
(compile time type matching, no need for format decoding)).
2016-09-04 14:28:23 +02:00
Miguel Arroyo
f999fbe440 Publishes LPE GPS epv and eph as estimator status. (#5413)
* Publishes LPE GPS epv and eph as estimator status.

* Adds timestamp
2016-09-03 22:00:51 +02:00
Nicolas de Palezieux
a071ef94db always update armed flag (#5434)
otherwise the battery estimator does not compute bat_v_empty_dynamic correctly
2016-09-03 21:59:27 +02:00
Otávio
d03611763a Use readdir instead of readdir_r (#5421)
readdir_r is deprecated since glibc version 2.24 and glibc manual
recomends usage of readdir instead of readdir_r.
Replacing readdir_r by readdir will also not be a problem for Nuttx,
because readdir_r is using readdir and filling parameters with the
return information.

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2016-09-03 13:45:40 +02:00
Michael Schäuble
b9b9f17eee Fix build errors (#5436)
* Use sorted to fix python3 build error

* Add drv_hrt.h include to Bebop df wrappers
2016-09-03 12:34:27 +02:00
Lorenz Meier
723d3c121a Find and use Python 2 (#5442)
This will make the build works in distros that have Python 3 as default
and will not break anything in distros that have Python 2 as default.
2016-09-03 12:33:48 +02:00
Mark Whitehorn
a054fb1e04 fix altitude setpoint bug (#5409) 2016-09-03 12:33:36 +02:00
Lorenz Meier
ea212a8ef5 LPE: Avoid false positives for GPS 2016-09-03 12:30:42 +02:00
Nate Weibley
686fd5b125 Convert geofence distance params to float (#5435) 2016-09-02 11:49:53 -04:00
Beat Küng
ced33e982b update mavlink submodules 2016-09-01 13:37:42 +02:00
Beat Küng
33fdb072df uORBMain: disable message logging to the ulog on Snapdragon 2016-09-01 09:59:17 +02:00
Lorenz Meier
48a94e3570 Fixed i2c not running (#5408) 2016-09-01 09:19:30 +02:00
stmoon
d219b8cf46 fix the bug for double space 2016-09-01 08:44:16 +02:00
Nate Weibley
22d286b9ce Fix version generation for release builds, #5308 (#5422) 2016-08-31 22:03:00 +02:00
Lorenz Meier
1d99f83b34 Add config for LPE and plane 2016-08-31 09:17:01 +02:00
James Goppert
9d861f021c Use git tag in cpack package. 2016-08-29 22:17:40 -04:00
James Goppert
f6d7fef7c2 Added more gains for dji matrice. 2016-08-29 22:05:59 -04:00
James Goppert
8707cbc315 Fix version. 2016-08-29 22:05:48 -04:00
Lorenz Meier
5a734de319 Commander: Increase stack space 2016-08-29 23:36:34 +02:00
Lorenz Meier
ece70dc18d Revert "commander: Running a bit low on space"
This reverts commit 2a90f7e9c002ee80177b436f2fd0e5d196f3ea95.
2016-08-29 23:35:56 +02:00
Lorenz Meier
2a90f7e9c0 commander: Running a bit low on space 2016-08-29 22:47:07 +02:00
James Goppert
36acb90680 Fix gps noise matrix for LPE. 2016-08-29 16:08:28 -04:00
Andreas Daniel Antener
02029882db SITL CI: gracefully fail tests early (#5405) 2016-08-28 21:56:31 +02:00
Lorenz Meier
15e50b26dc Fix MAVLink subscription 2016-08-28 15:53:42 +02:00
Lorenz Meier
8dc8ae7de8 MAVLink app: Only hold buffers for published topics 2016-08-28 10:49:41 +02:00
Lorenz Meier
d4b588f84a Fix proto version selection 2016-08-28 10:40:00 +02:00