Results 1 to 2 of 2

Thread: Forklift program?

  1. #1
    Join Date
    Apr 2012
    Posts
    7

    Default Forklift program?

    I want to write a program for my forklift and i want that i only have to define a variable for example: 100
    and the the roboter turns his forklift up/down to the point 100 where ever the forklift is.
    The roboter has at the top a touch sensor.

    I say 100 and the forklift went to this point where ever the forklift is at the moment.
    I worked my hole weekend on this and i didn't get a result and I hope you can help me or have a better idea how it will work.
    Last edited by AngyLPer; 05-02-2012 at 11:14 AM.

  2. #2
    Join Date
    Sep 2008
    Location
    Minnesota
    Posts
    2,758

    Default Re: Forklift program?

    Quote Originally Posted by AngyLPer View Post
    I want to write a program for my forklift and i want that i only have to define a variable for example: 100
    and the the roboter turns his forklift up/down to the point 100 where ever the forklift is.
    The roboter has at the top a touch sensor.

    I say 100 and the forklift went to this point where ever the forklift is at the moment.
    I worked my hole weekend on this and i didn't get a result and I hope you can help me or have a better idea how it will work.
    This question has already been answered in your line follower thread. Tom Mosher included this link that describes how the MOVE/MOTOR blocks work.

    http://forums.usfirst.org/showthread...5137#post55137

    Notice that the effect of multiple move commands is cumulative. Each move command starts where the last move command ended. Einstein would say that the move block duration is RELATIVE. When I ask a motor to rotate 90 degrees it rotates 90 degrees relative to where it was last commanded to go.

    Your forklift is completely different. You want it to be ABSOLUTE. You want to be able to command FORKLIFT 100 and have it always to to the same location. Because the NXT Motor and Move commands are relative this means you need to do extra work. Think about the following questions:

    If the motor is at 0 degrees and you want to move it to 100 degrees how far does it need to move?

    If the motor is at 50 degrees and you want to move it to 100 degrees how far does it need to move?

    If the motor is at X degrees and you want to move it to Y degrees how fare does it need to move?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Stumped - motors self adjusting during program
    By jbadger in forum Programming
    Replies: 5
    Last Post: 03-07-2012, 04:00 PM
  2. Replies: 6
    Last Post: 01-16-2012, 11:30 PM
  3. program exiting?
    By natterbus in forum Programming
    Replies: 14
    Last Post: 11-16-2011, 03:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •