17461 Commits

Author SHA1 Message Date
Julian Oes
76c66a4e92 frsk_telemetry: astyle 2016-04-11 18:01:47 +02:00
Julian Oes
69b0b75151 px4io: astyle 2016-04-11 18:01:47 +02:00
Julian Oes
32c3135788 commander: move battery calculations to systemlib
The commander used to consume the battery_status topic and write the
contents after some calculations into the system state. Instead, the
calculations now happen in library calls in systemlib/battery.

This moves the battery fields out of the vehicle_status message into the
battery_status topic.

This brought quite some changes in all modules that need battery
information. The current state is compiling but untested.
2016-04-11 18:01:47 +02:00
Julian Oes
699b08c9fd commander: move battery warning
The battery warning is not consumed anywhere, therefore scrap it from
the vehicle_status message.
2016-04-11 18:01:47 +02:00
Julian Oes
8e9e9f8a8b vehicle_status: move vtol_vehicle_status enum
It makes more sense to have the VTOL status in its own message.
2016-04-11 18:01:47 +02:00
Julian Oes
74072dbe74 vehicle_status.msg: delete unused mavlink stuff
The MAV_TYPE enum was not in sync with the mavlink specs anymore. It
makes therefore sense to remove the duplication and include the correct
mavlink header file where it is needed.
Also, error counts which are not populated, can be scrapped.
2016-04-11 18:01:47 +02:00
Julian Oes
5f3a23a253 commander: remove circuit breakers from status msg
Since the circuit breaker bools are not actually used anywhere else than
in the commander, it is safe to remove them and replace them with local
bools.
2016-04-11 18:01:47 +02:00
Mark Whitehorn
ebacd4c1de add missing check for stop command in idle state 2016-04-11 17:54:39 +02:00
tumbili
2f7601370b mixer multirotor: initialise min_out with correct value 2016-04-11 17:47:40 +02:00
tumbili
092efd22fd set default thrust scale parameter to zero - this will disable using the fw motor for mc pitch by default 2016-04-11 15:10:53 +02:00
tumbili
04cfc23c01 allow pusher for pitch strategy to be turned off by setting thrust scal param to zero 2016-04-11 15:03:50 +02:00
Roman
f7c0518a61 log pitch setpoint after modifying it 2016-04-11 14:56:50 +02:00
tumbili
db2a53d95d added parameter to allow scaling the forward thrust used to acclerate forward
in multirotor mode
2016-04-11 14:56:50 +02:00
tumbili
34fe340864 added parameter for maximum allowed standard vtol down pitch 2016-04-11 14:56:49 +02:00
sander
cf309bfc3f invert setpoint formula 2016-04-11 14:56:49 +02:00
Roman
e11d4ae302 standard vtol:
implement moving forward using pusher
2016-04-11 14:56:49 +02:00
sander
0b10720034 testing tweaks 2016-04-11 14:56:49 +02:00
sander
3a6882a4d6 First attempt at pusher assist 2016-04-11 14:56:49 +02:00
Julian Oes
441d7aacbb gps: fix build, unused var ERROR 2016-04-11 13:51:04 +02:00
sander
e3eea62887 Add estimator selection logic to VTOL apps 2016-04-11 11:26:33 +02:00
Beat Küng
dde7907da4 ubx gps driver: configure both USB & UART interfaces 2016-04-11 11:23:01 +02:00
Beat Küng
8c64e2b801 gps driver: fix 'gps stop' error 2016-04-11 11:23:01 +02:00
Beat Küng
0c966dc923 fix mtk+ubx gps driver: use px4_clock_settime instead of clock_settime 2016-04-11 11:23:01 +02:00
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
b724847154 ack: add .ackrc to ignore the Documentation directory
when using ack to search the code we want to avoid matches in the doc html
files
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
Beat Küng
a12c79a115 romfs mixer files: remove executable bit of file permission 2016-04-11 11:23:00 +02:00
Beat Küng
cf48f9ff12 doc: rename the README -> doxygen.README & remove reference to qgroundcontrol 2016-04-11 11:23:00 +02:00
Lorenz Meier
13967975c1 Wifi link: Drop rate further to relieve pressure on ESP8266 2016-04-10 12:19:12 -07: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
d3f5cf5d93 MAVLink app via Wifi: Drop max data rate 2016-04-10 10:58:11 -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