![]() |
my code
Here is a copy of my code.
Please comment on it! I know i could just do the import "*" thing but i chose not to for future references! If you have any questions please ask, but otherwise my comments in the code seem pretty straight forward! Code:
/*----------------------------------------------------------------------------*/ |
Re: my code
From first glance I see nothing absolutely deadly in your code. But watch out with your Fluffy.setExpiration(5.0);
5 seconds may not seem like much, but when you're on the field that's like an hour! Also, '[code]' is fun. :P |
Re: my code
Quote:
|
Re: my code
WOAH!!! DOUBLE SOLENOIDS!!! ALL THE WAY (you guys get the rest)
|
Re: my code
Quote:
|
Re: my code
It's a 'double rainbow' joke. I did get a kick out of 'fluffy' but agree that five seconds is enough for your robot to do serious damage to itself and things around it.
You do feed him a LOT though... Really, you only need to feed him once per loop. In your teleop loop there, you feed him six times every loop! Hope you take him for lots of walks! Erm. Bad jokes aside, it looks good - very well commented especially. Few questions though: Does the dead reckoning [i.e. based solely on time] autonomous work consistently (if you've tested it)? From past experience I find that dead reckoning is subject to even the slightest mechanical or electrical change. Have there been any problems with having the arm RobotDrive try to access channel 0? If it's only one speed controller, and it's not quite a 'drive', why are you using RobotDrive instead of just making a Jaguar? Also - Quote:
|
Re: my code
well the arm is two window motors running in snyc on port 3 because im using a split pwm cable. I dont really know how to program it. I have not tested the autonomus because me team doesnt realize that a programmer should get some time with the robot, and could you give me any help on how to run my arm, on a joystick, im using a game controller with two joysticks, the left is for arcade drive and the right i want to be bor the arm. and i do have my arm declared as a jaguar in a spot too.
Code:
/*----------------------------------------------------------------------------*/ |
Re: my code
i do need help though i want to stop my arm when it hits a limit switch, now ive searched CD and cant quite figure it out, but when it is triggered i want my arm to stop and when it is not triggered i want my arm to drive. How might i go about doing this. btw. this would replace the timer reference in my autonomy. Please help!!!!:ahh:
|
Re: my code
Quote:
Code:
public void operatorControl() { |
Re: my code
Quote:
my solution to this is to rather than stop, prohibit movement in one direction. pseudo code would look something like this. if(limit == true && y>1) stop(); else arm.run(js.getY); |
Re: my code
Quote:
|
| All times are GMT -5. The time now is 22:17. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi