1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00
Commit Graph

6275 Commits

Author SHA1 Message Date
Brian Webb
d4c681d94d Merged in webbbn/librepilot/LP-548-output-oplinkreceiver-objects-fro (pull request #461)
LP-548 output oplinkreceiver objects from OPLink

Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Vladimir Zidar <mr_w@mindnever.org>
Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Brian Webb <webbbn@gmail.com>
2017-09-11 19:44:03 +00:00
Brian Webb
ffb4392ab1 Merged in webbbn/librepilot/LP-547-large-uavobjects-not-saving-over-oplink (pull request #460)
LP-547 Increases the telemetry buffer lengths (both UART and radio) to fix saving large UAVObjects over OPLink.

Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Vladimir Zidar <mr_w@mindnever.org>
Approved-by: Brian Webb <webbbn@gmail.com>
2017-09-11 19:43:36 +00:00
Lalanne Laurent
9d11a2219e Merged in f5soh/librepilot/LP-399_GUI_for_Autotune (pull request #451)
LP-399 GUI for Autotune

Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Vladimir Zidar <mr_w@mindnever.org>
Approved-by: Jan NIJS <dr.oblivium@gmail.com>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
2017-09-11 19:42:29 +00:00
Brian Webb
b18ff22142 LP-548 Removes create option from UAVTalkReceiveObject and creates a new function UAVTalkReceiveObjectNoCreate. 2017-09-04 13:55:51 -07:00
Brian Webb
4e6077ca2a LP-548 Removes OPLinkReceiver from coptercontrol and fixes setting of OPLinkReceiver RSSI and quality on revolution and sparky2. 2017-09-04 12:16:48 -07:00
Brian Webb
59d20ee752 LP-548 Moves PIOS_OPLINK_RCVR_TIMEOUT_MS to pios_oplinkrcvr.c and adds oplinkreceiver and gcsreceiver modules to coptercontrol. 2017-09-04 11:25:06 -07:00
Brian Webb
1627eb3882 LP-548 Adds OPLInkRcvr to several more FCs, uncrustify, and fixes a few comments. 2017-09-04 09:44:36 -07:00
Brian Webb
9356ac91da LP-548 OPLink will output OPLink receiver objects if mode is set to control or data and control and PPM output is not configured. Also adds support for OPLInkReceiver to all FCs. 2017-09-03 18:11:46 -07:00
Brian Webb
586a073d33 LP-547 Increases the telemetry buffer lengths (both UART and radio) to fix saving large UAVObjects over OPLink. 2017-08-31 19:43:49 -07:00
Brian Webb
b75637e6f2 LP-540 Changes all reference to ms5611 in ms56xx.h to ms56xx, and combines if statements in pressure compensation equations. 2017-07-08 09:15:33 -07:00
Brian Webb
4ee7249b4a LP-540 Adds support for ms5607 and ms5637 to the ms5611 driver and renames it ms56xx. 2017-07-08 09:14:58 -07:00
Laurent Lalanne
1abe34ce7e LP-399 Prepare Autotune GUI : Define some settings as enums 2017-07-05 23:31:57 +02:00
Lalanne Laurent
d031352cdd Merged in f5soh/librepilot/LP-539_OPLM_BigUAVO (pull request #447)
LP-539 OPLink - Big object issue

Approved-by: Brian Webb <webbbn@gmail.com>
Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
2017-07-05 19:33:46 +00:00
Jan NIJS
56661850ab Merged in Oblivium/librepilot/LP-536_GNSS_improvements (pull request #444)
LP-536 GNSS improvements

Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Brian Webb <webbbn@gmail.com>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Jan NIJS <dr.oblivium@gmail.com>
2017-07-05 19:33:11 +00:00
Brian Webb
8f91f1b49b Merged in webbbn/librepilot/LP-537-update-f0-gps-to-be-more-similar (pull request #445)
LP-537 update f0 gps to be more similar

Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Brian Webb <webbbn@gmail.com>
2017-07-05 19:32:00 +00:00
Brian Webb
45a267783a LP-537 stm32f10x_flash.h include in f0 pios_flash_internal.c instead of stm32f0xx_flash.h 2017-06-28 18:14:34 -07:00
Jan NIJS
12062a5c7d LP-536 make pretty 2017-06-28 03:06:32 +02:00
Jan NIJS
5e53fb283c LP-536 skip informational UBX packets that are too large to fit buffers
UBX-NAV-SVINFO (id 30) and UBX-NAV-SAT (id 35) packets are NOT critical to the navigation.
Their only use is to update the nice GPS constellation widget in the GCS.
These packets become very large when a lot of SV (Space Vehicles) are tracked. (8 + 12 * <number of SV>) bytes

In the case of 3 simultaneously enabled GNSS, it is easy to reach the currently defined tracking limit of 32 SV.
The memory taken up by this is 8 + 12 * 32 = 392 bytes

The NEO-M8N has been seen to send out information for more than 32 SV. This causes overflow errors.
We will ignore these informational packets if they become too large.
The downside of this is no more constellation updates in the GCS when we reach the limit.

An alternative fix could be to increment the maximum number of satellites: MAX_SVS and UBX_CFG_GNSS_NUMCH_VER8 in UBX.h
This would use extra memory for little gain. Both fixes can be combined.

Tests indicate that, once we reach this amount of tracked SV, the NEO-M8N module positioning output
becomes jittery (in time) and therefore less accurate.

The recommendation is to limit the maximum number of simultaneously used GNSS to a value of 2.
This will help keep the number of tracked satellites in line.
2017-06-28 03:06:32 +02:00
Jan NIJS
a6aeb11a56 LP-536 Timeout parameter for PIOS_COM_ReceiveBuffer() should be in milliseconds. No need to convert to ticks.
Changed the int xDelay to a define and put the define next to the other major delay in the GPS task.
Increased the time we wait for PIOS_COM_ReceiveBuffer from 5 to 20 ms.
2017-06-28 03:06:30 +02:00
Jan NIJS
6f3fefd650 LP-536 add extra DGNSS state to indicate when SBAS information (any differential information in fact) is used for higher accuracy. 2017-06-28 03:06:30 +02:00
Lalanne Laurent
1a4bb0cc5b Merged in f5soh/librepilot/LP-538_Oplink_256k (pull request #446)
LP-538 Set correct reg.72 value for 256kbps and 150Khz Tx deviation - Cleanup

Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Brian Webb <webbbn@gmail.com>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
2017-06-26 19:17:36 +00:00
Lalanne Laurent
319a7d1d38 Merged in f5soh/librepilot/LP-482_Mag_Kp (pull request #439)
LP-482 Mag Kp + LP-534 Mag source EKF

Approved-by: Alessio Morale <alessiomorale@gmail.com>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Brian Webb <webbbn@gmail.com>
2017-06-26 19:16:49 +00:00
Lalanne Laurent
726c882aab Merged in f5soh/librepilot/LP-520_OPlink_RSSI_PPMoutput (pull request #428)
LP-520 OPlink RSSI PPMoutput

Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
Approved-by: Vladimir Zidar <mr_w@mindnever.org>
Approved-by: Brian Webb <webbbn@gmail.com>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
2017-06-26 19:16:28 +00:00
Jan NIJS
43de409afc Merged in Oblivium/librepilot/LP-533_Fix_serial_receiver_input_on_Sparky2 (pull request #441)
LP-533 incorrect MCU pin used to toggle inverter for rcvr port on Sparky2

Approved-by: Vladimir Zidar <mr_w@mindnever.org>
Approved-by: Jan NIJS <dr.oblivium@gmail.com>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Brian Webb <webbbn@gmail.com>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
2017-06-26 18:39:47 +00:00
Laurent Lalanne
b15e5c0109 LP-539 OPLink : Increase USB Telemetry buffers to previous default 2017-06-26 19:48:49 +02:00
Brian Webb
c358d1741d LP-537 GPSPSystemModStart gets called from main, so it should not be called from GPSPSystemModInitialize. 2017-06-25 19:04:24 -07:00
Laurent Lalanne
95387e5df7 LP-538 Set correct reg.72 value for 256kbps and 150Khz Tx deviation - Cleanup 2017-06-25 16:06:31 +02:00
Brian Webb
081fda25a1 LP-537 Changes startup code on GPSV9 to call PIOS_Board_Init after scheduler start. 2017-06-24 15:28:04 -07:00
Brian Webb
b47a3ad393 LP-537 The LED should be configured active low on the GPSV9. 2017-06-24 15:11:41 -07:00
Brian Webb
481d9abfd8 LP-537 Remove requirement for left shifting I2C addresses on the F0 devices. This makes the I2C driver on F0 compatible with the other devices. 2017-06-24 15:08:16 -07:00
Laurent Lalanne
6d7aa87820 LP-520 Add PIOS_RCVR_TIMEOUT for failsafe state 2017-06-24 14:54:02 +02:00
Laurent Lalanne
1b624d7de3 LP-534 MagStatus trouble: disable the corrected mag debug from EKF 2017-06-19 13:10:10 +02:00
Laurent Lalanne
c2a7582bd9 LP-482 Changes from review, add defines 2017-06-19 10:12:04 +02:00
Laurent Lalanne
9bc63139c3 LP-520 Remove Ch9 from UAVO 2017-06-18 23:41:23 +02:00
Laurent Lalanne
d11b2bbd51 LP-520 Oplink : Remove outdated comments 2017-06-18 23:41:23 +02:00
Laurent Lalanne
20ac6ed1e3 LP-520 Oplink : Send RSSI value as PPM output channel 2017-06-18 23:41:23 +02:00
Jan NIJS
4ba064b017 LP-533 incorrect MCU pin used to toggle inverter for rcvr port on Sparky2
Bug introduced by LP-480. The wrong MCU pin is used for toggling the input inversion. This inverted the serial signal when it should not be inverted.
ibus reception and possibly other serial receiver protocols where not working.

PC4 was controlled, but according to the schematic, PC6 is connected to the xor port.
PC4 is actually connected to the gyro interrupt.

This bug explains another issue I saw from time to time. After a restart of the Sparky2 board, gyro and accelerometer graphs remained locked at 0. Making the board unusable for flight.
2017-06-18 12:31:02 +02:00
Laurent Lalanne
ed28311841 LP-482 Complementary+Mag : Allow fast convergence for mag 2017-06-17 23:01:01 +02:00
Laurent Lalanne
684e0dc14f LP-482 Increase temporary MagKp for initialisation 2017-06-17 16:50:58 +02:00
Laurent Lalanne
ee7d630e3e LP-482 Fix Complementary Mag integral sign 2017-06-17 16:49:40 +02:00
Vladimir Zidar
429f8c41be LP-529 [I2C] [MS5611] Remove PIOS_DELAY_WaitmS() and move (re)initialization into fsm. 2017-06-14 16:12:35 +02:00
Vladimir Zidar
b0fa0edb64 LP-529 [F3] [I2C] Move i2c bus unlocking down to irq, to save one context switch and make bus available for use by other drivers sooner. 2017-06-14 16:10:50 +02:00
Vladimir Zidar
a00af53710 LP-529 [F3] [I2C] Fix nack handling. 2017-06-14 16:10:50 +02:00
Vladimir Zidar
8c60c28b51 LP-529 Fixed i2c port selection for aux mag. 2017-06-14 16:10:24 +02:00
Brian Webb
ea41e40a4a Merged in webbbn/librepilot/LP-526-add-msp_servo (pull request #432)
LP-526 Adds support for the MSP_SERVO command to the MSP module.

Approved-by: Vladimir Zidar <mr_w@mindnever.org>
Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Brian Webb <webbbn@gmail.com>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
2017-06-13 19:57:31 +00:00
Vladimir Zidar
0448d627af Merged in mindnever/librepilot/LP-523_implement_uavobject_DataOverrideDefaults_method (pull request #430)
LP-523 Implement method for overriding uavobject defaults.

Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Vladimir Zidar <mr_w@mindnever.org>
Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Brian Webb <webbbn@gmail.com>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
2017-06-13 19:53:58 +00:00
Brian Webb
22071ba230 LP-526 Adds support for the MSP_SERVO command to the MSP module. 2017-06-06 19:17:25 -07:00
Vladimir Zidar
9f12a27f53 LP-523 Move object id and instance_size members from UAVOData structure into UAVObjType and keep only pointer to it. UAVObjType contains init_callback too to allow resetting data to default values. 2017-06-07 00:47:47 +02:00
Vladimir Zidar
d52f5a02f8 LP-523 uavobject.c.template: Invoke new method $(NAME)DataOverrideDefaults() from $(NAME)SetDefaults() 2017-06-07 00:47:46 +02:00
Vladimir Zidar
27312c4895 LP-528 partially revert 9f16143ba7 (uavobjects cannot be in ccm - loading from external SPI flash optionally uses DMA) 2017-06-07 00:42:57 +02:00