Here is the final code (drum roll please)
Code:
if (rc_dig_in01 == 0 && rc_dig_in02 == 0 && rc_dig_in03 == 0)
{
pwm13 = 127;
pwm15 = 127;
}
else if (rc_dig_in01 == 0 && rc_dig_in02 == 0 && rc_dig_in03 == 1)
{
pwm13 = 139;
pwm15 = 175;
}
else if (rc_dig_in01 == 1 && rc_dig_in02 == 0 && rc_dig_in03 == 0)
{
pwm13 = 175;
pwm15 = 139;
}
else if (rc_dig_in01 == 0 && rc_dig_in02 == 1 && rc_dig_in03 == 0)
{
pwm13 = 249;
pwm15 = 249;
}
else if (count > 1000){
pwm13 = 127;
pwm15 = 127;
pwm3 = 175;
}
else if (count > 1005){
pwm3 = 127;
} /* Hey! There are 3435 loops in 15 minutes */
If some one sees a flaw, PLEASE tell me, the Canadian Regional is on Wednesday.
One more thing... I attached a screenshot of where I placed the counter (in the user instalizationz). I this the right spot?
Thank you all who answered my questions...This site has been our only programming resource for our team.
