Go to Post Only time will tell for sure, but it seems that the current software providers are hatching up a pretty good solution to the problem. - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 01-12-2009, 06:21 PM
mahmosh's Avatar
mahmosh mahmosh is offline
Registered User
FRC #1946
 
Join Date: Jan 2008
Location: israel
Posts: 125
mahmosh is an unknown quantity at this point
need help understanding c code in robotdrive

hey...
i have this code that i got from WPILib. its a part from robotdrive.cpp
Code:
 RobotDrive::RobotDrive(SpeedController *frontLeftMotor, SpeedController *rearLeftMotor,
						SpeedController *frontRightMotor, SpeedController *rearRightMotor,
						float sensitivity)
i just copied it and pasted here from notepad.

i want to understand what is float sensitivity?? what could i put on it?
and other question: can i replace speedcontroller *...... with a number of the pwm in the digital sidecar? i mean if i am using a victor and have a connection for pwm number 1 so could i write for example :
Code:
myrobot.robotdrive(1,2,3,4,float sensitivity)
and here are constructor maybe it could help:
Code:
* Constructor for RobotDrive with 4 motors specified as SpeedController objects.
 * Speed controller input version of RobotDrive (see previous comments).
 * @param rearLeftMotor The back left SpeedController object used to drive the robot.
 * @param frontLeftMotor The front left SpeedController object used to drive the robot
 * @param rearRightMotor The back right SpeedController object used to drive the robot.
 * @param frontRightMotor The front right SpeedController object used to drive the robot.
 * @param sensitivity Effectively sets the turning sensitivity (or turn radius for a given value)
help me rapidly please
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help for Better Understanding of Shaft Encoders Xufer Programming 2 01-08-2007 11:14 PM
need help w/ joystick code willie837 Programming 6 02-02-2005 11:17 PM
code violation...need help Vince lau Programming 4 02-20-2004 04:31 PM
Help with understanding Fuse panel Blue_Midnight Electrical 3 02-10-2004 11:12 PM
hey need some help with writing a code please help me here magical hands Programming 9 01-01-2004 09:46 PM


All times are GMT -5. The time now is 09:43 AM.

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