It is still possible to calculate the exact tilt angle τ. Measure the distance from the 'barrel' to the rotation point R, say 'b'.
Then
α = atan (h/(a + d))
m = √(h**2 +(a+d)**2)
β = acos (b/m)
γ = 180 - β - α (in degrees, or π - β - α in radians)
and
τ = 90 - γ (or π/2 - γ in radians)
Right!!!
So we have a "heavy" enough formula for the Tilt ...
I'll try to transorm it in to Blockly command using the new
"Multiple argument math block"
Stephanie and Ken explained the function of this block on webinar....
However that formula is complicated enough...
Working with some activities with my students, we programed the S3 in order to move on a path of a right triangle.
[img][/img]
The triangle had vertical sides 100 and 50 cm and the robot using Blockly Prop calculated the acute angle, as well as the hypotenuse of the triangle.
Bravo! Very dramatic stop at the end. A real cliffhanger!
Yeah,
I had a mistake on two last commands on my Blocklyprop code:
The left and right motor distance should be "Y" instead of "f"
Here is the right code:
I would like to see it find and shoot at a target...
By all means, Nikos' asset-3 (S3) should pursue and fire at moving targets as been previously demonstrated in Greece on the streets of Athens. Flaming obstacles optional.
Comments
It is still possible to calculate the exact tilt angle τ. Measure the distance from the 'barrel' to the rotation point R, say 'b'.
Then
α = atan (h/(a + d))
m = √(h**2 +(a+d)**2)
β = acos (b/m)
γ = 180 - β - α (in degrees, or π - β - α in radians)
and
τ = 90 - γ (or π/2 - γ in radians)
Right!!!
So we have a "heavy" enough formula for the Tilt ...
I'll try to transorm it in to Blockly command using the new
"Multiple argument math block"
Stephanie and Ken explained the function of this block on webinar....
However that formula is complicated enough...
Working with some activities with my students, we programed the S3 in order to move on a path of a right triangle.
[img][/img]
The triangle had vertical sides 100 and 50 cm and the robot using Blockly Prop calculated the acute angle, as well as the hypotenuse of the triangle.
here is the bloclyProp code
and here is a video:
[video] [/video]
Yeah,
I had a mistake on two last commands on my Blocklyprop code:
The left and right motor distance should be "Y" instead of "f"
Here is the right code:
By all means, Nikos' asset-3 (S3) should pursue and fire at moving targets as been previously demonstrated in Greece on the streets of Athens. Flaming obstacles optional.