More Servo Woes


Closed Thread
Results 1 to 11 of 11

Thread: More Servo Woes

Hybrid View

  1. #1
    Join Date
    Jul 2007
    Posts
    65


    Did you find this post helpful? Yes | No

    Lightbulb

    Quote Originally Posted by chrisshortys View Post
    positivetwo:

    IF XAXIS > 18 THEN
    STEPPING = 6
    ENDIF

    IF XAXIS > 15 THEN
    STEPPING = 5
    ENDIF

    IF XAXIS > 12 THEN
    STEPPING = 4
    ENDIF

    IF XAXIS > 9 THEN
    STEPPING = 3
    ENDIF

    IF XAXIS > 6 THEN
    STEPPING = 2
    ELSE
    STEPPING = 1
    ENDIF

    '************************************************* ************************************************** ***********
    Hi Chris

    I am looking to do something similar (soon I hope) and as I was scrolling thru your code, I saw that this whole section could be resumed by this.

    STEPPING = XAXIS /3

    and maybe add a IF statement for low values of xaxis..

    IF XAXIS < 5
    STEPPING = 1
    END IF


    I don't know if that can make the whole thing more reponsive...since all the IF have to be processed.

    anyhow, thanks for sharing your code!

  2. #2
    Join Date
    Oct 2008
    Posts
    51


    Did you find this post helpful? Yes | No

    Default

    Cheers for that flipper, I shall try that when I get back from the business trip I'm on.
    Anything to make it simplier will help with the two servo motors!

Similar Threads

  1. Problem with 12F629, servo and EEPROM
    By Atom058 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 1st March 2008, 10:53
  2. Servo does not move
    By ruijc in forum General
    Replies: 12
    Last Post: - 12th November 2007, 20:14
  3. Beginner + Servo
    By james in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 31st July 2007, 22:31
  4. Help with Servo Control Please!
    By wireman22 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 7th June 2007, 19:15
  5. Servo control woes
    By Eriswerks in forum mel PIC BASIC Pro
    Replies: 24
    Last Post: - 28th February 2006, 01:12

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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