Go to Post I'm working, don't consume my oxygen. - DonRotolo [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 31-01-2017, 11:32
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 336
fovea1959 will become famous soon enough
Programming six motor drive in Java (or c++)

We're a Java shop, and we are running 3 motors per side for drive this year (budget and space willing).

In the past, we have used PWM Y cables to make it all look like 4 motors. This year we want to control all 6 motors independently (easier to troubleshoot and find bad connections @ competition).

The Wpilib drive object only supports 4 motors tops. The solution we used was just to poke the Drive object as usual, then immediately interrogate a controller on each side for it's current power and poke that back into the 3rd motor on each side (the motor that is not part of the Drive object).

The other solution we contemplated was doing a Composite motor object; I think strongback has something like that.

Ours is working fine, but I'm curious how other people solved this problem?
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:46.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi