Beat Küng
c495266c79
ubx gps driver: remove variable length member 'raw' from union
...
this causes only problems and is not supported by ANSI C. error caused:
fatal error: field '_buf' with variable sized type 'ubx_buf_t' not at the end of a struct or class is a GNU extension
2016-04-11 11:23:01 +02:00
Beat Küng
215aa78f30
fix coding style for gps drivers
2016-04-11 11:23:01 +02:00
Beat Küng
851340eccc
ubx gps driver: add error handling when write(...) fails
...
this also fixes a compiler warning
2016-04-11 11:23:01 +02:00
Beat Küng
95c7534712
ashtech gps: fix compiler warning in configure
...
the warning is:
error: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Werror=unused-result]
2016-04-11 11:23:01 +02:00
Beat Küng
21f403e12b
gps: make sure the gps module compiles for POSIX & add it to the posix_sitl_default cmake
...
- Note that the simulator still uses gpssim by default
- now the gps module can be used in the SITL. this makes it possible to test
the real gps HW under POSIX
additional steps needed to use it:
- in the rcS_jmavsim_iris, make sure to start the gps instead of gpssim:
gps start -d /dev/ttyACM0 -s
- disable the mavlink serial connection in simulator_mavlink.cpp,
openUart(PIXHAWK_DEVICE, 115200);
- this also fixes a memory leak in the gps module
2016-04-11 11:23:01 +02:00
Beat Küng
b3ed8b70d2
systemlib scheduling_priorities: include the more generic px4_tasks.h
...
this makes sure the header can also be used under POSIX
2016-04-11 11:23:01 +02:00
Beat Küng
ec819737c1
systemlib: make err() & errx() work for POSIX
2016-04-11 11:23:01 +02:00
Beat Küng
458feb0a44
fix gpssim: properly handle the case where gpssim is not running
2016-04-11 11:23:01 +02:00
Beat Küng
77cda58d73
fix ashtech gps: _satellite_info can be nullptr
2016-04-11 11:23:01 +02:00
Beat Küng
7ff80463be
fix completely wrong file permissions for log files & mavlink ftp (new mode 666)
2016-04-11 11:23:01 +02:00
Beat Küng
d7ca0b1139
hrt_absolute_time: add comment, that time is in us
2016-04-11 11:23:00 +02:00
Lorenz Meier
d97f32cca1
Fix MAVLink not responding regression on TELEM2
2016-04-10 12:11:26 -07:00
Lorenz Meier
d2c98a98e9
Rename stop-all to stop for MAVLink, but still keep stop-all for existing scripts
2016-04-10 11:18:05 -07:00
Lorenz Meier
8b876e6497
MAVLink command feedback: Do only report command status and not additional string
2016-04-10 11:15:18 -07:00
Don Gagne
91d4e129f4
Change to normal cal message
...
This way QGC can respond to it and show good ui
2016-04-10 10:58:37 -07:00
Lorenz Meier
ad3ca2a9d2
Commander: Indicate low battery
2016-04-10 10:57:38 -07:00
Lorenz Meier
e3d6bad3fe
Revert "report sensor init failure"
...
This reverts commit 407f467b456a393a891a936c79cc90e64e52fd45.
2016-04-10 10:37:03 -07:00
Lorenz Meier
b66967a8a5
Revert "add low battery warning and comment out the "resolved" messages"
...
This reverts commit 221e259d01b32f23d14270af78d0996b728bf9d1.
2016-04-10 10:36:48 -07:00
Lorenz Meier
34a9449df9
Include cal status data for mag
2016-04-09 18:00:38 -07:00
Lorenz Meier
224aaeddfe
Harden calibration experience on master
2016-04-09 13:44:53 -07:00
Lorenz Meier
d9b32221e7
Commander: Reduce mag output
2016-04-09 11:53:44 -07:00
Lorenz Meier
275fe8ee2d
Play safe with calibration done messages
2016-04-09 11:50:50 -07:00
sander
7338fe889e
Only set virtual waypoint for VTOL_TAKEOFF. Fixes #4193
2016-04-09 13:24:20 +02:00
sander
42eff31c84
Keep current altitude for vtol move to land after transition
2016-04-09 12:23:43 +02:00
Andreas Antener
7f5a2b1bac
only use the default acceptance radius for checking mission feasibility
2016-04-08 22:40:02 -07:00
Julian Oes
727783fe94
mavlink: keep trying to find to broadcast
...
This should help the Snapdragon to connect if the network is not yet up
by the time the mainapp starts. It will retry to find a network and
broadcast once it finds one.
2016-04-08 22:38:22 -07:00
Holger Steinhaus
0ddf720759
uavcan: fix shadowed variable
2016-04-08 22:36:59 -07:00
Lorenz Meier
dd0d1f001e
MPC velocity controller: Reduce gain to stabilize control loop
2016-04-08 21:25:55 -07:00
Lorenz Meier
b3b22b1c2c
Airspeed driver: Proper start handling
2016-04-08 17:23:59 -07:00
Julian Oes
c32310b6b4
muorb: improve comment
2016-04-08 15:51:16 +02:00
Julian Oes
36d580bdc8
DF wrappers: use abs time instead of DF timestamp
...
The timestamp in the DriverFramework is not the same as the one
provided by hrt_absolute_time() in PX4. Because we are publishing on the
PX4 side, let's also use the timestamp from there.
2016-04-08 15:51:16 +02:00
Julian Oes
8422280f18
muorb: typo and added comment for magic number
2016-04-08 15:51:16 +02:00
Julian Oes
2bce8f2803
muorb: abs time on aDSP in sync with Linux side
...
This adds a call on startup of the muorb on the aDSP side to use an
offset for hrt_absolute_call(). This means that the hrt_absolute_call()
on the appsproc (Linux) side should now match the one on the aDSP
(QURT) side.
The accuracy still needs to be determined.
2016-04-08 15:51:16 +02:00
Julian Oes
ae2c28677d
mavlink: adapt network detection for Mac, use heap
...
It seems that Mac does not support the ioctl to check how big the ifconf
buffer needs to be. Therefore we just have to make a guess.
Alos, instead of allocating the variable size array on the stack, it's
probably safer to use the heap.
2016-04-08 09:41:10 +02:00
Julian Oes
20cd5f3e76
mavlink: make broadcast detection Mac compatible
...
This adresses that the ifconf interface is a bit different on Mac.
2016-04-07 15:21:24 +02:00
Julian Oes
66567baf89
mavlink: only try broadcast if valid address found
2016-04-07 13:20:48 +02:00
Lorenz Meier
9fdbaa5a22
Mag cal
2016-04-06 14:30:51 -07:00
Lorenz Meier
6d24e33819
Commander: Space out mag feedback further
2016-04-06 14:23:49 -07:00
Julian Oes
9c8f67dfb8
platforms: fix build for QURT
2016-04-06 11:18:24 +02:00
Nicolas de Palezieux
00352565ee
added I2C driver for TeraRanger One
2016-04-06 10:35:38 +02:00
Lorenz Meier
43e0186eb3
Commander: Space out MAVLink log messages more
2016-04-05 21:33:40 -07:00
Mark Whitehorn
817c0eafbc
add low battery warning and comment out the "resolved" messages
2016-04-05 19:13:49 -07:00
Mark Whitehorn
b4520f538e
report sensor init failure
2016-04-05 19:13:49 -07:00
Lorenz Meier
f5c3b349a8
MAVLink sim: Fix code style
2016-04-05 19:09:30 -07:00
Lorenz Meier
9c9ca9211f
HRT fix for negative time instrumentation
2016-04-05 19:09:30 -07:00
Lorenz Meier
5828c7fa4f
system_time: Use more strict time
2016-04-05 19:09:30 -07:00
Lorenz Meier
805439c0f2
Simulator fixes
2016-04-05 19:09:30 -07:00
Lorenz Meier
b2029f7a35
POSIX: Fix code style of main app
2016-04-05 19:09:30 -07:00
Lorenz Meier
205650efd7
Simulator: Fix code style
2016-04-05 19:09:30 -07:00
Lorenz Meier
437041f302
POSIX API extensions
2016-04-05 19:09:30 -07:00