| | sensor-defined variable
|
| hi again i tested your example, just to try, and i get compiler errors:; PlayTone(SENSOR_1*10,5); ^^ what's wrong with 10? what am i missing? thanks r (...) (20 years ago, 13-Apr-05, to lugnet.robotics)
| | | | Re: sensor-defined variable
|
| (...) Nothing is wrong with 10, it was my assumption that was wrong. There are more than one version of the LEGO firmware, and it appears you have an older version that does not allow variable frequencies (the frequency must be a constant). Try (...) (20 years ago, 13-Apr-05, to lugnet.robotics)
| | | | Re: sensor-defined variable
|
| (...) # Error: argument must be a constant File "C:\DOCUME~1\jhansen...\temp.nqc" ; line 5 # PlayTone(SENSOR_1*10, 5); # ^^ #---...--- # 1 error during compilation If you use RCX as the target for compiling (or Cybermaster) then the PlayTone (...) (20 years ago, 13-Apr-05, to lugnet.robotics)
| |