Felix Ruess
12e256dfa7
Merge branch 'master' into ahrs_refactor
...
to get the ABI changes (not forced to pass const pointers)
* master: (99 commits)
[abi] allow to pass variables by value
Sign of pitch roll axis changed and yaw fit
[opticflow] dox
[opticflow] working variables in a struct
Added new RC USB type joystick from Hobbyking
Messages in module instead of thread
fix thread communication
convert to thread-communication
[module] video_usb_logger
[opticflow] example using unix domain sockets to return thread results
[opticflow] compute V_body in hover_stabilization
[python] ivy_msg_interface returns only ac_id and msg
[python] ivytoredis: publish msg as json
[python] refactor messages
[python] messages: fix typo
[python] messages: PPRZ_HOME
[fix] fix extra_dl and pprrzlog
[stm32] use desig_get_unique_id from libopencm3
[fix] call pprzlog_init if needed (and avoid segfault)
[message] improve ivy perf by only waiting for ALIVE by default
...
2015-02-07 16:11:54 +01:00
Felix Ruess
30df14eb05
[abi] allow to pass variables by value
...
before the generated ABI callbacks always had a signature with `const type *var` where type was e.g float.
Now the generated signature is simply `type var`.
To pass const pointers again, set it accordingly in abi.xml, e.g. type="const float *" instead of type="float"
2015-02-07 16:07:09 +01:00
Felix Ruess
e8481df5eb
[ahrs] update remaining ahrs stuff
2015-01-16 17:28:43 +01:00
Felix Ruess
603b40a513
[airborne] fix code style on (nearly) all files
...
```
find sw/airborne/ -regextype posix-extended -regex 'sw/airborne/.*(chibios-libopencm3|lpcusb|efsl|lpc21/include|lpc21/test/bootloader|subsystems/ahrs)' -prune -o -name '*.[ch]' -exec ./fix_code_style.sh {} +
```
ignored ahrs (for now) to not create unnecessary conflicts for some pending changes..
2014-12-17 02:15:06 +01:00
Gautier Hattenberger
04d474a1cd
[ardrone2] wait using a for loop of usleep, not only one
2014-12-15 11:09:11 +01:00
Gautier Hattenberger
489771a240
[ardrone2] merge the 2 fix for frozon mag
...
- keep the imu_lost counter
- sending state is only asynch
2014-12-15 11:01:58 +01:00
Gautier Hattenberger
93fe826776
[style] fix code style
2014-12-15 11:01:58 +01:00
Ben Laurie
d148a18b60
last_checksum_wrong is always FALSE. And probably a bad idea anyway.
2014-12-13 12:48:49 +00:00
Gautier Hattenberger
3d3795116f
[ardrone2] count imu_lost and report filter status
2014-12-10 17:35:58 +01:00
OpenUAS
b2938be9d5
Fix for magneto fix that still kept hanging sometimes
2014-12-08 22:41:21 +01:00
Gautier Hattenberger
34b6ca3a26
[telemetry] rename 'device' to 'link_device'
2014-11-08 09:08:59 +01:00
Gautier Hattenberger
765d09a527
[telemetry] fixing and cleaning a few stuff
2014-11-05 22:21:32 +01:00
Gautier Hattenberger
e5cdfa1ce1
[telemetry] convert macros in registered callback to functions
2014-11-04 23:56:55 +01:00
Gautier Hattenberger
b5fd2e88c8
[ardrone2] send filter status from navboard
...
- it allows to see if the mag is crashed or not
- set a max retry on the reset PIC board hack (which doesn't seems to
help anyway)
2014-10-17 18:41:53 +02:00
Gautier Hattenberger
3bc524b27a
[ardrone] use gpio API instead of system call
2014-07-08 13:57:02 +02:00
Oswald Berthold
c536eb81f1
- [ardrone] daren's mag freeze fix, cleaned up acc. to suggestions
2014-07-03 10:44:32 +02:00
Oswald Berthold
4c8e8f271c
- [ardrone] added daren's mag freeze fix
2014-07-02 17:17:50 +02:00
Gautier Hattenberger
e138f43b44
[sonar] fix some sonar related issues
2014-03-13 17:46:21 +01:00
Gautier Hattenberger
03235ffae0
[sonar] sonar system using ABI interface
...
- unified interface for sonar (sonar_adc was broken with latest commit
for ardrone)
- median filter removed from ins_int, implement in sonar drivers if
needed
- compiles but not tested yet
2014-03-13 15:56:33 +01:00
Felix Ruess
8cad56d140
[airborne] only cosmetic cleanup: convert leading tabs to spaces
2014-03-04 01:08:44 +01:00
Freek van Tienen
a45d955a69
[ardrone2] Fix baro measurement spikes
2014-02-28 00:17:41 +01:00
Freek van Tienen
6a50e314bb
[ardrone2] Implemented sonar
2014-02-28 00:01:35 +01:00
Christophe De Wagter
3bf8f827a3
[ardrone] Cleanup and possible fix for occasional magneto freeze problem
2014-01-23 11:48:02 +01:00
Gautier Hattenberger
eba60ba1fe
[telemetry] make specific flag for periodic telemetry
2014-01-08 10:59:10 +01:00
Christophe De Wagter
e285f0221c
[ardrone] solved both type1 and type2 spikes: delayed temp versus delayed press
2013-12-20 21:24:46 +01:00
Christophe De Wagter
d2f8013528
[ardrone] updated filter: use more data in case of spikes: only 1 package lost instead of 3
2013-12-20 14:41:56 +01:00
Christophe De Wagter
792e043345
[ardrone] baro-temp-press-swap-due-to-non-understood-sensorboard-interrupt-delay-bug solved with specialized spike filter
2013-12-16 22:30:25 +01:00
Christophe De Wagter
906271e1e8
[ardrone] print baro logic errors
2013-12-13 16:25:46 +01:00
Christophe De Wagter
fbaff566d2
[ardrone] lost imu frame counter
2013-12-13 16:15:56 +01:00
Felix Ruess
fcb7949147
[telemetry] fix ARDRONE_NAVDATA
2013-10-23 13:24:45 +02:00
Gautier Hattenberger
3e92315488
Merge remote-tracking branch 'paparazzi/master' into telemetry
...
Conflicts:
conf/firmwares/subsystems/fixedwing/autopilot.makefile
sw/airborne/boards/ardrone/navdata.c
sw/airborne/boards/lisa_m/baro_ms5611_i2c.c
sw/airborne/boards/lisa_m/baro_ms5611_spi.c
sw/airborne/firmwares/fixedwing/ap_downlink.h
sw/airborne/firmwares/fixedwing/main_ap.c
sw/airborne/firmwares/rotorcraft/telemetry.h
sw/airborne/mcu_periph/i2c.c
sw/airborne/subsystems/ahrs/ahrs_float_cmpl.c
sw/airborne/subsystems/ahrs/ahrs_float_lkf.c
sw/airborne/subsystems/datalink/downlink.h
sw/tools/gen_periodic.ml
2013-09-25 11:28:43 +02:00
Christophe De Wagter
70ab7ebfdf
[ArDrone] Navdata decoder update (incl sonar)
2013-09-22 15:34:43 +02:00
Ben Laurie
7efc5d9893
Add full_read().
2013-09-08 19:55:09 +01:00
Ben Laurie
23a92996ee
Make sure writes complete.
2013-09-08 17:20:52 +01:00
Ben Laurie
508f5ebb40
|navdata| does not need to be dynamically allocated.
2013-09-08 17:20:52 +01:00
Ben Laurie
0726043ac0
navdata had better be the same size as a packet.
2013-09-08 17:20:52 +01:00
Ben Laurie
aa1bf02200
Use constants consistently.
2013-09-08 17:20:50 +01:00
Ben Laurie
888b877f6e
baro_update_logic() can be static.
2013-09-08 17:20:50 +01:00
Ben Laurie
1b46a38559
Retry blocking writes.
2013-09-08 17:20:50 +01:00
Ben Laurie
c37b9aed4c
Read to NULL is not legal.
2013-09-08 17:20:50 +01:00
Ben Laurie
dfe4469e2c
Writes can be partial, in theory at least (note, all writes are currently
...
length 1).
2013-09-08 17:20:49 +01:00
Ben Laurie
1ba778437e
Hide more private data.
2013-09-08 17:20:49 +01:00
Ben Laurie
b28fae799a
There's no need for |port| to be dynamically allocated.
...
Also fixes the bug that if |nav_fd| open fails, port->isOpen and
port->isInitialised are not cleared.
2013-09-08 17:20:49 +01:00
Ben Laurie
057c842045
navdata_port is private.
2013-09-08 17:20:49 +01:00
Christophe De Wagter
a244d214a5
[ARDrone] LED driver fixed
2013-08-29 20:26:12 +02:00
Christophe De Wagter
b8ec860edc
[ardrone] 200Hz Baro messages are actually 100Hz temp and then pressure. One should not use the wrong temp with the wrong pressure either. A change tracker is used.
2013-08-28 15:17:50 +02:00
Christophe De Wagter
9a864d8927
[ardrone] Fixed Baro
2013-08-21 17:54:52 +02:00
Dino Hensen
8e84c8ecbd
[ardrone] Barometer bmp180 implementation added.
...
Also fixed a bug in the navdata driver, where cropping was done twice.
Baro still needs to be tested, because sometimes unexpected things happen.
2013-08-21 17:54:26 +02:00
Gautier Hattenberger
116faaeda6
[telemetry] protect telemetry code with #if DOWNLINK
...
- also get rid of AP_DOWNLINK and FBW_DOWNLINK
- still needs to make it work again (for the only remaining classix in
the world...)
2013-06-17 01:06:45 +02:00
Gautier Hattenberger
8377d60184
[telemetry] adapt rotorcraft to new telemetry system
2013-06-14 09:49:16 +02:00