The "fan" we created was practically a rush job, but I didn't mind having a weak prototype. It gave me something to code.
// Swing fan left and right
void fanFlame(int angle, int iterations){
for(int i=0; i<iterations; i++){
motor[fanServo] = FAN_CENTER - angle;
wait1Millisecond(300);
motor[fanServo] = FAN_CENTER
wait1Millisecond(300);
}
}
The video shows the bot failing to find the flame. Oh well.
No comments:
Post a Comment