|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Moving Only the Back Wheels
This year my team is having FIRST wheels in the back and omni wheels in the front. Each wheel has its own gear box and CIM. We are driving the robot with the 4 motor arcade drive. I want to program a special mode where only the back motors move. Is there a way to do this?
|
|
#2
|
|||||
|
|||||
|
Re: Moving Only the Back Wheels
I can think of three ways to do it. One is probably more complicated and hackish than anyone should try. One involves completely ignoring the "Drive" functions and building your own out of regular Motor VIs.
The one that I'd actually try implementing myself is something like this: Open each drive motor separately. Pass the motors' RefNums into an Open 4 Motor Drive function that's been set to the "existing motor" variant. Pass the rear motors's RefNums into a similar Open 2 Motor Drive function. Now you can choose to invoke the Arcade Drive function of either the 4-motor or the 2-motor Drive set. You'll have to disable the safety on the one you're not actively controlling. I'm curious -- why do you want to do this? |
|
#3
|
||||
|
||||
|
Re: Moving Only the Back Wheels
Quote:
|
|
#4
|
||||
|
||||
|
Re: Moving Only the Back Wheels
Quote:
|
|
#5
|
||||
|
||||
|
Re: Moving Only the Back Wheels
I tried the last method and now the robot will not drive at all. I guess the normal four wheel drive will have to do.
|
|
#6
|
|||||
|
|||||
|
Re: Moving Only the Back Wheels
Giving up that easily?
|
|
#7
|
||||
|
||||
|
Re: Moving Only the Back Wheels
Well I have more important things I have to program.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|