-
-
Notifications
You must be signed in to change notification settings - Fork 881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VTX SPI output calibration routine and initial PWM value config #2515
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkendall64
approved these changes
Jan 18, 2024
CapnBry
approved these changes
Jan 24, 2024
SunjunKim
added a commit
that referenced
this pull request
May 10, 2024
commit 756f5bfc41d297ceb0872879319bbfe727b2133f Merge: acab3baf 128c151f Author: Michael <mha1@users.noreply.github.com> Date: Fri May 10 14:18:19 2024 +0200 Merge pull request #2700 from pkendall64/once-more-into-the-breach Once more... fix for LBT commit 128c151f64290ca1001b02b71660ff64eb10ba81 Author: Paul Kendall <pkendall64@gmail.com> Date: Fri May 10 22:25:14 2024 +1200 Remove the resetting of the TelemetryRcvPhase flag commit ca31cb28528f69501fbc08e7abc4fad8e4e5e275 Author: Jye <14170229+JyeSmith@users.noreply.github.com> Date: Fri May 10 19:44:55 2024 +1000 Remove-unnecessary-SetClearChannelAssessmentTime 🍟 commit 6b65ab173b6d01741c484650ae71349747898285 Author: Paul Kendall <pkendall64@gmail.com> Date: Fri May 10 13:40:22 2024 +1200 Fixes LBT for airport and not clearing the expecting TLM flag commit acab3baf31f9cc96bb67777be3bdb71f871ccabe Author: Dominic Clifton <me@dominicclifton.name> Date: Fri May 10 08:57:53 2024 +0200 Avoid redefined warning when enabling DEBUG_CRSF_NO_OUTPUT and DEBUG_RCVR_LINKSTATS in user_defines.txt (#2692) commit 4dbc1216bc8dda4427e7bf166f021fc7d18bd587 Author: Jye <14170229+JyeSmith@users.noreply.github.com> Date: Fri May 10 16:49:55 2024 +1000 GemX-Lua-RF-Mode-Labels (#2690) commit 538a37524d4b6017415af28c51c523f81f24c81c Author: Dominic Clifton <me@dominicclifton.name> Date: Tue May 7 01:01:17 2024 +0200 Fix for compilation error when verbose logging is enabled. (#2694) commit 590498369a81d1ef06047dab5af04723c5a0d489 Merge: 256a7f75 10b9dd80 Author: Wez <59873510+wvarty@users.noreply.github.com> Date: Mon May 6 18:34:34 2024 +1000 Merge pull request #2695 from ExpressLRS/Fix-GetLastPacketStats().-again Fix GetLastPacketStats()... again commit 10b9dd800d3c734b2df33c8ca2c44170c94bc0e4 Author: Jye <14170229+JyeSmith@users.noreply.github.com> Date: Sun May 5 20:01:54 2024 +1000 Fix GetLastPacketStats()... again Fix GetLastPacketStats() and diversity packet crc check #2488 commit 256a7f753bf34b946f1b8db254ba6065e39cfedd Author: Michael <mha1@users.noreply.github.com> Date: Sat May 4 00:43:55 2024 +0200 fixes #2688 (#2689) commit 43b97c08ecde07dc40e59b410dffaf1683da859c Author: HuangCanming <huangcmzzk@gmail.com> Date: Sun Apr 28 06:30:53 2024 +0800 Fix PWM issue of esp8266 device when duty is 0 (#2684) commit d731fc4796ba60c1605bde254faffd0b1d8434f2 Author: Bryan Mayland <bmayland@capnbry.net> Date: Sat Apr 27 18:30:30 2024 -0400 Reset LQ to 100% on packet rate cycling (#2682) * Reset LQ to 100% on packet rate change * Only reset on packet cycling, normal disconnects call SetRFLinkRate commit c4f4cc1492c013e455d1d931f111a0bee3824e00 Author: Johannes <schugabe@gmx.at> Date: Fri Apr 26 02:55:25 2024 +0200 wait for multiple errors before stopping the wifi joystick (#2680) some transient errors can happen that are recovered after a short moment commit 45d3a28ba28d3e2095cc4d5f0c4c6289e24cdfd5 Author: Paul Kendall <pkendall64@gmail.com> Date: Thu Apr 25 10:34:09 2024 +1200 Extend RSSI settling time for 50Hz LoRa mode (#2672) A few other cleanups and fixes for LBT commit 96cca3df8e5ae815c29f5a2dcf287f561793a778 Author: Paul Kendall <pkendall64@gmail.com> Date: Mon Apr 22 16:42:45 2024 +1200 Fix boot-loop when no hardware definition uploaded (#2674) * Create null logging stream for no hardware * Do the same fix for the receiver and add comment commit 49bb6fc32c7ba444ae45e7a92185b93b5c226ded Author: Paul Kendall <pkendall64@gmail.com> Date: Mon Apr 22 16:42:19 2024 +1200 Fix logging on TX modules (#2675) commit 49dfe6600f1beb16564993a7c0055de9d8229c69 Author: Paul Kendall <pkendall64@gmail.com> Date: Sun Apr 21 17:04:26 2024 +1200 Add missing LNA gain to the hardware.html page (#2670) commit cc4abe05493b6da9921ea92f69ea57f278e6f8e0 Author: Paul Kendall <pkendall64@gmail.com> Date: Sat Apr 20 19:09:25 2024 +1200 Hide button color elements if not supported (#2668) commit c78c5d05bb1b189f3b915b6848ec95ecd5a74760 Author: Jye <14170229+JyeSmith@users.noreply.github.com> Date: Fri Apr 19 17:18:29 2024 +1000 Fix LBT TLM (#2660) * Fix-LBT-TLM * Enhanced deferred function support Allows upto 3 on the go. Stops overwriting in LBT code. * removed debug code * If we run out of slots write a debug message --------- Co-authored-by: Paul Kendall <pkendall64@gmail.com> Co-authored-by: Michael <101.37584@germanynet.de> commit 03d6ec260035910288ef1cb3fa1663cc53723a76 Author: Paul Kendall <pkendall64@gmail.com> Date: Fri Apr 19 19:06:26 2024 +1200 Fix S3 flashing to the via UART/ETX modes (#2665) commit 616bfcfeb9a0c277bb76803c5cf63bbfef74b9bc Author: Johannes <schugabe@gmx.at> Date: Thu Apr 18 23:43:59 2024 +0200 add padding to buffer (#2666) commit 177339d7e71a42fb11f7ee02d7557ba9b01073b9 Author: Bryan Mayland <bmayland@capnbry.net> Date: Thu Apr 18 17:16:22 2024 -0400 WORD_PADDED was returning number of words not bytes (#2664) commit d0e63040d381d1a74616978d93bd56f600fd9761 Author: Jye <14170229+JyeSmith@users.noreply.github.com> Date: Fri Apr 19 06:53:41 2024 +1000 adds previousMean() to MeanAccumulator (#2663) commit 0a25c7f532d9e366ec2c69631ea522e6df74728a Author: Michael <mha1@users.noreply.github.com> Date: Wed Apr 17 22:56:06 2024 +0200 fixes HoTT Telemetry requiring an external diode (#2658) * fix HoTT telemetry requiring external diode on ESP32 receivers * added defines for magic number 3 and 1 (identical to change in PR#2610) * cleanup * replaced magic number with define * following @Jye's remark switched to use TX as half duplex line removed unnecessary calls to pinMatrixInDetach() and pinMatrixOutDetach() commit f8d39794b2492b4ac6e08d1dd497461c28ed5e16 Author: Johannes Hutter <johannes.5494@gmail.com> Date: Wed Apr 17 22:44:50 2024 +0200 Debounce BOOT0 readout in the hot loop (#2633) Connecting a USB cable sometimes introduces noise on the pins of the USB to UART converter leading to a low BOOT0 pin. In the main loop of TX this is checked for indication of a backpack update. Depending on timing this leads to the whole TX hanging since the serial connection is closed and the device enters passthrough mode. Introduce a simple software debouncing to ensure the state of the pin has settled before entering the update mode. Co-authored-by: Johannes Hutter <johannes.hutter@helsing.ai> commit 210e938ec2850dff11f5575ba0b8b000c220fce6 Author: Vasiliy <dangerousvasil@users.noreply.github.com> Date: Wed Apr 17 23:42:43 2024 +0300 Fix for TBS Tango 2 display (#2661) * fix for tango2 display * fix TBS Tango 2 display --------- Co-authored-by: vasilii.popkov <vasilii.popkov@vk.team> commit 35c3d281ec62c9fd71206acbb32d3c119a82b6b7 Author: Paul Kendall <pkendall64@gmail.com> Date: Wed Apr 17 17:09:45 2024 +1200 Save our help-and-support bretheren (#2659) * Save out help-and-support bretheren * Reword slightly based on feedback commit 14ac425665b140c96181c0cdc371ad1d6f087ec7 Author: Paul Kendall <pkendall64@gmail.com> Date: Mon Apr 15 06:46:51 2024 +1200 remove generics from targets.json during artifact generation (#2654) commit d786b0215da2ffc69078855316ef060e144e3d7f Author: Jye <14170229+JyeSmith@users.noreply.github.com> Date: Sat Apr 13 11:21:12 2024 +1000 [LR1121] Decrease PACKET_TO_TOCK_SLACK (#2621) * decrease PACKET_TO_TOCK_SLACK Removes an unnecessary GetIrqStatus and optimises SetFrequencyReg order. This saves 20us that can then be removed from SLACK and provides enough time for packets when using 2.4G 500Hz 1:2 TLM. * reduce SLACK some more * fix build errors commit 1fb140f24d06b0a3f0bf56eb8fc42577b8d3aa20 Author: Jye <14170229+JyeSmith@users.noreply.github.com> Date: Sat Apr 13 11:21:01 2024 +1000 LBT - change tx modules to use rxmode with timeout (#2643) * LBT - change tx modules to use rxmode with timeout * add missing define commit 6651bd57a5371bc9d7a5ef4b2f51d2462ff431cc Author: Paul Kendall <pkendall64@gmail.com> Date: Fri Apr 12 21:49:03 2024 +1200 Fix the power-on-counter reset so it does not cause a connection loss at startup (#2650) * Fixes the power-on-counter reset so it does not cause a connection loss * Remove PWM failsafe setting on startup commit 7ab3cf8a05383b91401e167e1eafc51041164bde Author: Matthias Hryniszak <padcom@gmail.com> Date: Fri Apr 12 01:10:53 2024 +0200 Added information about the target (#2649) * Added information about the target (tx/rx, sx127x/lr1121, sub GHz and git commit) * Changed to an enum type for radio type information * Updated to include SX128x and module type commit 3600b87881323e93b71097d4efa8bdafeb96c016 Author: Matthias Hryniszak <padcom@gmail.com> Date: Tue Apr 9 23:09:55 2024 +0200 GH-2645 Disabled advertisement of default gateway to DHCP clients (#2646) commit add3ce0b9c330a5d5a2af95e4582e3d9b4bc5df6 Author: Paul Kendall <pkendall64@gmail.com> Date: Sat Apr 6 14:28:31 2024 +1300 Fix the dropdown being clipped (#2637) Also fit cell content so table looks nicer commit df9c63dd92367b7dc2df4dbc00b78b999dcb2380 Author: Benedikt Kleiner <b.kleiner@str8labs.com> Date: Sat Apr 6 01:05:01 2024 +0200 prevent WaitOnBusy from waiting on non-existing radio (#2640) commit 81bac98390b6df456b214cbc4f63151a3f19d61d Author: Paul Kendall <pkendall64@gmail.com> Date: Sat Apr 6 11:28:44 2024 +1300 -1 (0xff) is a valid power value for SX1280/LR1121 (#2638) commit 40df0fb668c95d28d8fcec62aae0d3ae93a5e058 Author: Bryan Mayland <bmayland@capnbry.net> Date: Fri Apr 5 17:07:28 2024 -0400 Add BMP280/BME280 I2C barometer support (#2480) * Add BMP085 unused/untested * WIP * Support 0 temperature or pressure duration, jump right to next * Finish up BMP280 * Fix for updated BaroI2CBase template * Allow HAS_BARO on ESP8266 * Support BMP280 on multiple addresses * add r flag to encode string as raw string to fix deprecation (#2598) --------- Co-authored-by: Johannes <schugabe@gmx.at> commit cd028f61d6ef51593c7b693559ef3aed23a254a1 Author: Michael <mha1@users.noreply.github.com> Date: Fri Apr 5 22:40:16 2024 +0200 Fixes #2623 behavior for the LUA script UI (#2630) commit c456440e256492de7e6b082fe9a9882b915036a7 Author: Michael <mha1@users.noreply.github.com> Date: Wed Apr 3 23:30:10 2024 +0200 HoTT Telemetry: robustness measure (#2631) * robustness measure for slow sensors like the 33601 Vario and S8361 80V voltage module * non-blocking delay between sending CMD byte 1 and 2 commit 07445f27a0d124209df1de59f7f4027ce2c00fa7 Author: Bryan Mayland <bmayland@capnbry.net> Date: Tue Apr 2 23:39:11 2024 -0400 Passthrough handset channels if headtracking switch is off (#2615) commit 230d236a9145914993a1b05e5b28f713949d1274 Author: Jye <14170229+JyeSmith@users.noreply.github.com> Date: Wed Apr 3 12:00:30 2024 +1000 Adds LR1121 image calibration (#2616) * adds LR1121 image calibration * fix sneaky Radio.Begin() calls. * DBG cleanup commit 11fde0792850cfe80c4e7d479007ad896e9e1dc0 Merge: 2d98919b 1dcf70bb Author: Wez <59873510+wvarty@users.noreply.github.com> Date: Tue Apr 2 17:17:04 2024 +1000 Merge pull request #2628 from ExpressLRS/master Update 3.x.x in prep for the v3.4 release commit 1dcf70bbaced48cd2be98e50d5cef66f41c54e23 Author: Jye <14170229+JyeSmith@users.noreply.github.com> Date: Mon Apr 1 13:13:28 2024 +1000 Fix LR1121 binding (#2617) * fix LR1121 binding * remove magic commit 05ebcfe8e3bceda8315c68455cd3636c1522a2c6 Author: Jye <14170229+JyeSmith@users.noreply.github.com> Date: Mon Apr 1 12:49:44 2024 +1000 fix antenna value for Diversity/Gemini receivers (#2622) commit 62faf7f3c13f8b2a7e518a9cf585f29173bb06b7 Author: Michael <mha1@users.noreply.github.com> Date: Mon Apr 1 00:15:01 2024 +0200 WebUI: prevent multiple I2C SCL/SDA selections (#2624) * fixes issue #2623 * do it properly commit 3c04b8d38e3e8a5e0b581b535dc64ec8b88c0822 Author: Paul Kendall <pkendall64@gmail.com> Date: Sun Mar 31 13:48:27 2024 +1300 Allow choosing the SubGHz domain for LR1121 modules (#2618) commit c9e7bcf6a68e076be41d0caee51bd13395a03e04 Author: Paul Kendall <pkendall64@gmail.com> Date: Sun Mar 31 13:47:31 2024 +1300 Fix "Not set" UID badge (#2619) commit 7eb760fd3594e3b9738064ab4aea1fc15a938857 Author: Paul Kendall <pkendall64@gmail.com> Date: Thu Mar 28 20:31:38 2024 +1300 Ignore trailing items with 0 duration (#2612) This fixes spurious channel data for inverted PPM and glitches commit d7524c488423f73780ed440e22ca0f3af358dfff Author: Jye <14170229+JyeSmith@users.noreply.github.com> Date: Thu Mar 28 18:30:57 2024 +1100 increase-SX1276-SyncPktIntervalDisconnected-for-25Hz (#2589) commit 66998e173252c4c0a9e6e0e89010761f56ec9ff2 Author: Paul Kendall <pkendall64@gmail.com> Date: Sat Mar 23 15:12:34 2024 +1300 PWM testing/fixes (#2588) * Revert "Fix for 10KHz 0% and 100% on 8285 receviers (#2496)" This reverts commit 12659fb2b4dfb04154719f26e1b9ef2eef6a4b6c. * Much simpler handling of 0 high/low times * Optimisation of timing in PWM timer interrupt t * Extend minimum time for next NMI * Rename pin/i to gpio as thats what it really is. commit f6de862bb230169ef00444b1102f006412c5f238 Author: Bryan Mayland <bmayland@capnbry.net> Date: Thu Mar 21 17:00:22 2024 -0400 Add basic teamrace model select via channel (#2176) * Add basic teamrace model select via channel * Stop servo updates on teamrace mismatch * Remove unintentional python file * Fudge my math, AUX7 is the last 2/3/6 pos switch * Race condition between clearing frameAvailable and sending * Disable MSP writes for teamrace too * Use builtin device event trigger going to and from modelmatch * Add Squad Select folder * teamraceModelIsSelected() to teamraceHasModelMatch * Support modelmatch / teamrace for SBUS sort of * Rename Squad Select back to Teamrace * Prettier name change * Review change * Remove those turnery's for readability commit d48977e7599d37df30efbf01512a13fa7cab96bc Author: Jye <14170229+JyeSmith@users.noreply.github.com> Date: Wed Mar 20 04:07:12 2024 +1100 fix frameAvailable race condition (#2591) commit b0f30c14cdcda05446376a87f8fde8282919e1f9 Author: deadbytefpv <83231715+deadbytefpv@users.noreply.github.com> Date: Wed Mar 20 01:06:48 2024 +0800 Add file drag-and-drop to webui update tab (#2590) * Add file drag-and-drop to update tab * Refactored File Handler commit a1771e67dfbef450de4656ec9c4cb2351228e194 Author: Paul Kendall <pkendall64@gmail.com> Date: Wed Mar 13 16:29:43 2024 +1300 Fix ESP32 S3 CRSF/PPM autodetect (#2586) * S3 has 4 TX and 4 RX RMT channels. The RX ones start at channel 4. * Simplification after review commit 7ff2bdb60f4c8b081620255ac9656a3cdefcb63b Author: Paweł Stefański <pawel.m.stefanski@gmail.com> Date: Mon Mar 11 04:43:21 2024 +0100 Fixed VTX pwm array initialization (#2583) commit 275f94ce58e547b9ffe08cfbf4f7d3b7924e55e8 Author: Paul Kendall <pkendall64@gmail.com> Date: Mon Feb 26 10:41:12 2024 +1300 Fix error when radio chip failed to read (#2567) commit 7dae690723c9599532157da5c7ba6e9c40d8da62 Author: Paul Kendall <pkendall64@gmail.com> Date: Mon Feb 26 10:36:14 2024 +1300 Update the wifi power levels (#2568) commit a07bd0988790b6371997c0cb6b746544fd4fccfb Author: Paul Kendall <pkendall64@gmail.com> Date: Sun Feb 25 07:57:52 2024 +1300 Only call servo function if theres a change (#2571) commit faee027ef6fbe09e74e6360a99ac9a019a4d5e1f Author: ot0tot <36753790+ot0tot@users.noreply.github.com> Date: Fri Feb 23 20:43:39 2024 -0500 Add ESP8285 900MHz TX Target (#2566) * Update unified.ini * Update Unified_ESP8285_TX.h commit 498f175786988f58473e7326c1a8a571358ea6db Author: Bryan Mayland <bmayland@capnbry.net> Date: Tue Feb 20 04:36:13 2024 -0500 DEBUG_RCVR_LINKSTATS needs to work without DEBUG_LOG (#2562) * DEBUG_RCVR_LINKSTATS needs to work without DEBUG_LOG * Imply DEBUG_CRSF_NO_OUTPUT when using some of the debug stats defines --------- Co-authored-by: Jye <14170229+JyeSmith@users.noreply.github.com> commit b4ad5ce9595125f1ffeec767c6a288a40b384a26 Author: Jye <14170229+JyeSmith@users.noreply.github.com> Date: Tue Feb 20 18:21:19 2024 +1000 Gemini Xrossband (GemX) - LR1121 Driver (#2540) * lr1121 Still needs SF6 compatibility with the SX127x to be fixed. ESP32 crashes on HWtimer resume. * add tx target * correct FREQ_SPREAD_SCALE * working 900 state still an issue with serial crashing * Make SPI go brrrrrr added https://github.com/ExpressLRS/ExpressLRS/pull/2339 * working as a single lr1121 and 900+2G4 combined * GetAndClearIrqStatus clean up * Gemini tx All lora modes working on the tx. Rx still needs checking. * add generic USE_HARDWARE_DCDC plus clean up * fix CS from interrupting a busy SPI * working rx * fix GetLastPacketStats for diversity and optimise SPI * make fuzzy_snr() faster... thanks Sunjun :muscle: The current method with exp() would take 85us in the middle of the ISR. * increase PACKET_TO_TOCK_SLACK so the ISR fits for 500Hz * fix fuzzy_snr https://github.com/ExpressLRS/ExpressLRS/pull/2379 * add basic power control and change radio_rfo_hf to be more generic changes radio_rfo_hf to radio_rfo_lp (lp = low power) * add missing ClearIrqStatus * Add ability to configure LR1121 targets * fix for txen and setting 2.4 output for testing * adds new power array power_values_dual for dual band systems ... works for the lr1121, but probably broke everything else :| * Fix error in unified configurator * Only call extra power setting on LR1121 * power clean up LR1121 default mode is min power and low freq rf amp * more power clean up * adds multi rx logging - DELETE ME LATER * mods RF modes for testing - DELETE ME LATER * adds multi rx logging cleanup - DELETE ME LATER * Revert "mods RF modes for testing - DELETE ME LATER" This reverts commit 18cd13ee859abc083552fc3be4612d2ff5868c86. * add new DB mode * fix ExpressLRS_AirRateConfig for sx1280 * post DB cleanup and comments * fix FHSSrandomiseFHSSsequenceBuild() * fix DEBUG_LOG_MULTI_RX define * fix AsyncTCP https://github.com/ExpressLRS/ExpressLRS/pull/2511 * add check to dualband to use the fhss seq cnt with the lowest value * adds ALL THE MODES! * test code cleanup * cleanup old SetDioAsRfSwitch * revert janky display menu ordering... Tested and not required as the list is circular * wrap PACKET_TO_TOCK_SLACK in a define * handle negative power values correctly * simplify output power code at the expense of a little efficiency * correct POWER_OUTPUT_VALUES_DUAL use * add missing ClearIrqStatus * revert USE_RADIO_RFO_HF change * revert more USE_RADIO_RFO_HF changes * fix missing FHSSgetInitialFreq() --------- Co-authored-by: Jye <JyeSmith@users.noreply.github.com> Co-authored-by: Paul Kendall <pkendall64@gmail.com> commit f701140ea39acdd5abf43019fea349b2da1a5fb9 Author: Bryan Mayland <bmayland@capnbry.net> Date: Fri Feb 16 09:30:02 2024 -0500 Allow all binding methods on RX (#2542) * ESP8266 unified binding * Bring TX up to date with new binding code * Mistakenly checked this in * Volatile bind, binding moved in RX webui * Config update * Unrelated STM32 fixes * Fix STM32 flashing with same bind phrase * Self review fixes * Forgot the totally reset requirement * Default wifi-on-interval for lll resets to 60s * Reset config retains the domain * FLASH_DISCRIM causing every target to always full rebuild * make sure pwmChannels is aligned * Note about BF passthrough changing RCVR_UART_BAUD * Everyone uses EnterBindingModeSafely() now * Pedantic debug * wifi-on-interval was being forced to -1 * Increase timeouts, thanks PK * Allow 4-6 bytes for raw UID binding * Support bind CRSF command on TX too * Use callback for TX binding * Support bind CRSF command on RX via OTA * I add one line of docs and typo it * Allow patching flash_discriminator with binary_configurator.py * Updates handset for binding * Don't include flashdescrim.h in unit tests / TX commit 035b72d6c82bc8eaffeebfb93bd524863d263273 Author: Paul Kendall <pkendall64@gmail.com> Date: Wed Feb 14 15:59:14 2024 +1300 For MacOS we prioritise the wchusbserial devices. (#2559) commit 190ba7e988cd2919ac1ce5d7b2697246cc9b2806 Author: Paul Kendall <pkendall64@gmail.com> Date: Tue Feb 13 15:48:44 2024 +1300 Update github actions (#2558) commit 14b07059b71e9555f46ffbad7db9df9567c74074 Merge: 57df8faa dfa1b055 Author: Paul Kendall <pkendall64@gmail.com> Date: Tue Feb 13 15:48:19 2024 +1300 Merge pull request #2557 from ExpressLRS/merge-3.x.x Merge 3.x.x-maintenance to master commit dfa1b05565d966d82e0d55ffbd1f039cfdf35b94 Merge: 57df8faa 2d98919b Author: Paul Kendall <pkendall64@gmail.com> Date: Sat Feb 10 16:28:58 2024 +1300 Merge branch '3.x.x-maintenance' into merge-3.x.x # Conflicts: # src/lib/LUA/rx_devLUA.cpp # src/lib/POWERMGNT/POWERMGNT.cpp # src/lib/SX127xDriver/SX127xRegs.h commit 57df8faadb53812c2ac9469e3352b389a5f7480a Author: Paul Kendall <pkendall64@gmail.com> Date: Fri Feb 9 10:34:23 2024 +1300 Fix RGB on S3 ofter platform upgrade (#2553) commit 3f52019fd2515d3d8389d9dc118d215edaecab9b Author: Paul Kendall <pkendall64@gmail.com> Date: Fri Feb 9 10:31:55 2024 +1300 PPM handset support (#2528) * Fix unit tests on MacOS * Extract controller interface for TX modules Refactor CRSF into a controller Add a PPM controller Add Auto-detection of controller type * Auto arm if less that 5 PPM channels * Documentation for the Controller interface * Fix unit tests and overrides in helpers * Changes as per review * Rename 'Controller' to 'Handset' commit 9ecff46cd7078f7a1808c1fdc0a1f4f77d473503 Author: Frank Zhao <frank.zhao.main@gmail.com> Date: Mon Feb 5 11:09:09 2024 -0800 Feature: PWM failsafe modes, like no-pulse, hold, and custom set position (#2535) * Added PWM failsafe modes, like no-pulse, hold, and custom set * cosmetic + language changes after discussion * forgot to change a few "hold" to "last" commit c91185f39fcf39ac833060c9a8875168a60263bb Author: Paul Kendall <pkendall64@gmail.com> Date: Sat Feb 3 12:22:38 2024 +1300 Allow setting the destination for CRSF MSP packets (#2550) * Allow setting the destintation for CRSF MSP packets Also target the RX when sending set_rx_config command so it's not also sent to the FC * Changes as per review commit 65fe200bbe47d9559146e203ea58dba3bb296b0c Author: Paul Kendall <pkendall64@gmail.com> Date: Sat Feb 3 12:22:08 2024 +1300 Get thermal info from S3 if no LM75A (#2463) * Get thermal info from S3 if no LM75A * Fixes as per review plus some bonus cleanup commit 701818d422b2ca7b6d8cae6b0b8098113b4e0234 Author: Paul Kendall <pkendall64@gmail.com> Date: Sat Feb 3 08:06:51 2024 +1300 Inform serial protocols of missing packets (#2457) SBUS uses this to adjust it's output packet rate and to set the "lost frame" bit commit ff27651f552eba2cbadb9478149acf0a9e9270e0 Author: Paul Kendall <pkendall64@gmail.com> Date: Thu Feb 1 21:24:46 2024 +1300 Add second reset pin for consistency with SX1280 (#2538) commit 8ae740f9e5f12998078a905751aaa9bf70714922 Author: Paul Kendall <pkendall64@gmail.com> Date: Thu Feb 1 10:22:48 2024 +1300 Allow screen rotation for TFT screens (#2520) commit 80d9f329670c75e70ad917643750e5af5260f152 Author: Dominic Clifton <me@dominicclifton.name> Date: Wed Jan 31 22:03:11 2024 +0100 VTX - Workaround for 25 bit data transmission bug. (#2406) commit 823fb8189daaf6f2b69cd5547f726c457cb619c0 Author: Paul Kendall <pkendall64@gmail.com> Date: Wed Jan 31 21:47:12 2024 +1300 Allow flashing of the back on S3 via USB (#2494) commit 69381f22b87bdc1056bcb8b2f4ecd08fd214d356 Author: Paul Kendall <pkendall64@gmail.com> Date: Sat Jan 27 12:28:43 2024 +1300 Support CRSF bind command from betaflight (#2523) * Support CRSF bind command from betaflight * Refactor to processInternalTelemetryPackage * Redundant call to setIsBound(false) --------- Co-authored-by: Bryan Mayland <bmayland@capnbry.net> commit 758b97b65278e1929bedcdd67d757657f5f2cc11 Author: Paweł Stefański <pawel.m.stefanski@gmail.com> Date: Wed Jan 24 19:17:02 2024 +0100 VTX SPI output calibration routine and initial PWM value config (#2515) * Added VTX initial PWM values * Added a VTX calibration routine commit 212361bb015af8dca57065333c7d290b85ff5540 Author: Paul Kendall <pkendall64@gmail.com> Date: Mon Jan 22 11:16:14 2024 +1300 Disable processing MSPVTX commands if there is not SPIVTX (#2525) commit a4f16575cf8699c7dfe503b9b72d4d8ca7bd0681 Author: Michael <mha1@users.noreply.github.com> Date: Thu Jan 18 22:51:58 2024 +0100 Pick SSID with strongest RSSI in mesh networks with multiple identical SSIDs (#2536) * scan all channels prior to connecting to SSID * esp32 only commit a8420a044f8f5051d5386d412b0265310337c6d7 Author: Paul Kendall <pkendall64@gmail.com> Date: Wed Dec 27 09:11:29 2023 +1300 Fix build because an update to an unmanaged dependency broke the build (#2511) commit 2d98919b5a4c780d3d1c8400dd478ef99a4b3025 Author: Paul Kendall <pkendall64@gmail.com> Date: Fri Dec 22 09:43:31 2023 +1300 Revert "Cherry pick pull request #2444 to 3.x.x (#2506)" (#2510) * Revert "Cherry pick pull request #2444 to 3.x.x (#2506)" This reverts commit ace926905a5921fc57df1178a38e4f39f5eb9a55. * Fix build because an update to an unmanaged dependency broke the build commit be164a92032cbafa2f5434a741d82b1e8973c386 Author: Paul Kendall <pkendall64@gmail.com> Date: Tue Dec 19 10:22:08 2023 +1300 Ability to set Semtech output power when using DAC for PA power control (#2498) * Ability to set Semtech output power when using DAC for PA power control (#2388) * Ability to set Semtech output power when using DAC for PA power control * Single setOutputPower with MaxOutput & OutputPower for SX127x * Remove unnecessary defines * Create a define for the magic number * Add defaulting for output power control if power_values2 is not supplied commit ace926905a5921fc57df1178a38e4f39f5eb9a55 Author: Paul Kendall <pkendall64@gmail.com> Date: Tue Dec 19 09:13:10 2023 +1300 Cherry pick pull request #2444 to 3.x.x (#2506) * Merge pull request #2444 from schugabe/udp-joystick Adds a Joystick that sends data via UDP/WIFI * Reserve type 69 ('E') packet for advertisement --------- Co-authored-by: Bryan Mayland <bmayland@capnbry.net> commit 12659fb2b4dfb04154719f26e1b9ef2eef6a4b6c Author: Paul Kendall <pkendall64@gmail.com> Date: Mon Dec 18 19:04:30 2023 +1300 Fix for 10KHz 0% and 100% on 8285 receviers (#2496) commit db960ff4a37b45501373d5e8041d635c6073c51c Author: Bryan Mayland <bmayland@capnbry.net> Date: Mon Dec 18 00:55:43 2023 -0500 Retain PWM channel setting when switching a serial pin function (#2499) commit 7d08ab4a118e40326f92997506c36a16a4943533 Author: Jye <14170229+JyeSmith@users.noreply.github.com> Date: Tue Dec 5 13:05:38 2023 +1000 Revert LinkStatistics changes (#2491) commit d42b655d7ad04c550f2131dd93ed0cca2be4c601 Author: Andreas Rammhold <andreas@rammhold.de> Date: Thu Nov 30 04:43:34 2023 +0100 Fix PWM channel reset on TX/RX serial port config change via LUA (#2486) Previously whenever one of the RX or TX pins (that are used for PWM channels) was reconfigured via the LUA script (from the TX) the corresponding sibling channel (in case of the RX pin, the TX pin and vice versa) would also be reconfigured. That is a sane approach when there is only serial and PWM modes available. Fortunately ELRS allows us to change the PWM frequency of the outputs. So an output channel can be in either serial, on/off, PWM 50Hz, PWM 100Hz, 333Hz, 400Hz or 10kHzDuty modes. Whenever any of these modes are selected (for either of the serial pins) the entire port configuration is also done for the sibling port. The caveat with the previous implementation (before this commit) is that a sibling port could only be in either serial or PWM 50Hz mode. If you wanted to configure multiple ports for e.g. 333Hz PWM you'd not be able to configure both of the serial ports (pin 1 & 3) for anything but 50Hz PWM as that value was the hard coded PWM value in the serial configuration code. With the code path for reconfiguring a serial pin into PWM has become a tiny bit more complex. When a port is supposed to be switched to PWM mode but already is in PWM mode the siblings configuration will be retained. This now allows for sibling serial ports to have independent PWM frequencies configured via the ELRS lua script, just as it was possible via the webinterface already. Fixes #2485 commit 0043228051bc440b3d35963730e605d12d9f0e24 Author: Jye <14170229+JyeSmith@users.noreply.github.com> Date: Wed Nov 29 10:44:18 2023 +1000 fix GetLastPacketStats() and diversity packet crc check (#2488) Co-authored-by: Paul Kendall <pkendall64@gmail.com> commit 2b417efec71374f99afe18e57e25295cf21388cb Author: Paul Kendall <pkendall64@gmail.com> Date: Wed Nov 29 12:24:26 2023 +1300 Remove extraneous pyproject.toml file (#2481) (#2489) commit 55edd2e7b27af4cc2da0787658e193805d68240a Author: benjinne <benjinne@gmail.com> Date: Tue Nov 21 23:13:31 2023 -0500 stlink flash fix bootloader path (#2483) * stlink flash fix bootloader path * stlink flash fix bootloader path allow fdir to be empty commit 419eb35e8a018b159693f21ea96e610def2f4f0f Author: Paul Kendall <pkendall64@gmail.com> Date: Tue Nov 21 20:07:14 2023 +1300 Remove extraneous pyproject.toml file (#2481) commit 0984889b838406377113b745a05864819b8faebf Author: Jye <14170229+JyeSmith@users.noreply.github.com> Date: Tue Nov 21 07:04:02 2023 +1000 Move unified.ini to top of targets list (#2473) * move unified.ini to top of targets list * The Purge commit 9310b783106acac6828dd6634310ec84b2bea3a3 Author: PXKJ <52065178+AlanAlger001@users.noreply.github.com> Date: Mon Nov 20 03:34:16 2023 +0800 Fix esp32s3 and backpack passthrough flashing settings (#2472) * Update devBackpack.cpp * Update devBackpack.cpp commit 31bed5cb58515790f41a083e6a5432f8c9214e55 Author: MUSTARDTIGER FPV <122312693+MUSTARDTIGERFPV@users.noreply.github.com> Date: Wed Nov 15 16:24:54 2023 -0800 Add US433 regulatory domains (#2309) commit f1ea0830e65df9fc92cebb1c7b75021998514772 Author: Michael <mha1@users.noreply.github.com> Date: Thu Nov 16 01:22:04 2023 +0100 fix SUMD update rate at 100Hz (10ms) (#2478) commit fab7b1394b837683aee5be64ab247403821b2f07 Merge: 9c5b30e8 1adbc6d1 Author: Johannes <schugabe@gmx.at> Date: Tue Nov 7 09:11:09 2023 +0100 Merge pull request #2469 from ExpressLRS/fix-HARDWARE_led_reg_green-spelling fix HARDWARE_led_reg_green spelling commit 9c5b30e8c0b02617bce48bdc3bbe5eced6e20114 Merge: 3b7def87 21106a9c Author: Johannes <schugabe@gmx.at> Date: Tue Nov 7 09:10:09 2023 +0100 Merge pull request #2444 from schugabe/udp-joystick Adds a Joystick that sends data via UDP/WIFI commit 1adbc6d1eb31c840ad31f2530d55898114cfc24f Author: Jye <14170229+JyeSmith@users.noreply.github.com> Date: Tue Nov 7 10:35:55 2023 +1000 fix-HARDWARE_led_reg_green-spelling commit 3b7def87b8ccbbf85bc860a9252b59a57e8d585e Author: Paul Kendall <pkendall64@gmail.com> Date: Sun Nov 5 11:03:26 2023 +1300 Configurable I2C pins for PWM capable (ESP32) receivers (#2425) * Configurable I2C pins * Lua configuration of I2C pins Skip blank values in Lua TextSelection * WebUI updated for I2C configuration * Set global flag if I2C enabled * Fixes after review and discussion on discord * Add indicators as to the supported features of a pin commit b7bf014b31f8eed11400034cb58085f7de980e76 Author: Jye <14170229+JyeSmith@users.noreply.github.com> Date: Sun Nov 5 04:48:01 2023 +1000 add nvs set and get for backpackTlmEnabled (#2467) commit 21106a9ce4457068369b43f88abf757a2762fbab Merge: a2b8f4b5 ff22fc91 Author: Johannes <schugabe@gmx.at> Date: Tue Oct 31 09:06:44 2023 +0100 Merge branch 'master' into udp-joystick commit ff22fc91f8629dd2593ca79f6444bc18170e22f5 Author: Michael <mha1@users.noreply.github.com> Date: Mon Oct 30 19:19:38 2023 +0100 chore: adapt serial protocol labels in WebUI and LUA script (#2459) * adapted labels for serial protocol selection in WebUI and LUA script * revert LUA label to "Protocol" commit 4a11a8e91b3fbedb83ecbdc0a0daf52b3ed9ebf6 Merge: 9f2c807b dbc45fab Author: Paul Kendall <pkendall64@gmail.com> Date: Tue Oct 31 07:19:19 2023 +1300 Merge pull request #2451 from ExpressLRS/3.x.x-merge 3.x.x merge to master commit 9f2c807b42e7a8510241c18129766e8ed0134cae Author: Bryan Mayland <bmayland@capnbry.net> Date: Mon Oct 30 10:10:49 2023 -0400 Automatically save the RX initial rate on disconnect (#2424) * Automatically save the RX initial rate on disconnect * Remove Init Rate RX lua config item commit dbc45fabb12f2c21b71a565c305f4c133f359a74 Merge: 8252dfb7 e051b89b Author: Paul Kendall <pkendall64@gmail.com> Date: Sat Oct 21 08:03:40 2023 +1300 Merge branch '3.x.x-maintenance' into 3.x.x-merge # Conflicts: # src/lib/CRSF/CRSF.cpp # src/src/tx_main.cpp commit e051b89b23b5935b959ea9beddf685d857d03af9 Merge: 91cf151a 40c23b3c Author: Johannes <schugabe@gmx.at> Date: Fri Oct 20 15:24:05 2023 +0200 Merge pull request #2445 from pkendall64/3.x.x-oops Oops, undo setting the out directory commit a2b8f4b58611c9ba1afbdf457cfcbcad10d3dfd1 Merge: 9fc1be5a 8252dfb7 Author: Johannes Kasberger <schugabe@gmx.at> Date: Fri Oct 20 15:23:25 2023 +0200 Merge branch 'master' into udp-joystick commit 9fc1be5aa32d15b52f60582c2ff28e2221558a49 Author: Johannes Kasberger <schugabe@gmx.at> Date: Wed Oct 18 08:55:59 2023 +0200 send response after stopping the joystick commit 8faf4ab52071cac71412364c974966b5a7bdf575 Author: Johannes Kasberger <schugabe@gmx.at> Date: Wed Oct 18 08:55:35 2023 +0200 pack struct commit 8252dfb72aa55e168b6f08668b5b9abd11a209fe Author: Benedikt Kleiner <benedikt.kleiner@googlemail.com> Date: Sun Oct 15 22:49:13 2023 +0200 fifo: avoid overflowing size argument (#2442) Co-authored-by: bkleiner <b.kleiner@str8labs.com> commit b41e2d28434f6d4c2e904dca6c1008ca571b834c Author: Johannes Kasberger <schugabe@gmx.at> Date: Sun Oct 15 16:48:04 2023 +0200 improve documentation commit 3edf8371c945e0ae2f879219a622704ee30eaa53 Author: Johannes Kasberger <schugabe@gmx.at> Date: Sun Oct 15 16:27:37 2023 +0200 change channel range to 15bit commit 86c826265ecb79e631d1275548915b917c6a8c71 Author: Paul Kendall <pkendall64@gmail.com> Date: Fri Oct 13 07:24:38 2023 +1300 Fixes for LEDC driven PWM channels on ESP32 (#2423) * fixes for LEDC PWM channels on ESP32 * Do NOT set failsafe on startup - needs discussion * Fixes as per review * Set failsafe on startup * Address review comments commit 40c23b3cb609e899a2d99cfd18e0ffb2687f9b5b Author: Paul Kendall <pkendall64@gmail.com> Date: Tue Oct 10 15:09:50 2023 +1300 Oops, undo the setting out the out directory commit 5203587d827cf5ea7d93afef2e3799b157a4abfe Author: Bryan Mayland <bmayland@capnbry.net> Date: Wed Oct 11 14:51:09 2023 -0400 Send integers in little endian format instead of network order commit 458a186c44ac82db9422f4f9e8fb84def49b8814 Author: Bryan Mayland <bmayland@capnbry.net> Date: Tue Oct 10 14:11:26 2023 -0400 Add device name to elrs.udp MDNS record commit 9565ecb51858a655a43021ce0dadb400eff41ad3 Author: Bryan Mayland <bmayland@capnbry.net> Date: Tue Oct 10 14:05:12 2023 -0400 joystick_begin params are optional commit 67313c89d2265ebca9d8cf30e4927792f102719e Author: Bryan Mayland <bmayland@capnbry.net> Date: Tue Oct 10 14:00:39 2023 -0400 Allow default parameters, limit to 1000Hz max commit 5d453ce20f01fb1a01d949ec49eae8ed16fa563a Author: Bryan Mayland <bmayland@capnbry.net> Date: Tue Oct 10 13:52:32 2023 -0400 Convert to more generic UDP service commit 4e8238aa9536066fb293910caa89ab01d0365832 Author: Bryan Mayland <bmayland@capnbry.net> Date: Tue Oct 10 13:27:48 2023 -0400 Update documentation for changes commit b764fe3efdbe068be7385ddbaf606fc90fad411d Author: Bryan Mayland <bmayland@capnbry.net> Date: Tue Oct 10 13:13:11 2023 -0400 Shorten broadcast magic, include len of name, network byte order commit 716be1c946bdb1a69807cdea5616c03854610772 Author: Bryan Mayland <bmayland@capnbry.net> Date: Mon Oct 9 23:30:47 2023 -0400 Hide lua backpack items if the backpack is disabled (#2429) * Disable Backpack Telemetry lua item if backpack disabled * Hide backpack items instead of changing the text * Include INFO type in reloadRelatedFields() * Embarassing bad code was reloading EXIT/Devices too commit 91cf151a1068c437db4bed06fda60f2b677443ce Author: Michael <mha1@users.noreply.github.com> Date: Tue Oct 10 05:07:00 2023 +0200 puts the fix for #2028 back into business - 3.x.x-maintenance (#2438) commit 071c66e13ddab354d1b83acca3e9a502e981bd99 Author: Paul Kendall <pkendall64@gmail.com> Date: Tue Oct 10 14:19:18 2023 +1300 Various web UI fixes and improvements (#2422) * Improve display of wifi-on-interval in web UI * A little nicer UX around the bind-phrase handling * Add missing Serial protocols and UX improvements * Nicer upload buttons * Make label usage consistent * Use more portable CSS * Fix TX bug * Only query wifi networks when clicking on the network tab commit f951dade083c093bbb148cdc331b92dbf134be6a Author: Paul Kendall <pkendall64@gmail.com> Date: Tue Oct 10 14:13:37 2023 +1300 OLED/TFT menu updates (#2432) * Add switch-mode and antenna-mode menu entries * Remove unused define commit 06bf788b6a7321f58e9474fd9588c5dc4df6340f Author: Paul Kendall <pkendall64@gmail.com> Date: Mon Oct 9 20:36:47 2023 +1300 SPIEx on ESP32 was using the wrong underlying bus! (#2431) commit cf2abd1155fdda6ec9bf088eb01178ac1316a9b5 Author: Paul Kendall <pkendall64@gmail.com> Date: Mon Oct 9 20:25:30 2023 +1300 All separate firmware dir to targets dir (#2433) commit 39630ffa8a8cc9205fe28757d41e93b9b2472ac8 Author: Bryan Mayland <bmayland@capnbry.net> Date: Mon Oct 9 03:25:15 2023 -0400 Optimize and fix broken FM30 target (#2413) * Remove lto for FM30, back into CRITICAL_FLASH * Remove use of std::function where possible * Terrible fix for headTrackingEnabled compile error commit 3ee59bac060d5cb402bcf10c8a3eca648ada4850 Author: Jye <14170229+JyeSmith@users.noreply.github.com> Date: Mon Oct 9 10:44:05 2023 +1000 fix LBT fall back mode (#2430) commit 5d84e9660b5de2b286c11289b00ae9f8857f8ed4 Author: Michael <mha1@users.noreply.github.com> Date: Mon Oct 9 02:22:48 2023 +0200 fix RSNR after #2399 (#2436) commit 80d1a9901a785e6d921b61ed7a887b8ab6dbf7da Author: Johannes Kasberger <schugabe@gmx.at> Date: Mon Oct 2 23:59:59 2023 +0200 add usage documentation commit 604ee07037f89db2f0576e24d50663127bd88dd5 Author: Johannes Kasberger <schugabe@gmx.at> Date: Mon Oct 2 23:54:26 2023 +0200 add usage documentation commit d55161a9d13fba25dc110fbce06f990eef3167fb Author: Johannes Kasberger <schugabe@gmx.at> Date: Mon Oct 2 23:19:24 2023 +0200 map channel range similar to BLE joystick range commit 278c305e6d55adff400fc2d55d7b654b0468d2b1 Author: Johannes Kasberger <schugabe@gmx.at> Date: Mon Oct 2 23:19:05 2023 +0200 add port to joystick broadcast commit e171e685f9b2e3ad1bf4ea67690e5ed6f9e2b50e Author: Johannes Kasberger <schugabe@gmx.at> Date: Mon Oct 2 23:18:38 2023 +0200 add mdns services back in commit ab179d13fbc056db65d1e25d293e1e6d44b506d9 Author: Johannes Kasberger <schugabe@gmx.at> Date: Mon Oct 2 23:18:26 2023 +0200 change type to int32 to match crsf type commit 8c4a10a5fa813665e09795d6bac0ec9e3ffb0868 Author: Johannes Kasberger <schugabe@gmx.at> Date: Mon Oct 2 23:18:03 2023 +0200 check if udp is not null commit 30ffc19836048de5b1ca6baee1e944e20c01c6cd Author: Johannes Kasberger <schugabe@gmx.at> Date: Tue Aug 29 23:29:14 2023 +0200 add udp wifi joystick commit 177697b57f180c29ed5b01ae67c5424510a497a3 Author: Paul Kendall <pkendall64@gmail.com> Date: Mon Oct 2 20:12:59 2023 +1300 Use external targets repo (backport) (#2426) commit 0bc0fa3a6fa9733f56c7795d26ca5eb1f9ee8e61 Author: Arkhipov Ivan <arkhipov.iv99@mail.ru> Date: Mon Oct 2 04:30:34 2023 +0300 Update PWM.h (typo fix) (#2427) commit ec63eb85d1a188b255bf782785d07d215ccabf3a Author: ot0tot <36753790+ot0tot@users.noreply.github.com> Date: Fri Sep 29 19:12:40 2023 -0400 Adding DShot Output to ESP32-based ELRS PWM Receivers (#2346) * Add DShot Output First pass at adding DShot output using the DShotRMT library * Add use only for ESP32 * Only include DShotRMT when PWM is defined * Move DShot options to end of array * Trying to make DShot output mappable Kind of works but slows the output significantly for some reason. Need to troubleshoot. * Finally working! Erased flash and did a clean build * Reorder DShot enum so it comes before Serial * Map DShot output to new RMT channels * Fixes for Dshot Had to upgrade the base platform because of RMT driver bugs! * Upgrade config to shift somSerial up to it's new value * Minor cleanup * Disallow DShot on ESP8285 and GPIO0 on ESP32 Also fix previous balls up * Set throttle to zero on dshot initialisation So the ESC can continue its initialisation * Fix crash when selecting DShot * code reformat * Fix 8285 compilation --------- Co-authored-by: Paul Kendall <pkendall64@gmail.com> commit 4ee6190da6f63baf2d9fbe35e6f0d84faee93c0a Author: Bryan Mayland <bmayland@capnbry.net> Date: Thu Sep 28 21:50:41 2023 -0400 Fix for SELECT types with only one value (#2416) commit 435f5c97122fe792549a6bf41dac8b5f4a8ebf3b Author: Paul Kendall <pkendall64@gmail.com> Date: Mon Sep 25 13:06:52 2023 +1300 Fix debugging the timer offsets (#2407) commit a4502baaf6a00bcbcf638356929102de3e46a747 Author: Paul Kendall <pkendall64@gmail.com> Date: Mon Sep 25 12:57:11 2023 +1300 Fix my cockup and flash optimisation (#2417) commit bc1658777b6af567d856eb20937fa899631e5f96 Author: Michael <mha1@users.noreply.github.com> Date: Sun Sep 24 23:21:12 2023 +0200 Support Graupner HoTT telemetry sensors (#2408) * initial commit for master * adapt to #2383 * adapt to #2383 * moved all static to class definition scheduling code changed to follow now-last > rate scheme integer lat/long calculation fixed style else if style violations * updated to project style guide * Baro and Battery detection are used in a status latching way. Updated accordingly Made checking Baro and Battery detection use getter Moved HoTT frame processing to processBytes() and added check for frame start and end byte to frame sanity checks * changes to satisfy style guide revamped HoTT telemetry frames to a more consistent style * missed renaming a field commit b637db8697457e57f50b3055dae5a3553e33c125 Author: Paul Kendall <pkendall64@gmail.com> Date: Sun Sep 24 21:26:46 2023 +1300 Remove the UART_INVERTED option (#2409) * Remove the UART_INVERTED option It's not actually used any more. It just sets whether the (ESP32) TX starts in inverted mode or not! * Deprecate rather then remove options commit 34a412f3a6e3e3c7d11446abe764a92bd2ef2a71 Author: Bryan Mayland <bmayland@capnbry.net> Date: Sat Sep 23 09:41:12 2023 -0400 Add float support to Lua (#2415) * added float to elrsV3 script * attempting unload float code at radio check * moved check radio check * initialize index 9 in if statement * Add lua float implementation, change VTX channel to int type * Consolidation of all numeric types to use common load/save/displays * Use one field for exit/back * Operate in place on fieldData that is just one chunk * Return of arrows for EdgeTX 2.9 -- Merge fieldGetString and fieldGetSelectOpts -- Remove byteToStr and loadSymbolChars * Remove lua float impl and example * Extra break :( --------- Co-authored-by: MNS26 <michaelsnip@hotmail.com> commit 611b147d2c0487e6d732d9c8eed25db4703c9317 Author: Paul Kendall <pkendall64@gmail.com> Date: Tue Sep 19 16:24:30 2023 +1200 Add ESP32-S3 support (#2410) * Initial S3 support * Changes for debugging over USB * Debug/S3 - Allow specification of USB/JTAG signals. * Binary configuration of esp32-s3 * Use PWM controller for VTX SPI PWM * Support for S3 based TX module * VTX SPI fixes * Support SPIEx on S3 --------- Co-authored-by: Dominic Clifton <me@dominicclifton.name> commit 2c5bfcb8ada676531dc0e506238ec9b4718bfebb Author: Paul Kendall <pkendall64@gmail.com> Date: Mon Sep 18 07:31:24 2023 +1200 Use external targets repo (#2400) commit 4d5b3d71937711652e4c05ec6e309ebf3d0bd4bb Author: Paul Kendall <pkendall64@gmail.com> Date: Sun Sep 17 15:58:46 2023 +1200 Extract and create new PWM library (#2386) * Start of PWM library * ESP32 PWM implementation * 8266 implementation * Use new PWM controller * Fix tests * Remove no longer required libraries * Regular ESP32 has MCPWM too! * Fix spelling and code reformt commit d1ec4d2daca032857eda3010be088520d14c4d4b Author: Paul Kendall <pkendall64@gmail.com> Date: Sun Sep 17 15:31:08 2023 +1200 RX Serial cleanup and documentation (#2383) * Move the remaining CRSF stuff from SerialIO to SerialCRSF * Complete removal of LQ/RSSI as channel data * A little more rationalisation and simplification * Renaming functions a little better A little more refactoring * Document the API t * Resurrect the old 3.0 LQ/RSSI behaviour * Fix spelling errors commit e18eb4ca5d9c03f9deac604a075f1907667316da Author: Paul Kendall <pkendall64@gmail.com> Date: Sun Sep 17 15:30:44 2023 +1200 Ability to set Semtech output power when using DAC for PA power control (#2388) * Ability to set Semtech output power when using DAC for PA power control * Single setOutputPower with MaxOutput & OutputPower for SX127x * Remove unnecessary defines * Create a define for the magic number commit 59ed2bc09bd807f23215402820ad951f637788bb Author: Paul Kendall <pkendall64@gmail.com> Date: Sun Sep 17 15:30:11 2023 +1200 Hardware timer cleanup and API documentation (#2391) * Consolidate and cleanup timer library * Make callbacks private and immutable * Implement correct TX timer for 8266 * Coding consistency in ESP timers * Formatting * API documentation * More consolidation * Fix spelling commit 26a937416c0316d25fd9163df8761e12291f1b08 Author: Paul Kendall <pkendall64@gmail.com> Date: Sun Sep 17 15:29:49 2023 +1200 SPI Optimisations (#2339) * Use hardware CS on ESP8266 * 17.5MHz SPI * Avoid some memory copying * Do not wait for SPI to complete * Move NSS to SPIEx * Fix tests * Pad the SPI buffers, just in case * Move CS control into the SPI transfer function * Tidy up SPI setup * Add API documentation for SPIEx * move CS to after while() This protects active SPI transactions from being interrupted with an unexpected change in CS state * Fix spelling and removed half thought-out sentence --------- Co-authored-by: Jye <14170229+JyeSmith@users.noreply.github.com> commit 993f732bee7f80625d63462eaa2fcab3d45406b6 Author: Sunjun Kim <SunjunKim@users.noreply.github.com> Date: Sat Sep 9 07:59:26 2023 +0900 hadling div/0 condition in fuzzy_snr (#2399) commit 44b7f7a9256735d7f268ef5bbb4c12b5d30cd2be Author: Paul Kendall <pkendall64@gmail.com> Date: Wed Sep 6 13:14:37 2023 +1200 ESP32(S2/3) specific RGB driver (#2384) This is done so all the RMT channels are available for "other" things Remove NeoPixelBus library since we don't need it any more commit 2715be416afcfb1098a2957a7f93e0d69e7162a7 Author: MUSTARDTIGER FPV <122312693+MUSTARDTIGERFPV@users.noreply.github.com> Date: Mon Sep 4 20:24:09 2023 -0700 Add LinkStats to ESPNOW MSP Backpack Telemetry (#2396) * Add new tx-backpack opcode for CRSF telemetry frames * Add option to LUA to disable backpack TLM * Don't pack MSP frame if payload is too long * Add LinkStats to ESPNOW MSP Backpack Telemetry --------- Co-authored-by: wvarty <wezley.varty@gmail.com> commit 1449535b51fc46dcda9483e0fa4aa209105cadad Author: Bryan Mayland <bmayland@capnbry.net> Date: Mon Sep 4 21:06:51 2023 -0400 Add "MatchTX" RX dynamic output power (#2242) * Add MatchTX RX power * Remove extra header, simplify lua setter * Directly set default power on startup * Constrain power before checking if same * No need to call setPower when changed via lua * Move to dynpower unit * Only add MatchTX power if RX has multiple power levels --------- Co-authored-by: Paul Kendall <pkendall64@gmail.com> commit f4af0381afdcfcde7c49efdc3600c8ef5099a595 Author: Wez <59873510+wvarty@users.noreply.github.com> Date: Tue Sep 5 06:25:52 2023 +1000 Sentinel tracker integration (#2370) * Add new tx-backpack opcode for CRSF telemetry frames * Add option to LUA to disable backpack TLM * Don't pack MSP frame if payload is too long * Oops --------- Co-authored-by: Paul Kendall <pkendall64@gmail.com> commit cc1340d13999b36398ca8e8cf6b20fa4ab212d02 Author: Paul Kendall <pkendall64@gmail.com> Date: Tue Sep 5 08:23:20 2023 +1200 Configurable OLED/TFT startup splash screen (#2322) * configurable target specific logo * OLED configurable logo * Add emax logo * Add Jumper logo * Add BETAFPV logo * Add Namimno logo * Add GEPRC tft image put _tft in the filenames * Fox command for conversion of color screens images commit 5e3d2e3549ffa00c34ead517d57310a92be7ff7b Author: Bryan Mayland <bmayland@capnbry.net> Date: Sun Sep 3 19:18:09 2023 -0400 Allow binary flash of DUPLETX_ESP (#2393) commit 345d946d7bf4b65497634fa757e14fe5e20040fe Author: Paul Kendall <pkendall64@gmail.com> Date: Mon Sep 4 11:09:47 2023 +1200 Adds missing `free` method used in debug mode (#2385) commit e663ea3067142e262f47c4f3cc4cbc149d948c03 Author: Paul Kendall <pkendall64@gmail.com> Date: Sat Sep 2 07:30:25 2023 +1200 Fix ESP8285 RX as TX (#2387) * end the build-in serial before starting CRSF serial * Remove the dodgy hacks/workarounds commit 958f54f637a4b1592bbc5aeffa65e34842a0cd71 Author: Paul Kendall <pkendall64@gmail.com> Date: Wed Aug 30 20:27:14 2023 +1200 Call static things in a static way! (#2321) commit 697f56e34f3b5cf66579bf5c5a222abc590692de Author: Paul Kendall <pkendall64@gmail.com> Date: Fri Aug 25 15:02:40 2023 +1200 FIFO cleanup and documentation (#2364) * Coarse grained locking/optimisation * Just use the one FIFO implementation Turn the FIFO into a template * API docs * Define magic constants with sensible names commit 48e876ab37e5cd9f9b3d3c14a9004953fe96fe42 Author: Sunjun Kim <SunjunKim@users.noreply.github.com> Date: Fri Aug 25 05:01:06 2023 +0900 Giving the precision back to `fuzzy_snr` (#2379) * Giving the preicision back to fuzzy snr * lower the scaleing factor for better fitted in int_16 * curly braket style matcing commit 91dcc751e2830ea7775f00603cddc5ca9831c689 Author: Sunjun Kim <SunjunKim@users.noreply.github.com> Date: Thu Aug 24 14:25:17 2023 +0900 Faster fuzzy_snr (removed exp and float) (#2378) commit a62bb38bdee7f233623d5b0d93f16d2e95d28768 Author: Paul Kendall <pkendall64@gmail.com> Date: Tue Aug 22 07:39:29 2023 +1200 Cleanup of the CRSF header and code (#2320) * Shuffle things to simplify ifdefs * Fixes after review commit 3321882561376ef3c07b6c4323274eeda394dc50 Author: Paul Kendall <pkendall64@gmail.com> Date: Sat Aug 19 13:27:04 2023 +1200 Support 16 channel CRSF (#2365) commit 48bf482592835910c58582b67e0d76f7d8df4805 Author: Paul Kendall <pkendall64@gmail.com> Date: Sat Aug 19 13:26:44 2023 +1200 Document the device API (#2356) commit d3684f5f81cd6a2f54eb0957aeb280228699f70f Author: Paul Kendall <pkendall64@gmail.com> Date: Sat Aug 19 13:26:11 2023 +1200 Set power_high and _max to the same value (#2359) Happymodel 900 comes with a fan. Also the 900RX does NOT have a fan! commit 6b7982082d397a720f42c1919eb442c36c870367 Author: deadbytefpv <83231715+deadbytefpv@users.noreply.github.com> Date: Tue Aug 15 12:20:29 2023 +0800 Add Back Stock BL to other STM targets (#2354) commit 75392b1952dc5c8dba09a6004b5cb8794293ab98 Author: Jye <14170229+JyeSmith@users.noreply.github.com> Date: Thu Aug 10 05:15:19 2023 +1000 Correct rx power when using Regulatory_Domain_EU_CE_2400 (#2334) * correct rx power when using Regulatory_Domain_EU_CE_2400 * Slightly simpler getMaxPower implementation --------- Co-authored-by: Paul Kendall <pkendall64@gmail.com> commit 42e654b9d43ce774cb0907a090da1906ff6ee31d Author: Jye <14170229+JyeSmith@users.noreply.github.com> Date: Thu Aug 10 05:15:05 2023 +1000 correct sx1280 irqMask and dio1Mask data type (#2335) commit 421b090229e199665995095baf4561f716d4aaad Author: Jye <14170229+JyeSmith@users.noreply.github.com> Date: Thu Aug 10 05:14:46 2023 +1000 add prior_target_name to Jumper T-20 (#2351) commit 496531209b4ea9d0a4ef0195e9af660d059e5ec6 Author: Paul Kendall <pkendall64@gmail.com> Date: Fri Aug 4 17:10:07 2023 +1200 Add pocket radio alias (#2342) commit 567bc8c4fbb574330af70f9162586a43e2bbaaca Author: Jye <14170229+JyeSmith@users.noreply.github.com> Date: Tue Aug 1 14:15:23 2023 +1000 allow-SPI-VTx-operation-wihtout-FC (#2316) Co-authored-by: Jye <JyeSmith@users.noreply.github.com> commit a3d8bc5a0f7937030c59b4c44bc8e9246d3a6892 Author: Jye <14170229+JyeSmith@users.noreply.github.com> Date: Tue Aug 1 14:15:04 2023 +1000 disable msp vtx after no comms on boot (#2324) Co-authored-by: Jye <JyeSmith@users.noreply.github.com> commit 07b42ce7d307c5b8210ce31e0d6f1dba4213aae4 Author: Jye <14170229+JyeSmith@users.noreply.github.com> Date: Mon Jul 31 13:00:12 2023 +1000 Adds a second sx1280 rst pin (#2311) * radio_rst_2 * make it faster * tabs... or are they spaces??? --------- Co-authored-by: Jye <JyeSmith@users.noreply.github.com> commit 8856ed337f7fcba8428454b497f8ba9fe4320942 Author: Paul Kendall <pkendall64@gmail.com> Date: Mon Jul 31 15:00:03 2023 +1200 Fix Gemini 900 backpack (#2323) commit f5645a0787f13848c2e8a6b15de8878db018c099 Author: MUSTARDTIGER FPV <122312693+MUSTARDTIGERFPV@users.noreply.github.com> Date: Fri Jul 28 19:07:40 2023 -0700 Fix README Build Status Badge (#2333) https://github.com/badges/shields/issues/8671 commit 8018c163c1b476cb25d1acc66a4f6e40df8fc8a3 Author: Paul Kendall <pkendall64@gmail.com> Date: Sat Jul 29 13:56:31 2023 +1200 External module baudrate 400k baud max air-rate is 333Hz (#2327) * External module max freq at 400k baud is 333Hz * Adjust configured air-rate based on baud rate This ensures the OLED and Lua will display the correct/runtime value. Also, by saving the adjusted air rate, we ensure that the sync packet contains the correct rate. * Remove unnecessary IRAM attribute * Use startup baudrate rather than index If they don't match then all hell breaks loose! * Only modify the serial port if we've calculated a baud rate commit bd09a203854edbc0a777d3a7f340cf4e22eac322 Merge: d2def038 ae9df3d2 Author: Paul Kendall <pkendall64@gmail.com> Date: Sat Jul 22 17:25:20 2023 +1200 Merge pull request #2313 from ExpressLRS/3.x.x-maintenance Merge 3.x.x to master commit d2def03887159136ecd322fe55e0689554132ca4 Author: ProGamerGov <ProGamerGov@users.noreply.github.com> Date: Tue Jun 20 15:09:59 2023 -0600 Fix spelling and grammar in ReadMe (#2260) * manufacuturers -> manufacturers Fix misspelling * Fix grammar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I was not happy with how long it took the SPI VTX to ramp up to the desired Power output after changing the setpoint. This PR tries to solve the problem by adding arbitrary initial PWM values per VPD setpoint (and per frequency) to help with the rampup. I also added a calibration routine that can be used by the manufacturers to come up with VPD Setpoint values and PWM values for their target configs.
To enable the calibration routine put these two defines in
user_defines.txt
:After building with these flags you'll be able to gather a full sweep from 0 to the maximum VPD setpoint and their corresponding PWM values per frequency for the main frequencies - 5650, 5750, 5850 and 5950MHz.
Plotting this data together with the measurements of the power output in dBm should give a good overview of the relationship between PWM, VPD and power output.