Shop OBEX P1 Docs P2 Docs Learn Events
Oval Figure 8 Challenge — Parallax Forums

Oval Figure 8 Challenge

ercoerco Posts: 20,255
edited 2012-05-22 05:24 in Robotics
You knew it was coming! Who will be first?

And no, a circular oval doesn't cut it, Martin_H ! Git yer Weblos on it !

Comments

  • ercoerco Posts: 20,255
    edited 2012-05-22 00:43
    Once again, you cats are letting me have ALL the fun. :)
    FOR B3=1 TO 2                                        ' 2 loops
    
    FOR W0=770 TO 763                            'ramp left motor down
    FOR B2=1 TO 32 'was 32
    PULSOUT 13,W0
    PULSOUT 12,730
    PAUSE 20
    NEXT
    NEXT
    
    FOR W0=763 TO 770                            'ramp left motor up
    FOR B2=1 TO 32 'was 32
    PULSOUT 13,W0
    PULSOUT 12,730
    PAUSE 20
    NEXT
    NEXT
    NEXT
    
    qq:
    FOR B3=1 TO 2                                        ' 2 loops
    
    FOR W0=735 TO 740                            'ramp right motor down
    FOR B2=1 TO 50
    PULSOUT 12,W0
    PULSOUT 13,772
    PAUSE 20
    NEXT
    NEXT
    
    FOR W0=740 TO 735                            'ramp right motor up
    FOR B2=1 TO 50
    PULSOUT 12,W0
    PULSOUT 13,772
    PAUSE 20
    NEXT
    NEXT
    NEXT
    
    END
    
  • Martin_HMartin_H Posts: 4,051
    edited 2012-05-22 05:24
    I may try it this weekend. I've got something else I want to work on before then.
Sign In or Register to comment.