by Delta » Sat Feb 23, 2013 7:53 pm
by Delta
Sat Feb 23, 2013 7:53 pm
hello
Need some help!! Testing Robonova Tilt sensor..After plug in in any AD port nothing work.. I have tried changeing the value also..
sample code what i am doing
robot_tilt:
A = AD(2)
IF A > 250 THEN RETURN
IF A <30> 200 THEN GOTO tilt_high
RETURN
tilt_low:
A = AD(2)
'IF A < 30 THEN GOTO forward_standup
IF A < 30 THEN GOTO backward_standup
RETURN
tilt_high:
A = AD(2)
'IF A > 200 THEN GOTO backward_standup
IF A > 200 THEN GOTO forward_standup
RETURN
when ever i used this value If A>100 THEN GOTO Tilt_high
then my robo keep standing on his belly and doing again and again....until i stop him....i dont know my sensor is not workin or i am doing something wrong......please helps
Thanks
hello
Need some help!! Testing Robonova Tilt sensor..After plug in in any AD port nothing work.. I have tried changeing the value also..
sample code what i am doing
robot_tilt:
A = AD(2)
IF A > 250 THEN RETURN
IF A <30> 200 THEN GOTO tilt_high
RETURN
tilt_low:
A = AD(2)
'IF A < 30 THEN GOTO forward_standup
IF A < 30 THEN GOTO backward_standup
RETURN
tilt_high:
A = AD(2)
'IF A > 200 THEN GOTO backward_standup
IF A > 200 THEN GOTO forward_standup
RETURN
when ever i used this value If A>100 THEN GOTO Tilt_high
then my robo keep standing on his belly and doing again and again....until i stop him....i dont know my sensor is not workin or i am doing something wrong......please helps
Thanks