Commit Graph

2403 Commits

Author SHA1 Message Date
Andrew Tridgell 3fda934d1b px4io: on config error ask IO to reboot to bootloader
this allows us to update fw when core config settings have changed,
such as the actuators/servos change that happened recently
2016-04-18 11:40:07 +02:00
Andrew Tridgell 85e8cd89b6 px4io: set reasonable default voltage scaling
needed for when px4 param system not available in ardupilot
2016-04-18 11:39:37 +02:00
Andrew Tridgell 5928569321 px4fmu: fixed signed/unsigned comparison 2016-04-18 11:39:06 +02:00
Andrew Tridgell 05c282e761 stm32: fixed build errors with more warnings enabled
needed for ArduPilot build
2016-04-18 11:36:28 +02:00
Andrew Tridgell fc6b074d40 irlock: fixed header for other than FMUv2 2016-04-18 11:34:24 +02:00
Daniel Agar f58157266f mindpx-v2_default STACK -> STACK_MAIN 2016-04-17 16:36:59 -04:00
jaxxzer d8aee84625 ms5611: Fix to start drivers for all devices present at boot. 2016-04-17 19:07:30 +02:00
Daniel Agar a0b818096b fix hc_sr04 and srf02_i2c subsystem_info init 2016-04-17 19:02:59 +02:00
Andrew Tridgell efd4552e37 ms5611: reduced OSR to 1024
this reduces self-heating of the sensor which reduces the amount of
altitude change when warming up. Apparently some individual sensors
are severely affected by this.

Unfortunately it raises the noise level, but Paul is confident it
won't be a significant issue
2016-04-17 16:04:44 +02:00
James Goppert 09d4ce1e2c Set sf0x min dist to 30 cm, 0 cm is outside of spec for sf02. 2016-04-14 15:01:41 -04:00
James Goppert 967e4dd127 Modified cmake to use STACK_MAX and STACK_MAIN 2016-04-14 13:36:36 -04:00
Julian Oes fbd7c73043 drv_hrt: fix comment 2016-04-12 08:56:34 +02:00
Julian Oes 9859d43fe2 frsky_telemetry: fixed build 2016-04-11 18:01:49 +02:00
Julian Oes 5ca5af5fcd commander: take main_state out of vehicle_status
This state is only commander internal. Therefore it doesn't need to be
in vehicle_status. Instead it is now in the commander_state message.
2016-04-11 18:01:48 +02:00
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
Mark Whitehorn ebacd4c1de add missing check for stop command in idle state 2016-04-11 17:54:39 +02:00
Julian Oes 441d7aacbb gps: fix build, unused var ERROR 2016-04-11 13:51:04 +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 77cda58d73 fix ashtech gps: _satellite_info can be nullptr 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
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
Felix Hu afdf8bbaaa Fix the build of mindpx-v2 default 2016-04-05 15:32:40 -07:00
Felix Hu 3295b29bf9 fix code style issues 2016-03-30 19:45:39 +02:00
Felix Hu bd580e09bf supports MindPXv2 borad which is a product from AirMind. 2016-03-30 19:45:39 +02:00
Lorenz Meier 15427bec58 Trone: Use shorter perf names 2016-03-28 13:05:47 +02:00
Lorenz Meier 2c6119e355 SRF02: Use shorter perf names 2016-03-28 13:05:36 +02:00
Lorenz Meier 90f731a134 SF10a: Use shorter perf names 2016-03-28 13:05:22 +02:00
Lorenz Meier c7cc563832 SF0X: use shorter perf names 2016-03-28 13:05:07 +02:00
Lorenz Meier 6e34e0acaf Flow: Use shorter perf names 2016-03-28 13:04:53 +02:00
Lorenz Meier 0f31f88b24 PCA: Remove unuses perf counter 2016-03-28 13:04:41 +02:00
Lorenz Meier 8891c94087 Gimbal: remove unuses perf counters 2016-03-28 13:04:25 +02:00
Lorenz Meier 96fd15f42e MS5611: Use shorter perf names 2016-03-28 13:04:10 +02:00
Lorenz Meier 5a65f41482 MPU9K: Use shorter perf names 2016-03-28 13:03:56 +02:00
Lorenz Meier b8c5f6be6a MPU6K: Use shorter perf names 2016-03-28 13:03:41 +02:00
Lorenz Meier fdf57e14a1 Use shorter perf names for MB12xx 2016-03-28 13:03:25 +02:00
Lorenz Meier 37fb74c8b7 Use shorter perf names for LSM303D 2016-03-28 13:03:10 +02:00
Lorenz Meier 6b7142469a Use shorter perf names for L3GD20H 2016-03-28 13:02:59 +02:00
Lorenz Meier 54a75d5ef9 HMC: Use shorter perf names 2016-03-28 13:02:41 +02:00
Lorenz Meier b71123f4fe GPS: Use shorter perf names 2016-03-28 13:02:29 +02:00
Lorenz Meier 924b7efaa2 Airspeed: Use shorter perf names 2016-03-28 13:02:15 +02:00
Julian Oes 438c8827f6 snapdragon_rc_pwm: astyle 2016-03-27 12:40:10 +02:00