thecomprachico
New Member
Hello,
I am very new to Picaxe (read: picked it up yesterday) and am doing this as my first project. I must mention that I have no prior programming experience. I'm trying to code an elevator, operational for 3 levels. This is a University project, but we've basically been left to wander by ourselves-- nothing significant in terms of guidance other than the Picaxe manuals-- so any and all help is truly, greatly appreciated. The header code was provided and according to instructions, is not to be changed (apart from designating unused slots). I'm having trouble finding the right structure for the code since I'm not sure how to program certain functionality -- e.g. how to make the lift go to the highest demanded floor before reversing direction and stopping at lower demanded floors. Herein attached is my very pathetic attempt at code (having been a math student, this doesn't look elegant at all to me). Needless to say it doesn't work-- it's only here to give the reader an idea of my level of inexperience and where I need help most.
Thanks for any help you can provide.
I am very new to Picaxe (read: picked it up yesterday) and am doing this as my first project. I must mention that I have no prior programming experience. I'm trying to code an elevator, operational for 3 levels. This is a University project, but we've basically been left to wander by ourselves-- nothing significant in terms of guidance other than the Picaxe manuals-- so any and all help is truly, greatly appreciated. The header code was provided and according to instructions, is not to be changed (apart from designating unused slots). I'm having trouble finding the right structure for the code since I'm not sure how to program certain functionality -- e.g. how to make the lift go to the highest demanded floor before reversing direction and stopping at lower demanded floors. Herein attached is my very pathetic attempt at code (having been a math student, this doesn't look elegant at all to me). Needless to say it doesn't work-- it's only here to give the reader an idea of my level of inexperience and where I need help most.
Thanks for any help you can provide.
Attachments
-
11.2 KB Views: 53