1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-08 19:46:06 +01:00
Commit Graph

1412 Commits

Author SHA1 Message Date
Vladimir Zidar
07871ca19f Merged in mindnever/librepilot/LP-545_ubx_null_ptr_dereference_fix (pull request #513)
LP-545 ubx null ptr dereference fix

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>
2018-09-29 09:57:13 +00:00
Vladimir Zidar
3ba6fea710 LP-545 ubx null ptr dereference fix 2018-05-06 19:37:29 +02:00
Jan NIJS
d53dadaf6b LP-598 Followed Laurent's suggestions that makes it possible to remove duplicated code
- Update assessAltitude() to return the altitude in auto takeoff as well as auto land code.
  Code that duplicated the calculations has been removed.
- Make pretty & update headers
2018-05-05 18:22:20 +02:00
Jan NIJS
ec9b867b44 LP-598 clean-ups
- AltitudeAtState is corrected to be a positive altitude above ground.
- remove unneeded call to StabilizationDesiredGet()
- update timeout values in descriptions so they match the code
2018-05-01 19:58:56 +02:00
Jan NIJS
18f5e76f3a LP-598 Fix auto-takeoff velocity
Velocity setpoint with the wrong sign, causing the uav to remain on the ground during the first autotakeoff.
2018-05-01 19:58:56 +02:00
Lalanne Laurent
66bbc2b47b Merged in f5soh/librepilot/LP-576_Default_Yaw_stabilization_automomous_modes (pull request #492)
LP-576 Made AxisLock as default for Yaw stabilization in all autonomous modes.

Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
2018-04-29 17:28:47 +00:00
Lalanne Laurent
cb6d86b048 Merged in f5soh/librepilot/LP-589_INS13_Yaw_spin (pull request #504)
LP-588 INS13 - Scale down Mag variance setting by Be² + Small fixes

Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
2018-04-29 15:22:28 +00:00
Laurent Lalanne
bbb0c7fb25 LP-593 firmwareIAP cleanup, remove code for old AHRS 2018-04-12 14:55:08 +02:00
Laurent Lalanne
4c83f0a844 LP-593 Set firmware Crc at init 2018-04-11 19:32:09 +02:00
Laurent Lalanne
8f504526ca LP-588 INS13 - Scale down Mag variance setting by Be² + Small fixes 2018-04-02 11:29:45 +02:00
Vladimir Zidar
784efc12cf Merged in mindnever/librepilot/LP-556-Allow_BoardId_and_Revision_spoofing (pull request #475)
LP-556 Allow BoardId and Revision spoofing

Approved-by: Alessio Morale <alessiomorale@gmail.com>
Approved-by: Vladimir Zidar <mr_w@mindnever.org>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Lalanne Laurent <f5soh@free.fr>
2018-03-11 12:23:18 +00:00
Lalanne Laurent
578e7adb94 Merged in f5soh/librepilot/LP-569_PosHold_YawControl (pull request #485)
LP-569 Ignore YawControl while using PosHold, AutoTakeOff and AutoCruize

Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Paul Jewell <paul@teulu.org>
2018-03-11 12:22:52 +00:00
Vladimir Zidar
6c9c6cb3f3 LP-556 Change settings uavo to have two fields matching FirmwareIAPObj. 2018-02-12 04:27:07 +01:00
Vladimir Zidar
51923bb67f LP-556 Allow DiscoveryF4Bare to spoof own board id through FirmwareIAPObj. 2018-02-12 04:26:18 +01:00
Laurent Lalanne
938bd7e6fd LP-576 Made AxisLock as default for Yaw stabilization in all autonomous modes. 2018-02-06 19:41:16 +01:00
Lalanne Laurent
dc012a1503 Merged in f5soh/librepilot/LP-563_Reduce_telemetry (pull request #480)
LP-563 Reduce telemetry bandwidth

Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
2018-01-24 20:04:26 +00:00
Lalanne Laurent
45d2913d8b Merged in f5soh/librepilot/LP-560_BaroOffset (pull request #479)
LP-560 Add better filtering before set the baroOffset value

Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
2018-01-24 20:04:11 +00:00
Laurent Lalanne
5be3aad67b LP-569 Ignore YawControl while using PosHold, AutoTakeOff and AutoCruize 2017-12-17 18:53:40 +01:00
Laurent Lalanne
43c4718798 LP-563 CameraDesired is updated continuouslly, check gimbal outputs. 2017-12-03 18:30:55 +01:00
Laurent Lalanne
8cc85923d7 LP-560 Add better filtering before set the baroOffset value 2017-11-26 11:54:37 +01:00
Laurent Lalanne
8da65e8068 LP-550 Set OptionalModules>ModuleName to Enabled if module is builtin. 2017-10-29 15:48:22 +01:00
Laurent Lalanne
8c9cd5d0ec LP-550 Move batteryEnabled to local variable 2017-10-29 13:44:49 +01:00
Laurent Lalanne
b469e9b1ba LP-550 MODULE_AUTOTUNE_BUILTIN typo 2017-10-29 13:44:45 +01:00
Laurent Lalanne
d58c0b11b9 LP-550 Allow Txpid builtin 2017-10-29 13:39:21 +01:00
Vladimir Zidar
8935906fca Merged in mindnever/librepilot/LP-544_fix_ws2811_servo_conflict (pull request #473)
LP-544 Fix for ws2811 & servo driver conflict.

Approved-by: Vladimir Zidar <mr_w@mindnever.org>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Jan NIJS <dr.oblivium@gmail.com>
Approved-by: Lalanne Laurent <f5soh@free.fr>
2017-10-29 12:16:45 +00:00
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