Repository navigation
I2C asyn calling -- OLED - #12238
I2C asyn calling -- OLED#12238error414 wants to merge 29 commits into
Conversation
SBUS servo output is resolved with findSerialPortConfig(), which returns the first port that carries FUNCTION_SERVO_SERIAL. Assigning the function to a second port was accepted and reported back by the serial command, but that port was never opened. Reject such an assignment in the CLI instead of ignoring it silently. Fixes iNavFlight#11430
The mixer switch carry over loop ended at the first INPUT_MIXER_SWITCH_HELPER rule. Switching a mixer profile back before the carry over of the previous switch had decayed therefore dropped its remaining filter state, the newly loaded rule restarted from zero and the servo jumped towards its mid position. Only the carry capacity ends the loop now, helper rules are carried over like any other speed limited rule. Fixes iNavFlight#11503
The constraints list already covers the analogous telemetry rule. Adds the SERVO_SERIAL case, including that the second assignment used to be accepted silently without the port ever being opened.
Rename serialDuplicatedSinglePortFunctions() to serialGetDuplicatedSinglePortFunctions() so the helper has a verb name like the other serialGet*/serialFind* functions (Development.md iNavFlight#5). Cut the three-line comment above SERIAL_SINGLE_PORT_FUNCTIONS to one line that states why the list exists. docs/Serial.md: drop the "previously it was accepted" history from the constraint and say what happens to a saved configuration that already has SBUS output on several ports: only the first port in the serial list is used, the configuration is not reset. No functional change.
Development.md asks for comments that explain why, not what. No functional change.
…cond-uart Refuse assigning SBUS output to a second serial port
…ed-carryover Keep the servo speed carry over when switching mixer profiles back
…iting to start transfer
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
PR Summary by QodoAdd non-blocking I2C transfers for OLED and selected sensors
AI Description
Diagram
High-Level Assessment
Files changed (42)
|
Code Review by Qodo
1.
|
|
RAM / Flash usage vs. base commit
See RAM/flash optimization guide for techniques to reduce usage. |
|
Test firmware build ready — commit Download firmware for PR #12238 251 targets built. Find your board's
|
|
Yayyy no servo stutter anymore with OLED Enabled? :D nice one! |
|
I hope so :D. You are right, still off after ARM. |
This PR is based on I2C asyn calling -- CORE
OLED display makes lot of I2C calls, and it can create huge gaps in dshot frames, one OLED cycle can take up to few ms (not us). After this patch one OLED cycle takes few us (not ms).
I2C sync
I2C Async
Tested on HW
