Sunday, April 18, 2010

Apr.18 CalibrateBnd Basic FB Tested (simulation)

Calibrating average color and boundary between colors was tried previously as a composite FB ( Mar.23 Calibrate as Composite FB + FindLine)  This version was hard to test via simulation using FBDK due to extra delays needed for output.

The following is a Basic FB version of calibration and has been tested using FBDK.

The FB reads N samples on-the-line, then N samples off-the-line. The steps are: 

  • led on (light sensor positioned over line)
  • on-the-line read N samples
  • led off (move so light sensor positioned off the line)
  • [delay will go here]
  • led on (light sensor positioned off the line)
  • on-the-line read N samples
  • calculate average boundary between on and off the line

Interface 

 

 

 

 

Execution Control Chart (ECC)


No comments:

Post a Comment