12684 Commits

Author SHA1 Message Date
Roman
0c49abbef8 standard vtol: correctly modify attitude for pusher assist
- fix a bug where the wrong rotation order was used to compute the attitude
setpoint when using the pusher assist feature

Signed-off-by: Roman <bapstroman@gmail.com>
2016-12-08 15:05:43 +01:00
Dennis Mannhart
c2b6381759 adjust to astyle format 2016-12-07 17:32:09 +01:00
Dennis Mannhart
5ed35e9731 added comment why reseting at this point; created variable for horizontal velocity magnitude 2016-12-07 17:32:09 +01:00
Dennis Mannhart
6865a70dea reset position setpoints once altitude condition is reached 2016-12-07 17:32:09 +01:00
Beat Küng
78f1d9d017 hmc5883: fix MAGIOCGEXTERNAL ioctl for non fmuv1 boards
This makes the onboard check consistent with hmc5883_bus_option
initialization. If the current bus is the onboard bus, return !external.

It fixes the onboard mag (HMC5883) for AeroFC. Its priority is now 100,
previously it was 255, so that if an external mag is attached, it will be
preferred.
2016-12-07 11:06:28 +01:00
James Goppert
fa834497bf Setup sf0x driver to handle all lightware lidars. (#5957) 2016-12-06 12:19:13 -05:00
Roman
aabf753ecb mc_pos_control: do not do tilt compensation when hor velocity is controlled
- fixed a bug where tilt compensation was done also when the horizontal
velocity was controlled. This is not needed because in this case
the controller outputs a 3D thrust vector.

Signed-off-by: Roman <bapstroman@gmail.com>
2016-12-05 16:07:19 +01:00
Daniel Agar
a8747a01fe pixhawk 2.1 add 2nd ms5611 2016-12-05 15:27:11 +01:00
Daniel Agar
2f962a986b PX4IO add IMU heater to status 2016-12-05 10:23:46 +01:00
Daniel Agar
1a1b8f69ac PX4IO add page setup case for thermal 2016-12-05 10:23:46 +01:00
Lorenz Meier
b229dd891f Senssors app: Introduce thermal setting 2016-12-05 10:23:46 +01:00
Lorenz Meier
3166aeb8a4 PX4IO driver: Enable thermal control 2016-12-05 10:23:46 +01:00
Lorenz Meier
9f14ace0fa IO: Allow control of the blue led state as function of a Pixhawk 2.1 heater 2016-12-05 10:23:46 +01:00
James Goppert
4b6a11161e Fixes for sitl gazebo ground truth. (#5932)
* Fixes for sitl gazebo ground truth.

* Switch ekf2 to new logging module for sitl.
2016-12-03 11:40:53 -05:00
Andreas Antener
ef495d26b8 Airspeed calibration: wait on filter before preflight check 2016-12-02 22:56:48 +01:00
Andreas Antener
e9737d6f7a Preflight checks: made sure pre-flight check results are always reported first thing on the console and always on new or re-established telemetry links AFTER waiting for the hotplug timeout
(leads to double publishing on the console when a new link is established, but this is the best compromise between fixing and completely restructuring)
2016-12-02 22:56:48 +01:00
Andreas Antener
c069264752 Preflight check: initialize VTOL flag before it is used 2016-12-02 22:56:48 +01:00
Andreas Antener
b531e65f6a Airspeed check: updated message and explained test parameters 2016-12-02 22:56:48 +01:00
Andreas Antener
f772fc2d02 Airspeed: preflight check for bad offset, fixed calls to preflight checks (vtol & airspeed) 2016-12-02 22:56:48 +01:00
Julian Oes
f092b31f54 Update cmake_hexagon and DriverFramework
This update is needed after changes in
https://github.com/ATLFlight/cross_toolchain/pull/10.
2016-12-02 21:18:18 +01:00
Lorenz Meier
c53d828e09 Set EKF2 as default estimator 2016-12-02 21:13:34 +01:00
Julian Oes
e416a8cb83 mc_pos_control: fix takeoff bug
This resolves a bug where a takeoff would go sideways instead of
straight up. What happened was that the position setpoint got shifted
around even though there was actually no real setpoint set but only a
setpoint of type IDLE. This then lead to a position setpoint far away
from the takeoff point and therefore scary takeoffs.

This fix prevents the part of the position controller which
moves/integrates the position setpoint from running in the case of an
idle setpoint.

This bug could be reproduced by switching the vehicle to mission mode
without a valid mission, then switch to hold mode, and then send the arm
and takeoff command.
2016-12-02 17:34:00 +01:00
Michael Schaeuble
b982dca45a Add comments to clarify the BMI160 related changes 2016-12-02 12:40:12 +01:00
Michael Schaeuble
10867131fa Bring up BMI160 for px4fmu-v4 targets 2016-12-02 12:40:12 +01:00
José Roberto de Souza
9bb77adbec Aerofc: Fix and add more information about flash sectors 2016-12-01 07:52:23 +01:00
Beat Küng
b020be13f6 flashparams: fix memory leak when saving parameters
A large buffer on the heap was not deallocated when parameters were saved,
but there were no changes to the parameters. In that case
parameter_flashfs_write() was not called, which was previously responsible
for freeing the buffer.

This patch moves the responsibility of freeing the buffer to the calling
side, which already explicitly allocates the buffer.
2016-11-29 10:38:11 +01:00
Daniel Agar
e0a9793347 mavlink doesn't have already published message
- if the land detector started before the mavlink module it won't have
   a valid message vehicle_land_detected message until published again
2016-11-29 00:49:57 -05:00
David Sidrane
abc79faf3b Chip Slect fixes for the ICM_20608_G
The mapping of PX4_SPIDEV_ACCEL_MAG to PX4_SPIDEV_ICM is not
   a clean approach and the PX4_SPIDEV_MPU is already used by the
   mpu9250 leaving the only (and the correct) option to the use
   PX4_SPIDEV_ICM and make it map to the reused ACCEL_MAG_CS PC15
   as 206080D_CS
2016-11-28 21:02:23 +01:00
Julian Oes
0109f6f549 update mavlink to master, rename MOUNT_STATUS
The mavlink message MOUNT_STATUS has been renamed to MOUNT_ORIENTATION.

This changes the Firmware code accordingly.
2016-11-28 21:01:22 +01:00
José Roberto de Souza
9befff1e79 aerofc: Add information about the flash usage 2016-11-28 09:21:12 +01:00
José Roberto de Souza
8fb15f1de8 aerofc: Enable I2C1 for external compass
For now it is only checking if there is a external HMC5883, if
necessary more compass should be added and probe.
2016-11-28 09:21:12 +01:00
José Roberto de Souza
c49c3f469e aerofc: add upload command
AeroFC is updated by Aero board using the UART between AeroFC
and Aero board.

This script will copy firmware and px_uploader.py to Aero board and run
px_uploader.py with the correct paremeters. User only needs to have a
network connection (Ethernet over USB or WiFi) with Aero board to update
AeroFC firmware. The IP/hostname can be given by AERO_HOSTNAME
environment variable.
2016-11-28 09:21:12 +01:00
José Roberto de Souza
508c782bab mavlink: Add support for high speed baudrates 2016-11-28 09:21:12 +01:00
Lucas De Marchi
66628a4cf1 aerofc: forbid gpio changes
We export an "empty" table, but there's no protection when doing
ioctl().
2016-11-28 09:21:12 +01:00
Lucas De Marchi
3b3d4f385c aerofc: fix UART port assignments 2016-11-28 09:21:12 +01:00
James Goppert
893714dc6a aerofc: Fixes for init 2016-11-28 09:21:12 +01:00
Lucas De Marchi
ce8a7f6bdc aerofc: fix comment regarding hrt 2016-11-28 09:21:12 +01:00
Lucas De Marchi
1aea9457a9 aerofc: remove usb sensing 2016-11-28 09:21:12 +01:00
José Roberto de Souza
51f85858f2 aerofc: Power on sensors
MPU6500, MS5611 and HMC5883 only power on when GPIO_SENSORS_POWER is
set.
2016-11-28 09:21:12 +01:00
José Roberto de Souza
7ced5a1b6f aerofc: Remove unused GPIO configuration 2016-11-28 09:21:12 +01:00
José Roberto de Souza
0f9ad1c393 aerofc: Remove remaining code and macros of RGBLed 2016-11-28 09:21:12 +01:00
José Roberto de Souza
8788e2e81e aerofc: Remove ADC configuration
Battery voltage and current will be read in another way in future.
2016-11-28 09:21:12 +01:00
Lucas De Marchi
007731df46 aerofc: use center LED for activity
Like in bootloader, use the centered LED to show activity.
2016-11-28 09:21:12 +01:00
José Roberto de Souza
e690af14d8 aerofc: fix I2C bus of MS5611 and HMC5883 2016-11-28 09:21:12 +01:00
José Roberto de Souza
ef7c3b2174 aerofc: Fix SPI configuration
SPI bus 1 is the bus connected to MPU6500, so remove SPI bus 3 and 4.
Also remove everything else related to SPI that this board doesn't have.
2016-11-28 09:21:12 +01:00
Lucas De Marchi
0cd7984b7f Rename asc board to aerofc 2016-11-28 09:21:12 +01:00
David Sidrane
c042f49fde System Changes for AUAV X2.1 2016-11-28 09:18:45 +01:00
David Sidrane
fb3e2665f3 Inital Commit AUAV X2.1 2016-11-28 09:18:45 +01:00
Lorenz Meier
70e597bd9a Update ECL to include fw controller limit improvements and side slip filter improvements 2016-11-27 16:08:53 +01:00
Beat Küng
0a0f268407 RPi: improve upload script, upload mixer files & all startup scripts 2016-11-24 14:43:45 +01:00