Search:

Type: Posts; User: boulton1991

Search: Search took 0.01 seconds.

  1. Thread: Loops

    by boulton1991
    Replies
    2
    Views
    680

    Cheers :)

    Cheers :)
  2. Thread: Loops

    by boulton1991
    Replies
    2
    Views
    680

    Loops

    How would I go about getting a loop to return to the start?
  3. Replies
    9
    Views
    3,401

    i want the elevator to start on floor 0 and...

    i want the elevator to start on floor 0 and return to floor 0 when there are no inputs but not sure how to create this loop?
  4. Replies
    9
    Views
    3,401

    const int MAX = 5 int data [MAX} = {0,1,2,3,4};...

    const int MAX = 5
    int data [MAX} = {0,1,2,3,4};


    // too many people in lift override stop motor and sound alarm
    void Liftcontrol
    if (weight = 1)
    {
    motor1 = 0;
    motor2 = 0;
  5. Replies
    5
    Views
    956

    Yeah I'm gonna be using switches for the inputs,...

    Yeah I'm gonna be using switches for the inputs, led to display the current floor and a motor to simulate, no door or limit switches, it is pretty hard haha and it's due in a months time include the...
  6. Replies
    5
    Views
    956

    im going to be using a 89s2051 controller if this...

    im going to be using a 89s2051 controller if this is any help?
  7. Replies
    5
    Views
    956

    as you can see i really have no idea haha so any...

    as you can see i really have no idea haha so any help we would brilliant, the notes college gave me are a bubble sort programme, a 7 segment display , an averaging programme and to toggle an LED?
  8. Replies
    5
    Views
    956

    help please?

    im making an elevator for my HNC project but im useless at C programming, ive done some of the code and which way i want it to work, any help on functions or how to do this would be great.
    i want...
  9. Replies
    9
    Views
    3,401

    Cheers guys, I'll give it a go at writing it...

    Cheers guys, I'll give it a go at writing it either tonight or tomorrow after work and upload to see what you think and what could be improved :)
  10. Replies
    9
    Views
    3,401

    Just put void main there as an example, should I...

    Just put void main there as an example, should I put void and the name of my programme?
  11. Replies
    9
    Views
    3,401

    Emergency stop

    If I wanted to add an emergency stop to an elevator programme should I use an if statement? Eg


    If (emergency stop)
    {
    Void main();
    }

    Or something along those lines?
  12. Replies
    5
    Views
    868

    Yeah that's what I was trying to explain but you...

    Yeah that's what I was trying to explain but you did a better job haha, how would I go about doing that? It's making my head spin
  13. Replies
    5
    Views
    868

    thanks a lot :) ill have a look through them...

    thanks a lot :) ill have a look through them later and hopefully upload some code you can nitpick, i was thinking of using an array as i will only be using 10 floors, using an if statement to decided...
  14. Replies
    5
    Views
    868

    store and sort help

    hi guys, for my HNC project i'm making an elevator programme that decides which floor to visit depending on the direction is has just traveled and i'm having trouble finding code that i could use to...
Results 1 to 14 of 14