• Sign In
  • Sign Up
    Loading ...
View All Updates Mark All Read
  • Home
  • Videos
  • Albums
  • Groups
  • Forum
  • Events
  • About
  • Store

Member Info

  • Profile Views: 722 views
  • Friends: 0 friends
  • Last Update: March 20, 2023
  • Joined: March 16, 2023
  • Updates
  • Info
  • Forum Posts(1)

Updates

The post was not added to the feed. Please check your privacy settings.
  • Philbot
    Philbot replied to a topic in the forum Support:
    I think I see how this is done to create a differential drive.
    1) Create a Joystick control and feed the X axis to the Left drive wheel, and the Y axis to the Right Drive Wheel.
    2) Now rotate the joystic control 45 degrees counter...  more
    I think I see how this is done to create a differential drive.
    1) Create a Joystick control and feed the X axis to the Left drive wheel, and the Y axis to the Right Drive Wheel.
    2) Now rotate the joystic control 45 degrees counter clockwise.
     
    How it works..
    If you push the JS up, it will give positive power to both the left and right wheels.  Tank moves forward
    If you push the JS down, it will give negative power to both the left and right wheels. Tank Moves Backwards.
    If you push the JS to the right it will give positive power to the left wheel, and negative power to the Right wheel, which will make the tank turn right.
    If you push the JS to the left it will give negative power to the left wheel, and positive power to the Right wheel, which will make the tank turn left.
    To get this to work correctly, you will need to make sure each wheel drives forward when the stick is pushed forwards.  So, check your inverts.
    It would be better if this could be done using simple add/subtract math on...    less
    • March 20, 2023
View More
Loading ...

Info

Forum Posts

  • March 20, 2023 4:04 PM CET
    in the topic Two channels with one slider in the forum Support
    I think I see how this is done to create a differential drive. 1) Create a Joystick control and feed the X axis to the Left drive wheel, and the Y axis to the Right Drive Wheel. 2) Now rotate the joystic control 45 degrees counter clockwise.   How it works.. If you push the JS up, it will give positive power to both the left and right wheels.  Tank moves forward If you push the JS down, it will give negative power to both the left and right wheels. Tank Moves Backwards. If you push the JS to the right it will give positive power to the left wheel, and negative power to the Right wheel, which will make the tank turn right. If you push the JS to the left it will give negative power to the left wheel, and positive power to the Right wheel, which will make the tank turn left. To get this to work correctly, you will need to make sure each wheel drives forward when the stick is pushed forwards.  So, check your inverts. It would be better if this could be done using simple add/subtract math on ANY two sliders, but something is better than nothing :)  
Previous
Next
Copyright ©2025  -  Privacy  -  Terms of Service  -  Contact  - 

 

SBrick is carried by Kurbli Kft. LEGO®, the LEGO® logo, the Minifigure®, DUPLO®, the DUPLO® logo, BIONICLE®, the BIONICLE® logo, LEGENDS OF CHIMA®, the LEGENDS OF CHIMA® logo, DIMENSIONS®, the DIMENSIONS® logo, the FRIENDS® logo, the MINIFIGURES® logo, MINDSTORMS®, the MINDSTORMS EV3® logo, MIXELS®, the MIXELS® logo, NINJAGO®, the NINJAGO® logo, NEXO KNIGHTS®, and the NEXO KNIGHTS® logo are trademarks and/or copyrights of the LEGO Group, which does not sponsor, authorize or endorse this web site. ©2018 The LEGO Group. All rights reserved.

Share