BinghamtonRover / BurtOS-2

Base station/rover computer apps and libraries for the Binghamton University Rover Team
3 stars 0 forks source link

Improve CAN send reliability and program flow #48

Closed superdan-t closed 2 years ago

superdan-t commented 2 years ago

If too many CAN frames are sent, the program crashes with a segmentation fault. Something within CAN send is probably buffered, and thus sends are non-blocking (evident by the fact it's even possible to send too fast).

It is likely possible to do blocking sends on the CAN socket so that this doesn't happen. Then, sends can be moved to a new thread.

This design will use two threads:

superdan-t commented 2 years ago

The original description is from 13 days ago. It summarizes some of the problems, but the solution is still in design. I will post my ideas within the next hour.

superdan-t commented 2 years ago

My ideas:

superdan-t commented 2 years ago

@jmcmah10 Is this issue relevant anymore? I think everything here got worked into other issues.

jmcmah10 commented 2 years ago

@superdan-t it's not, it can be closed