1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00
Commit Graph

1437 Commits

Author SHA1 Message Date
Vladimir Zidar
5f1fef4bc7 LP-173 Removed comments referencing previously removed code. 2017-10-19 00:46:54 +02:00
Vladimir Zidar
0b317f8208 LP-173 Remove explicit calls to remaining settings objects: EKFConfiguration, HomeLocation, RevoCalibration and TakeOffLocation 2017-10-17 13:39:22 +02:00
Vladimir Zidar
b2f548b2ed LP-173 Add settings initcall type. Add SETTINGS_INITIALISE_ALL to board files. Remove all manual settings objects initializations. 2017-10-17 13:25:25 +02:00
Vladimir Zidar
cc29d520a9 LP-544 Add PIOS_Servo_SetActive() API to communicate active servo channels from Actuator module to pios_servo driver. pios_servo is not allowed to touch inactive outputs. 2017-10-17 13:06:05 +02:00
Vladimir Zidar
ed1f6881e3 LP-432 Automatically generate -DHAS_xxx_MODULE for *all* included modules. Use HAS_LOGGING_MODULE inside telemetry.c/setLoggingPeriod() to void function if logging module is not included. 2017-10-07 15:30:18 +02:00
Vladimir Zidar
885d46c8df LP-549 Make ASWA throttle threshold configurable. Add FlightModeSettings.AlwaysStabilizeWhenArmedThrottleThreshold with default value of 0.2 2017-09-14 09:42:31 +02:00
Vladimir Zidar
28ad66502a LP-549 Disable Iterm zeroing at low throttle when ASWA is enabled.
LP-549 Enable ASWA only after initial throttle threshold has been reached to allow Iterm to be zeroed with zero throttle while on ground.
2017-09-14 09:41:42 +02:00
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
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
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
Laurent Lalanne
1abe34ce7e LP-399 Prepare Autotune GUI : Define some settings as enums 2017-07-05 23:31:57 +02: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
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
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
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
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
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
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
45448875d4 LP-512 HwTinyFISHSettings cleanup. First attempt at shared SBus/SensorHub port. 2017-05-30 15:08:21 +02:00
Vladimir Zidar
e25cc40503 LP-512 ws2811 led support for F3. 2017-05-25 22:08:34 +02:00
Vladimir Zidar
5435dbd464 LP-512 Initial F3 support 2017-05-25 22:08:16 +02:00
Brian Webb
ff2504c61f Adds a port of the Tau Labs/dRonin FrSKY Sensor Hub module. 2017-05-17 19:45:40 -07:00
Vladimir Zidar
1a28929206 Merged in mindnever/librepilot/LP-480_pios_board_com_port_setup_refactoring (pull request #418)
LP-480 pios board com port setup refactoring

Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Brian Webb <webbbn@gmail.com>
Approved-by: Vladimir Zidar <mr_w@mindnever.org>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
2017-05-15 18:59:06 +00:00
Vladimir Zidar
50fce728f8 LP-479 Addressed PR comments 2017-04-25 14:10:08 +02:00
Vladimir Zidar
1ebfb701f6 LP-479 Initial DShot implementation, F4 & F1 2017-04-25 14:10:07 +02:00
Vladimir Zidar
3d876d7035 LP-480 Removed RadioAuxStream function from PIOS_BOARD_IO_Configure_RFM22B(), added another function to configure radioaux from hwsettings (revo & sparky2 only). 2017-04-24 16:10:18 +02:00
Vladimir Zidar
05ee4b8dac LP-480 Move PIOS_COM_SetHalfDuplex() functionality to IOCTL. Remove RX/TX mode and change parameter order for PIOS_COM_ChangeConfig() and com driver set_config to match the databits/parity/stopbits scheme (like for example 8N1). 2017-04-24 13:04:23 +02:00
Vladimir Zidar
c9f6ba55a0 LP-480 USB config cleanup. Coptercontrol & Revo tested. Booted. Usb functional. 2017-04-24 13:01:44 +02:00
Vladimir Zidar
5cebebe33b LP-480 More work in progress. 2017-04-24 13:01:41 +02:00
Vladimir Zidar
ddc4f3d855 LP-480 coptercontrol build ok 2017-04-24 12:55:10 +02:00
Vladimir Zidar
dd49ef0166 LP-480 work in progress: revo, nano & sparky2 targets ok. 2017-04-24 12:55:06 +02:00
Alessio Morale
54a81fdcf1 Merge remote-tracking branch 'webbbn/LP-499-enhanced-oplink-bridging' into next 2017-04-22 22:25:49 +02:00
Brian Webb
a22809f52e Merged in webbbn/librepilot/LP-506-remove-pair-stats-from-rfm22b-cod (pull request #414)
LP-506 Removes pair stats from oplink code.

Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
2017-04-22 17:36:05 +00:00
Brian Webb
dc5eef0cb5 LP-499 Adds support for bridging either radio primary, radio auxilary, and/or VCP to any of the output ports (main, flexi, VCP, HID). Also adds the ability to configure the com speed of the UARTs independent of the air data rate. 2017-04-22 09:36:04 -07:00
Brian Webb
ece26d20b1 LP-506 Removes pair stats from oplink code. 2017-04-22 09:31:32 -07:00
Laurent Lalanne
37d1a84945 LP-504 Set speed unit to cm/s 2017-04-08 10:19:27 +02:00
Lalanne Laurent
524cba9279 Merged in f5soh/librepilot/LP-488_autotune_altitudeVario (pull request #395)
LP-488 Add AltitudeVario to Autotune

Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
Approved-by: Mateusz Kaduk <mateusz.kaduk@gmail.com>
2017-03-30 18:53:05 +00:00
Eric Price
c5ea323770 LP-500 fixed comment typos found in PR/review 2017-03-28 07:58:50 +02:00
Eric Price
545f1c863b LP-500 HoTT Bridge Module ported from TauLabs 2017-03-24 07:56:19 +01:00
Corvus Corax
2977ec1382 LP-500 HoTT bridge module initial create 2017-03-24 07:54:01 +01:00
Pashalis Padeleris
67a9aa35ef Merged in padeler/librepilot/LP-483-python-uavtalk (pull request #389)
LP-483 python uavtalk scripts and examples

Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
Approved-by: Pashalis Padeleris <padeler@gmail.com>
2017-03-23 19:44:56 +00:00
Paul Jewell
7428ab59f9 Merged in paul_jewell/librepilot/LP-289_pidcontrol_ne (pull request #362)
LP-289 pidcontrol ne

Approved-by: Eric Price <corvuscorax@cybertrench.com>
Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Paul Jewell <teulupaul@gmail.com>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
2017-03-21 21:49:51 +00:00
Alessio Morale
dc0bd7967d Merged in alessiomorale/librepilot/LP-448_autodetect_count (pull request #391)
LP-448 - stop autodetecting the number of cells once the board is armed and after a minute from power on.

Approved-by: Alessio Morale <alessiomorale@gmail.com>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Harold Hankins <hwh@hjns.net>
2017-03-21 21:29:18 +00:00
paul Jewell
dcb3d760db LP-289 Updated copyright notices 2017-03-09 19:43:24 +01:00
paul Jewell
ebc4b16d9a LP-289 Clean up comments and uncrustify 2017-03-09 19:43:24 +01:00
paul Jewell
a19bd40259 LP-289 cleaned up PIDControlNE::UpdateParameters() 2017-03-09 19:43:23 +01:00
Eric Price
e9a0e3ad69 LP-490 cosmetic code cleanup 2017-03-07 12:12:18 +01:00
Laurent Lalanne
40e6b3c39f LP-488 Change ThrustControl name 2017-03-03 01:46:10 +01:00
Eric Price
2124393d5f LP-490 EKF maps magnetometer into horizontal plane based on known HomeLocation.Be value, to not distort Roll+Pitch estimate from mags 2017-03-02 19:01:02 +01:00
Laurent Lalanne
e7eeba8475 LP-489 Round the smoothQuickValue to 0 2017-03-01 17:12:23 +01:00
Laurent Lalanne
7207e95447 LP-489 Apply SmoothQuickSource changes 2017-03-01 17:12:19 +01:00
Laurent Lalanne
f73dc05029 LP-488 Add AltitudeVario to Autotune 2017-03-01 12:50:56 +01:00
padeler
8c0f29a4ea LP-483 Fixed typo in header comments 2017-02-21 01:45:39 +02:00
Alessio Morale
0e078cdd5e LP-448 - stop autodetecting the number of cells once the board is armed and after a minute from power on.
This prevent the number of autodetected cells to change if the battery is discharged and the board is disarmed/rearmed.
The timer prevent the autodetected cells to change if the the battery discharges on the ground.
2017-02-20 23:07:58 +01:00
Alessio Morale
556c2e9e99 Merged in alessiomorale/librepilot/lp-446_battery_failsafe (pull request #355)
LP-446 Battery failsafe

Approved-by: Lalanne Laurent
Approved-by: Philippe Renon
Approved-by: Harold Hankins
Approved-by: Alessio Morale
2017-02-20 20:39:51 +00:00
Alessio Morale
d5768f87c7 LP-446 - Configurable debounce timer 2017-02-20 21:28:03 +01:00
padeler
0ff0fe6532 LP-483 sets author to librepilot in all python files 2017-02-17 20:37:47 +02:00
padeler
116ec93332 LP-483 Moved python module outside ground. Renamed to librepilot
Protocol bugs fixed in the metadata object packing
Metadata fix for the connectionmanager. Connection manager keeps connection
alive by sending an object periodically. Example scripts updated.
2017-02-16 02:52:24 +02:00
padeler
7038aacdfe LP-483 cherry-pick pyuavtalk code from amorales fork 2017-02-16 02:48:37 +02:00
Lalanne Laurent
758af312b5 Merged in filnet/librepilot/LP-402_invalid_value_for_running (pull request #381)
LP-402 invalid value for running
2017-01-27 20:21:12 +00:00
Laurent Lalanne
fa34dcda67 LP-440 Remove - Add Comments 2017-01-22 15:05:19 +01:00
Laurent Lalanne
33b16be19c LP-440 Fix ReceiverActivity disabled while armed 2017-01-22 12:17:56 +01:00
Philippe Renon
02d7d04932 LP-402 systemmod: remove commented out cruft 2017-01-16 09:04:38 +01:00
Philippe Renon
1c222bdf09 LP-402 remove unused taskinfo and callbackinfo includes 2017-01-16 09:04:37 +01:00
Philippe Renon
de837a02e8 LP-402 systemmod: properly init task and callback info variables
avoids random data for unused optional callbacks
2017-01-16 09:04:33 +01:00
Alessio Morale
44365cf3e9 LP-446 - Add LiHV 2017-01-09 23:48:23 +01:00
Alessio Morale
d59054d8a6 LP-446 - fixes from review 2017-01-09 23:48:22 +01:00
Alessio Morale
508c6dd763 LP-446 - Implement battery alarm failsafe 2017-01-09 23:41:23 +01:00
Alessio Morale
0a3b3dd82b LP-446 - Fix threshold names for FlightBatterySettings 2017-01-09 23:41:23 +01:00
Philippe Renon
cf1b64966e Merged in alessiomorale/librepilot/lp-443_ekf14_mag_proj_handling (pull request #354)
LP-443 & LP-353 ekf14 and CF+INS
2017-01-09 23:13:43 +01:00
Philippe Renon
02d4d47139 Merged in f5soh/librepilot/LP-462_MSP_Dterm_zeroed (pull request #373)
LP-462 MWOSD - MSP: Handle Dterm scale
2017-01-09 22:45:20 +01:00
Philippe Renon
88784276f0 Merged in f5soh/librepilot/LP-428_Switch_Stick_threshold (pull request #370)
LP-428 Switch and stick threshold
2017-01-09 22:45:11 +01:00
Alessio Morale
c5dec236f7 LP-443 - disable Nav Alarm for non Nav algorithms 2017-01-07 18:14:29 +01:00
Alessio Morale
93dcc55977 LP-353 - Introduce a Nav alarm that is active when Position estimation is not available 2017-01-07 18:14:29 +01:00
Alessio Morale
8df3758104 LP-353 - Implement a specific Nav only option in ekf filter, add a debug NavYaw field for testing pourpose(it may be used for integrity check as well) 2017-01-07 18:14:29 +01:00
Alessio Morale
ff5bd26e1a LP-353 - Allow INS For nav and CF for attitude 2017-01-07 18:14:29 +01:00
Alessio Morale
4f045bc73a LP-443 - Handle arming 2017-01-07 18:14:29 +01:00
Alessio Morale
ce87ce105e LP-443 - Add INS14 to Sparky/Revo 2017-01-07 18:14:28 +01:00
Laurent Lalanne
f67c092d6a LP-462 MWOSD - MSP: Handle Dterm scale 2017-01-02 13:04:04 +01:00
Alessio Morale
06dd94636b Merged in f5soh/librepilot/LP-345_RFM22_band_rebased (pull request #364)
LP-345 Rfm22 band
2016-12-28 13:54:29 +01:00
Lalanne Laurent
9ad736d7c8 Merged in Oblivium/librepilot/LP-452_Implement_and_verify_Galileo_support_for_ublox_8 (pull request #368)
LP-452 Support the Galileo GNSS on U-blox NEO M8N receiver.
2016-12-28 13:35:36 +01:00
Laurent Lalanne
2e854b263f LP-428 Remove unused define 2016-12-23 15:34:47 +01:00
Laurent Lalanne
ad0d18cfef LP-428 Handle different threshold levels for sticks and switches 2016-12-23 15:22:14 +01:00
Laurent Lalanne
2872a3467a LP-345 Simplify xtalcap callback check, reuse PIOS_RFM22B_SetXtalCap at boot 2016-12-23 14:39:09 +01:00
Laurent Lalanne
340d304558 LP-345 Changes from review - Typos - Initialize previousOPLinkSettings 2016-12-23 14:39:09 +01:00
Laurent Lalanne
1e920ec67c LP-346 RFM22 tuning: Allow XtalCap value changes without reboot. 2016-12-23 14:39:09 +01:00
Laurent Lalanne
8e1d6f6d86 LP-346 RFM22 tuning: Missing AFCCorrection update for OPLink 2016-12-23 14:39:08 +01:00
Laurent Lalanne
7800f49705 LP-346 RFM22 tuning: Add AFC value to OplinkStatus 2016-12-23 14:39:08 +01:00
Jan NIJS
e5ca71052a LP-452 Added Galileo as a GNSS configuration option to the GCS.
System -> Settings -> GPSSettings -> UbxGNSSMode

The options GPS+Galileo and GPS+GLONASS+Galileo have been added.

Also corrected PRN mask for EGNOS SBAS information. Active PRN: 120 & 136 , 123
Ref: https://egnos-user-support.essp-sas.eu/new_egnos_ops/index.php
2016-12-17 00:04:44 +01:00