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

Modify Variables during debug session #23

Open
davinbirdi opened this issue Mar 20, 2022 · 3 comments
Open

Modify Variables during debug session #23

davinbirdi opened this issue Mar 20, 2022 · 3 comments
Assignees

Comments

@davinbirdi
Copy link
Contributor

davinbirdi commented Mar 20, 2022

I've got a basic setup for stopping the high-side switches using a loop, but that is having two different tasks using the same resource.

I need to do this in a safe manner, and in a way such that I can update other variables (I think only global variables). The basic way of just accessing the global variable might be enough, but I've now done some research on Semaphores and can discuss this with Xander.

Goals:

  • Be able to vary the PID Tuning Parameters as I'm running an experiment/logging data. This lets us do some tuning easily.
  • Be able to activate or deactivate tasks (se eventually the pressurizing tank handoff to DPR)
  • Should start looking into how the DAQ board will change based on commands the FC will send it over CAN.
@davinbirdi davinbirdi self-assigned this Mar 20, 2022
@davinbirdi
Copy link
Contributor Author

I have learned and verified usage of Semaphores to do this safely, in the one case of pausing and resuming the DPR PWM Cycle. I now need to be able to do this for multiple features in an organized manner.

@davinbirdi
Copy link
Contributor Author

This is working right now but it's just not organized. It will be once CAN is started to be setup and once the boards are talking to each other and this feature is needed.

@davinbirdi
Copy link
Contributor Author

It's working, it's just not cleanly done

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