Skip to content

Refactoring of inbound argument parsing [TO BE TESTED]#3

Open
GioCC wants to merge 15 commits intocuriosity-workshop:mainfrom
GioCC:main
Open

Refactoring of inbound argument parsing [TO BE TESTED]#3
GioCC wants to merge 15 commits intocuriosity-workshop:mainfrom
GioCC:main

Conversation

@GioCC
Copy link
Collaborator

@GioCC GioCC commented Apr 14, 2023

Avoids code duplication by introducing _seekParm() auxiliary function

Avoid code duplication by introducing _seekParm() aux function
@GioCC GioCC added Refactoring Bring performance / code quality improvements without affecting functionality TO BE TESTED Not yet tested - test before merging labels Apr 14, 2023
@GioCC GioCC self-assigned this Apr 14, 2023
@curiosity-workshop
Copy link
Owner

Makes sense. Any significant performance impacts anticipated?

@GioCC
Copy link
Collaborator Author

GioCC commented Apr 14, 2023

Not really, either positive or negative. Mainly, less code clutter and lower chance of bugs in case of modifications (and maybe a little gain in flash space).

Giorgio Croci Candiani added 2 commits June 2, 2023 17:26
@GioCC GioCC marked this pull request as ready for review October 10, 2023 12:26
GioCC added 4 commits October 10, 2023 14:43
Added functions Xdtostrf (replaces 'dtostrf' lib fn for non-AVR), _receiveNSerial
Mods introduced in Discord post https://discord.com/channels/1062448359434113166/1092591510752612362/1192209314857893909
Internal "XPLPro" folders added for file groups
Demos moved under Arduino project (as per library convention)
GioCC and others added 5 commits April 9, 2024 23:10
https://discord.com/channels/1062448359434113166/1262462760512524432/1262462760512524432

- XP.setDataFlowSpeed(1000);  // max bytes per second plugin will send
- Library now sends data type in the inStruct.  It follows the native xplane format
- fixed plugin bug with data types for comparing
- in Serial log unprintable characters now are represented by their hex value (0xXX)
    void dataFlowPause(void); // Mostly for internal use but can be useful if your device is busy updating a display screen or whatever
    void dataFlowResume(void);
    int getBufferStatus(void); // returns number of bytes in receive buffer
    void setDataFlowSpeed(unsigned long int); // Set max bytes to send per second.  The plugin will always send a complete packet then wait until the time catches up (in terms of flight loops) so take that into consideration.
- when requesting updates to data datarefs, specify the maximum digits to return in the precision specifier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Refactoring Bring performance / code quality improvements without affecting functionality TO BE TESTED Not yet tested - test before merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants