by bauermech » Sat Apr 21, 2007 12:25 pm
by bauermech
Sat Apr 21, 2007 12:25 pm
How do I teach myself all of this mathematical stuff?
Whoa, lets not get too far ahead of ourselves...
You'll find it is not necessary to jump into using mathematics to create motions. RoboBASIC has a wonderful Catch-n-Play feature you can use to make your robot transition from one pose to the other. I would recommend starting there, and getting the feel for coding
Click Here for a basic rundown of what the code in your "Overall_Template.bas" file looks like and what each chunk means.
F=A*B/C*D+E?
What the hell does that mean?
Each letter may be represented by a value... you can use variables or constants to set/change these values
DIM E AS BYTE
E = 128
remember the laws of math order...
(Do First - Parentheses, Exponents, Multiplication, Division, Addition, Subtraction - Do Last)...for instance, in the above equation:
1. F = is "F" equals the result of... (This is the final answer you're looking for)
2. Take the value of A, multiply it by the value of B
3. Take the value of C, multiply it by the value of D
4. Take both results from steps 2 and 3 - divide the values
5. Take the result from step 4 and add the value of E
6. The resulting value is equal to F
Did all of you learn this stuff just by studying the guide?
Many of us have had previous programming experience in BASIC and/or C++ etc., but al lot of us too have had no previous experience, and were forced to learn by asking questions and studying.
Hope this helps w/ some of your questions...
How do I teach myself all of this mathematical stuff?
Whoa, lets not get too far ahead of ourselves...
You'll find it is not necessary to jump into using mathematics to create motions. RoboBASIC has a wonderful Catch-n-Play feature you can use to make your robot transition from one pose to the other. I would recommend starting there, and getting the feel for coding
Click Here for a basic rundown of what the code in your "Overall_Template.bas" file looks like and what each chunk means.
F=A*B/C*D+E?
What the hell does that mean?
Each letter may be represented by a value... you can use variables or constants to set/change these values
DIM E AS BYTE
E = 128
remember the laws of math order...
(Do First - Parentheses, Exponents, Multiplication, Division, Addition, Subtraction - Do Last)...for instance, in the above equation:
1. F = is "F" equals the result of... (This is the final answer you're looking for)
2. Take the value of A, multiply it by the value of B
3. Take the value of C, multiply it by the value of D
4. Take both results from steps 2 and 3 - divide the values
5. Take the result from step 4 and add the value of E
6. The resulting value is equal to F
Did all of you learn this stuff just by studying the guide?
Many of us have had previous programming experience in BASIC and/or C++ etc., but al lot of us too have had no previous experience, and were forced to learn by asking questions and studying.
Hope this helps w/ some of your questions...