![]() |
windriver c++?
Hello
we are trying to write a code on windriver /C++ for mecanum wheels but tell now we haven't succeed to use the HolonomicDrive function and open declaration for it from MyRobot.cpp !! any suggestion on how to find the declaration for the HolonomicDrive functionand how to use it? we also tried to upload our prier code which written by EasyCPro 2008 into windriver any suggestion or advices on how we can use our EsayCPro code in Windirver ,[quote] Code:
the code: |
Re: windriver c++?
Your EasyC code is not compatible with the new system, and will have to be rewritten.
I have not had good luck provided holonomic drive function, luckly that is not a difficult function to write. Following is the code for a Mecanum/Holonomic drive. You need to insert the code piecse into the places noted in a blank copy of the Iterative robot demo project. Code:
//INSERT IN: Variable definitions |
Re: windriver c++?
1 Attachment(s)
hello Eric
Thank you for your help we were able to insert the code you sent us into RobotDemo however we are not sure if the mecanum wheels are fully doing all the right moves (it works fine in all direction except to the sides) we think that it could be a problem with not having a gray area specified ?!!! Let us know what you think!! the code, Code:
#include "WPILib.h"ps open the attachment Thank you again from 1946 programming team |
Re: windriver c++?
Quote:
If you're not sure replace the joystick mapping code with the following, then support the robot with its wheels in the air, and report how each wheel is moving. Then move the constant to each of the other values in turn, and post the result. This will confirm motor mappings, and wiring to the motors. Code:
float X = 0.2;I assure you no additional code is necessary for a basic mecanum drive. I've used that piece of code many times. |
Re: windriver c++?
The RobotDrive class has a HolonomicDrive method that does the calculations for you based on a 4 motor drive base. You supply a magnitude and direction of travel (that's speed, direction), and a rotation value. To use it, you have to create a RobotDrive object with the 4 motors.
Check out the documenation to determine what order to list the motors. |
| All times are GMT -5. The time now is 11:58. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi