![]() |
Victors, Default code, & joystick configuration
Here's the deal,
Our team is considering using a two-joystick configuration for the drive-trains, where one joystick controls the right transmission, and the other controls the left. However, one of our electronics mentors says that, due to the default code for the robot, we would end up using all 4 Victors just for the drive-trains. My question is, what exactly is it about the default code that does this, and where among the first documents does it explicitly say that? |
Re: Victors, Default code, & joystick configuration
Your software decision to use 2 joysticks to control the drive does not control how many Victors your robot requires.
Each motor in the kit requires its own speed controller. If you are using the KitBot transmission your choices are 1 motor per side or 2 motors per side. If you choose to use all 4 CIM motors in the transmission than you will require 4 Victor speed controllers. |
Re: Victors, Default code, & joystick configuration
Quote:
|
Re: Victors, Default code, & joystick configuration
Quote:
|
Re: Victors, Default code, & joystick configuration
You can use a 2-joystick configuration with 2 Victors, one speed controller for each motor on each side. As pointed out before, the programs capability has nothing to do with the number of motors you would need.
You can just you 2 PWM outputs from your RC rather than the 4 in the default code. Assuming you are using 2 motors (1 on each side with 1 victor each) the default code: pwm13 = pwm14 = Limit_Mix(2000 + p1_y + p1_x - 127); pwm15 = pwm16 = Limit_Mix(2000 + p1_y - p1_x + 127); will change to something like this (where you would connect PWM13 to right motor, and PWM 15 to the left motor): pwm13 = Limit_Mix(2000 + p1_y); pwm15 = Limit_Mix(2000 + p2_y); Hope this helps :) |
| All times are GMT -5. The time now is 03:59. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi