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

Add playback module #29

Merged
merged 11 commits into from
Jul 7, 2019
Merged

Add playback module #29

merged 11 commits into from
Jul 7, 2019

Conversation

tygamvrelis
Copy link
Owner

@tygamvrelis tygamvrelis commented Jul 7, 2019

Resolves #29

Currently these commands are only being used during playback and recording to ENABLE required modules. For example, when we enter playback mode on the PC script, it first sends a command to the microcontroller to enable servos. Similarly, when we enter recording mode on the PC script, it first sends a command to enable IMU sensing. This is done so that the user of the PC script doesn't have to issue more than one command to initiate a test in a desired mode. Hence, although the servo and IMU enable/disable commands are available directly from the command-line, their effects will always be overwritten as soon as recording or playback command is issued.

In the future, we could also send a command to disable servos when we are recording, and send a command to disable IMU sensing when we are in playback mode. Commands could also be added to enable/disable transmissions from the MCU to the PC, since these transmissions are discarded when in playback mode and are only needed in recording mode.

At the moment, the microcontroller disables servo actuation when it is first powered up, so it basically defaults into recording mode, and it requires a command to start servo actuation. This is a safety feature more than anything else, because it means that upon powering up the MCU, the servos will not automatically start moving
@tygamvrelis tygamvrelis merged commit d03ad17 into master Jul 7, 2019
@tygamvrelis tygamvrelis deleted the tygamvrelis-playback branch July 7, 2019 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant