My problem is probably too simple for words, but I can't figure out what I am doing wrong. I am currently programming in NXC (Not Exactly C) for a LEGO mindstorm robot, and my code is supposed to have the robot decide autonomously wether or not it is standing upright. This by means of comparing sensor values stored in an array. Sadly, it hasn't even come close to that point, with errors all over the place and now a runtime error ('file error' when running the program, probably caused by indexing values in nonexistant arrays - that's what googling told me).
My code:
Spoiler
Help me please. Help will be appreciated.
Bookmarks