Problem with this code. HELP!
in
Programming Questions
•
2 years ago
Hey guys.
I found this code when looking at Ball balancing machines on Youtube. The link for the video is here:
http://www.youtube.com/watch?v=0DqcnHE6r9M
He provides the code in the description and i wanted to check it out and see how it worked because i also want to make one. But i keep getting an error in processing and this is the exact code copied from his website. The error says:
And its on this line:
Im still relatively new to processing and this is the first time i have ever seen or used firmata. If anyone could help i would be extremely grateful.
I found this code when looking at Ball balancing machines on Youtube. The link for the video is here:
http://www.youtube.com/watch?v=0DqcnHE6r9M
He provides the code in the description and i wanted to check it out and see how it worked because i also want to make one. But i keep getting an error in processing and this is the exact code copied from his website. The error says:
expecting RPAREN, found ';'
processing.app.debug.RunnerException: Syntax error, maybe a missing right parenthesis?
at processing.app.Sketch.preprocess(Sketch.java:1314)
at processing.app.Sketch.preprocess(Sketch.java:1205)
at processing.app.Sketch.build(Sketch.java:1568)
at processing.app.Sketch.build(Sketch.java:1553)
at processing.app.Editor$DefaultRunHandler.run(Editor.java:1485)
at java.lang.Thread.run(Thread.java:619)
And its on this line:
- if (key < 'A' & & key > '/') { // THIS LINE <<<<<<<<<
- Kfactor += ((key-48) * pow(10, (K_digits-1)));
- K_digits --;
- }
Im still relatively new to processing and this is the first time i have ever seen or used firmata. If anyone could help i would be extremely grateful.
1