useful code

__disable_irq()

__enable_irq()

Could use a timer to read the CAN bus 10 times a minute. Update the timer on whether its sent a new packet or not and change the timer for optimum read times.

http://calc.50x.eu/

 

PID control:

http://jk-technology.com/C_Unleashed/code_list.html

http://mbed.org/forum/mbed/topic/911/

http://www.atmel.com/dyn/resources/prod_documents/doc2558.pdf

http://mbed.org/users/aberk/programs/PID_lib/5yph8/docs/classPID.html


0 comments

You need to log in to post a comment