-
Notifications
You must be signed in to change notification settings - Fork 2
pass and update current index [CPP-852] #888
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
Conversation
|
||
@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]) |
There was a problem hiding this comment.
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...
resources/LoggingBar.qml
Outdated
if (loggingBarData.recording_filename) | ||
recordingFilenameText.editText = loggingBarData.recording_filename; | ||
let recording = sbpLoggingButton.checked || csvLoggingButton.checked; | ||
let recording = loggingBarData.sbp_logging || loggingBarData.csv_logging; |
There was a problem hiding this comment.
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.
* 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
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.