Skip to content
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

Duplication of data in CSV file #3

Open
kwakevainen opened this issue Feb 1, 2020 · 1 comment
Open

Duplication of data in CSV file #3

kwakevainen opened this issue Feb 1, 2020 · 1 comment

Comments

@kwakevainen
Copy link
Collaborator

Currently, the function SaveData() in RobotData class has a foreach (var matchData in MatchDataList). This is problematic because it writes all the data of all matches to that point each time the data is saved instead of adding the difference in matches.

@kwakevainen
Copy link
Collaborator Author

I think we fixed this by switching the foreach loop to a for loop and adding a variable which stores the index of the last saved element. Have not been able to test this with the arduinos to confirm yet

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

No branches or pull requests

1 participant