UBC-Rocket / WB-DAQ-Firmware

Firmware for Whistler Blackcomb's CAN/DAQ board (WB-AV-4510-CAN).
1 stars 1 forks source link

Modify Variables during debug session #23

Open davinbirdi opened 2 years ago

davinbirdi commented 2 years ago

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:

davinbirdi commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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