other suggestions anyone?
/* Bubble Code */
oDCMotor bubble_motor = New oDCMotor;
oDIO1 bubble_fc_sensor1 = New oDIO1;
oDIO1 bubble_fc_sensor2 = New oDIO1;
Byte bubble_speed;
Byte bubble_stop_time;
Sub Void Main(Void)
{
bubble_speed = 255;
bubble_stop_time = 400;
initialize;
While(1)
{
If((bubble_fc_sensor1 == cvOn) & (bubble_fc_sensor2 == cvOn))
{
bubble_motor.Value = bubble_speed;
bubble_motor.Brake = cvOn;
ooPIC.Delay = 3000;
bubble_motor.Brake = cvOff;
ooPIC.Delay = 5000;
}
} }
Sub Void initialize(Void)
{
ooPIC.Node = 3;
bubble_motor.IOLineP = 18;
bubble_motor.IOLineB = 24;
bubble_motor.IOLineD = 26;
bubble_motor.Operate = 1;
bubble_motor.Direction = 1;
bubble_motor.Unsigned = 1;
bubble_motor.Value = bubble_speed;
bubble_motor.PreScale = 3;
bubble_motor.Brake = cvOff;
bubble_fc_sensor1.IOLine = 12;
bubble_fc_sensor1.Direction = cvInput;
bubble_fc_sensor2.IOLine = 13;
bubble_fc_sensor2.Direction = cvInput;
}
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/oopic/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/oopic/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
No comments:
Post a Comment