FRC - Command Base System - Java - VS Code 2020 - Part 2

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ธ.ค. 2024

ความคิดเห็น • 6

  • @nevinmorrison
    @nevinmorrison  ปีที่แล้ว

    Note: SpeedControllerGroup has been changed to MotorControllerGroup

  • @nrichmansfield
    @nrichmansfield 3 ปีที่แล้ว +2

    It was me being not too wise. I needed to use the (new) command not the (old). These videos are super useful. Thanks and see you next year

  • @Rickedemon
    @Rickedemon 4 ปีที่แล้ว

    Hey! Finding your videos super useful. I was wondering how I would handle the controls if I want to do something akin to a GTA drive (Triggers for going straight/back and the left stick for controlling direction.

    • @nevinmorrison
      @nevinmorrison  4 ปีที่แล้ว

      Sorry for the slow response. You can basically do any kind of drive system you want just by using Math and setting motor speeds. I actually usually do not use the Differential Drive libraries from WPI. I make my programmers program arcade drive from scratch. Take a look at our code from this season. Look at the driveWithJoysticks function within the Drivetrain subsystem. It has a matching command. You will see the arcade drive function is made. In your scenario you likely would need to average the values of your 2 triggers for a forward back value and then average forward back value with the turning value which should be a positive relationship to the x value on the stick. Seems simple enough. Even though our example is an arcade drive I think you will understand. If not message me again: github.com/Cerberus5725/TheForce p.s. we are actually team 6841. Our sister team is 5725

  • @creightonpreprobotics957
    @creightonpreprobotics957 3 ปีที่แล้ว

    When trying to add the addRequirment(driveTrain); I get an error, and the only fix offered is to add a new method for addRequirements. I do not know if this is a change for last year or if you have any advice. I enjoy the videos and find them super useful for helping to teach my studnets

    • @nevinmorrison
      @nevinmorrison  3 ปีที่แล้ว

      Sorry Rich without looking at your code it would be tough for me to identify the issue. Our school opted out of this season due to school district restrictions on co-cirricular. We will be back next fall. I do not know if you missed something or if there was changes to the API for this season. I would be somewhat surprised if there were major changes from last year to this year. Sorry I am not more help on this.