MR. SCHUETZE'S WEEKLY UPDATE
|
|
Programming looked over codes and sorted out little name thingies. Afterwards we had a discussion about them. We also got gyro to work and we put it into our code bais. We tested it and watched the angle change. Now we just need to tune the camera. Mechanical had to find the center of the drum and drill holes through. Had to find female and male electrical connecters. We measured, drew, and drilled the holes to attach the parallel things (for the wheels) which we will later be welded.
The drive-train is nearly complete. The omni-wheels are mostly mounted except
that we are short some 1/2 ID bearing and need to get chain around all wheels.
Here is a thought for consideration, |
|
A great day in the shop: |
|
LOG ENTRIES
Mon Jan 30, 2006 9:17 am
We looked over code and sorted it out a little naming things and dicussing what was what. That is it.
-Jack
Tue Jan 31, 2006 11:05 am
worked on gyro, we got it to work, put it into our code bais. we tested it and whatched the angle change. is it degrees or milliradiance? dont know what rate of change is either. we need to tune the camera, get the right settings and that sort of stuff.
-Billy
Thu Feb 02, 2006 12:21 pm
Yup well today we got the code put in place for the
gyro and fixed a few things up with the joystick. Tested out the motors that
will control the drive. Wooo can't wait to see how it's going to drive!!
![]()
-Phoenix
Posted: Thu Feb 02, 2006 1:55 pm
First off, today we rearranged the gyro code and stuck
it in a new location in the code. We also loaded up some of the updated code to
make the joystick turn the motor in different directions. I even finished up
some of the code with pwms. Later we're going to have to fix up the code so we
can use the joystick normally instead of diagonally.
![]()
-XEmptyHeartsX
Posted: Thu Feb 02, 2006 9:47 pm
I think I came up with a solution for the 'diagonal
joystick' problem last night. So, that will be the focus of Thursday evenings
work; translating that into C code in the robot.
Here are the 6 steps that we need to take to rototate the joystick back to
normal:
Steps:
1 - Translate to correct graph: < X-127, Y-127 >
2 - Get magnitude of the vector. sqrt( X^2 + Y^2 )
3 - Convert our <X, Y> to a unit vector: < X / magnitude, Y / magnitude >
4 - Rotate unit vector: < X = ( X * cos( angle )) - ( Y * sin( angle )) , Y = (
X * sin( angle )) + ( Y * cos( angle )) >
5 - Scale the magnitude from 0 - 360 to 0 to 255: < X = (X + magnitude)* (255 /
360), Y = (Y + magnitude) * (255 / 360 ) >
6 - Convert back to original graph: < X + 127, Y + 127 >
This is a 2d vector rotation. This same code will be important for the 'frisbee'
motion of the robot.
-Sean
Posted: Fri Feb 03, 2006 12:05 pm
Alrighty Mr. Kelly figured out the steps to change our
diagonal joystick problem. Vector rotation I think. We coded up the steps in the
user routines but...there's a "syntax error" Mr. Kelly's looking it over. It
should be ready saturday.
![]()
-XEmptyHeartsX
Thu Feb 02, 2006 6:00 am
so
yesterday... we had to find the center of the drum... and drill the holes
through... we began to wrap it in the blue stuff.. but i had to catch the
bus.... and i helped gilbert and ford find female and male electrical
connectors...
before yesterday...
um... i helped measure, draw and drill the holes to attach the paralles things
(for the wheels) which will later be welded...
mmmm... i know i've helped with more... i just cant think of it at the
moment....
so i'll come back to this!!
-Jessica