Monday, June 7, 2010

June 7 Using a boolean Hysteresis FB

The tutorials are for control theory so FB_GT_UINT  replaced with a Hysteresis FB.
The following calculates the boundary between black and white 
and then
turns LED on if over black and off if over white. 

The  greater than FB is still shown, but is unmapped to the device.

With 1 Motor

With 2 Motors - too large / too little memory 
error recieved: data connection error
So optimizing code  (distclean then setup_lms to change gcc options to -o3)



No comments:

Post a Comment