Skip to content

Conversation

adrian-kong
Copy link
Contributor

this is only required to handle the initial case (can be modified by CLI).
currentIndex and checked is interactive and can only be changed via onActivated elsewhere hence we can just allow the interactive component to handle modifications of these variables.

@adrian-kong adrian-kong marked this pull request as ready for review January 3, 2023 01:59

@classmethod
def post_data_update(cls, update_data: Dict[str, Any]) -> None:
update_data[Keys.SBP_LOGGING_FORMAT_INDEX] = update_data[Keys.SBP_LOGGING_LABELS].index(update_data[Keys.SBP_LOGGING_FORMAT])
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it might be better to have this posted in capnproto but we construct the string model here so will just leave it here...

@adrian-kong adrian-kong requested a review from a team January 3, 2023 02:12
if (loggingBarData.recording_filename)
recordingFilenameText.editText = loggingBarData.recording_filename;
let recording = sbpLoggingButton.checked || csvLoggingButton.checked;
let recording = loggingBarData.sbp_logging || loggingBarData.csv_logging;
Copy link
Collaborator

@john-michaelburke john-michaelburke Jan 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might be out of the loop on this but I'm not sure we want to mix these up. What happens if you record sbp and csv at the same time? The csv logging button indicates it is recording by being in the "clicked" state.

@adrian-kong adrian-kong merged commit 12f1adf into adrian/refactor_logger Jan 4, 2023
@adrian-kong adrian-kong deleted the adrian/fix-index branch January 4, 2023 22:35
adrian-kong added a commit that referenced this pull request Jan 9, 2023
* refactoring sbp logger

* refactoring sbp logger

* serialize return bytes

* clippy + output correct data bytes

* More idiomatic

* fmt clippy

* remove stop recording

* fmt

* fix spamming close_sbp

* fmt

* pass and update current index [CPP-852] (#888)

* pass format index as field

* handle only init

* only init once for interactive components

* pylint

* should only reflect counters when sbp is logging

* fmt

* changed to SbpFileLogger

* fix test
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