|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: [C++] Use CAN Talons in RobotDrive
How would this be different than the code I started with? Iterative basically just adds a function to be called at the beginning, but doesn't really change what is actually going on in the program.
|
|
#2
|
||||
|
||||
|
Re: [C++] Use CAN Talons in RobotDrive
Quote:
Either way, you should add some sleep to your loop, otherwise you'll starve the rest of the threads on your system and you'll encounter problems. I'd recommend using iterative robot instead though, then you don't have to worry about things like that. |
|
#3
|
|||
|
|||
|
Re: [C++] Use CAN Talons in RobotDrive
Quote:
|
|
#4
|
|||
|
|||
|
Re: [C++] Use CAN Talons in RobotDrive
Please post your progress... we have the same exact need, and are hard coding our drive code currently... CAN has so many benefits, but so does using RobotDrive...
Thanks! |
|
#5
|
|||
|
|||
|
Re: [C++] Use CAN Talons in RobotDrive
We haven't had any time to test really, so we have just hardcoded the Mecanum drive with no gyro. I hope that we can get RobotDrive sorted out later today, but I'm not too sure. Of course I'll post the solution here though if we find it!
|
|
#6
|
||||
|
||||
|
Re: [C++] Use CAN Talons in RobotDrive
This might help, I ran this code on my mec bot, with gyro and CANTalons. I use IterativeRobot (it's just my preference).
http://www.chiefdelphi.com/forums/sh...3&postcount=20 |
|
#7
|
|||
|
|||
|
Re: [C++] Use CAN Talons in RobotDrive
Quote:
Code:
leftFront->SetControlMode(CANSpeedController::kPercentVbus); leftBack->SetControlMode(CANSpeedController::kPercentVbus); rightFront->SetControlMode(CANSpeedController::kPercentVbus); rightBack->SetControlMode(CANSpeedController::kPercentVbus); |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|