Skip to content

Modify state management aberridg #45

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

Merged
merged 11 commits into from
Jun 27, 2021
Merged

Modify state management aberridg #45

merged 11 commits into from
Jun 27, 2021

Conversation

aberridg
Copy link
Contributor

@aberridg aberridg commented Jun 27, 2021

As previously discussed - a rework of the state management code. Fewer flags, state checking moved to ubxPacket and removed from processUBX. Improved performance and reliability and maintainability. May still be scope to reduce the number of incoming UBX packet buffers. Contains all changes in add-spi-aberridg branch too :-)

@PaulZC
Copy link
Collaborator

PaulZC commented Jun 27, 2021

Sincere thanks for submitting this Andrew (@aberridg ),
I will need to test this on as many platforms and modules as I can pull together, so it may be a while before I'm able to merge this into the main branch. Don't worry, it might just take a few days.
Very best wishes,
Paul

@PaulZC PaulZC added this to the v2.1 milestone Jun 27, 2021
@PaulZC PaulZC merged commit 2d502ec into sparkfun:release_candidate_v2.1_modified_state_management Jun 27, 2021
@PaulZC
Copy link
Collaborator

PaulZC commented Jul 1, 2021

Hi Andrew (@aberridg ),
I've released your SPI code as version 2.0.8 of the library. Thanks again for that.
I've also successfully merged v2.0.8 into the release_candidate_v2.1_modified_state_management branch.
The good news is that I can get simple examples like Example3 to work OK.
The bad news is that examples like 19 (dynamic model) and 20 (custom packet) don't work... I'm using I2C but I suspect the same will be true on SPI.
In both examples, setI2COutput is failing and I don't currently know why.
In example 19, setDynamicModel fails in the same way. I'm wondering if this is due to the changes you made to packetCfg and packetBuf?
Example 20 uses a custom ubxPacket created in the example code. I suspect this one is failing because it looks like you've passed &packetCfg to processUBX instead of incomingUBX from the code above? The code change is here and here.
When you have time, can you see if you can get these two examples going?
Sincere thanks,
Paul

@aberridg
Copy link
Contributor Author

aberridg commented Jul 1, 2021 via email

@aberridg
Copy link
Contributor Author

aberridg commented Jul 1, 2021 via email

@aberridg
Copy link
Contributor Author

aberridg commented Jul 1, 2021 via email

@aberridg
Copy link
Contributor Author

aberridg commented Jul 1, 2021 via email

@PaulZC
Copy link
Collaborator

PaulZC commented Jul 1, 2021

Hi Andrew,
It is entirely possible I’ve committed a heinous git merge atrocity. It wouldn’t be my first. I remember seeing a lot of ‘, true’s being added. Apologies in advance if I have short-circuited any…
Best wishes,
Paul

@aberridg
Copy link
Contributor Author

aberridg commented Jul 1, 2021 via email

@aberridg
Copy link
Contributor Author

aberridg commented Jul 1, 2021 via email

@aberridg
Copy link
Contributor Author

aberridg commented Jul 2, 2021 via email

@aberridg
Copy link
Contributor Author

aberridg commented Jul 2, 2021 via email

@PaulZC
Copy link
Collaborator

PaulZC commented Jul 2, 2021

Thank again Andrew,

I think you will need to open a new PR so I can merge your latest changes?

Very best wishes,
Paul

@aberridg
Copy link
Contributor Author

aberridg commented Jul 2, 2021 via email

@PaulZC
Copy link
Collaborator

PaulZC commented Jul 2, 2021

Oops. I must I have missed the email. I see the PR - thank you,
Paul

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants