hey
im a student doing systems in year 12 and im having a problem with the script for my project. im doing a ir buggy and my script works on a 14 m chip but not a 14m2 could you please take a look at my script and see how i can fix this problem.
chuck:infrain2
if infra = 1 then gostraight
if infra = 6 then beeps
if infra = 7 then gobackwards
if infra = 4 then turnoff
goto chuck
beeps:
'exam cam tune'
tune B.0, 25, ($50)
pause 1500
tune B.0, 25, ($50)
pause 1500
tune B.0, 25, ($50)
pause 1500
tune B.0, 25, ($50)
pause 1500
tune B.0, 25, ($50)
goto chuck
gostraight:
let pins =%010000
pause 1000
let pins =%000110
goto chuck
gobackwards:
let pins =%010000
pause 1000
let pins =%101000
goto chuck
turnoff:
let pins =%010000
pause 1000
let pins =%000000
goto chuck
thanks
chucky315
im a student doing systems in year 12 and im having a problem with the script for my project. im doing a ir buggy and my script works on a 14 m chip but not a 14m2 could you please take a look at my script and see how i can fix this problem.
chuck:infrain2
if infra = 1 then gostraight
if infra = 6 then beeps
if infra = 7 then gobackwards
if infra = 4 then turnoff
goto chuck
beeps:
'exam cam tune'
tune B.0, 25, ($50)
pause 1500
tune B.0, 25, ($50)
pause 1500
tune B.0, 25, ($50)
pause 1500
tune B.0, 25, ($50)
pause 1500
tune B.0, 25, ($50)
goto chuck
gostraight:
let pins =%010000
pause 1000
let pins =%000110
goto chuck
gobackwards:
let pins =%010000
pause 1000
let pins =%101000
goto chuck
turnoff:
let pins =%010000
pause 1000
let pins =%000000
goto chuck
thanks
chucky315