Difference between revisions of "Talk:Circular Targeting/Walkthrough"

From Robowiki
Jump to navigation Jump to search
 
(8 intermediate revisions by 5 users not shown)
Line 3: Line 3:
 
| author=[[User:Dummy|Dummy]]
 
| author=[[User:Dummy|Dummy]]
 
}}
 
}}
 +
 +
== Bad formulas ==
 +
 +
Hi all, I was following the walkthrough and I found that the integral is not correctly resolved in the following formulas. Where it is written this:
 +
 +
x_t = x_relative - (enemyVelocity / turnRate) * (cos(initialHeading - turnRate * t) - cos(initialHeading))
 +
 +
y_t = y_relative - (enemyVelocity / turnRate) * (sin(initialHeading - turnRate * t) - sin(initialHeading))
 +
 +
I think it should be written this instead:
 +
 +
x_t = x_relative + (enemyVelocity / turnRate) * (+ cos(initalHeading) - cos(initialHeading + turnRate * t))
 +
 +
y_t = y_relative + (enemyVelocity / turnRate) * (- sin(initalHeading) + sin(initialHeading + turnRate * t))
 +
 +
I have implemented this for my own bot and it does work, so I hope it will be useful for other people. Great work and definitely useful, anyway! --[[User:Josago|Josago]] 19:37, 30 January 2011 (UTC)
  
 
== Subsections vs. Categories ==
 
== Subsections vs. Categories ==
Line 13: Line 29:
  
 
I think the images for the formulas look really nice. My only criticism is that eq3 and eq4 are very wide, it gives me a horizontal scrollbar -- the text could probably be a bit smaller and still be very readable. --[[User:Voidious|Voidious]] 16:51, 19 July 2009 (UTC)
 
I think the images for the formulas look really nice. My only criticism is that eq3 and eq4 are very wide, it gives me a horizontal scrollbar -- the text could probably be a bit smaller and still be very readable. --[[User:Voidious|Voidious]] 16:51, 19 July 2009 (UTC)
 +
 +
: If I reduce the image size, the equal sign will look bad =( That's one of the bad thing in OO.o Math. &raquo; <span style="font-size:0.9em;color:darkgreen;">[[User:Nat|Nat]] | [[User_talk:Nat|Talk]]</span> &raquo; 13:06, 20 July 2009 (UTC)
 +
 +
Nice indeed. I agree that it would be good if they were a bit smaller. I do wonder though... why don't we "set $wgUseTeX = true; in LocalSettings.php" as noted [[wikipedia:Help:Displaying a formula|here]]? Then it should be easier to have nice looking formulas without having to mess around with picture uploads. --[[User:Rednaxela|Rednaxela]] 22:59, 19 July 2009 (UTC)
 +
 +
: Yeah, I should do that. There are a couple pre-reqs I have to do first: [http://www.mediawiki.org/wiki/Manual:$wgUseTeX]. I'll try and get to it this week. Maybe tick off a couple other items on my RoboWiki to-do list, while I'm at it, like the Archived talk namespace and some syntax highlighting support. --[[User:Voidious|Voidious]] 23:31, 19 July 2009 (UTC)
 +
 +
:: What about getting email notifications working?  --[[User:Darkcanuck|Darkcanuck]] 05:48, 20 July 2009 (UTC)
 +
 +
:: Other todos: Making the user css/js work! I request this for loooong time. And I've find a solution to random page for you and you haven't seem to notice, have you, Voidious? If you are enabling LaTeX, make sure you install TeX on the server! Other thing we might want to have: http://www.mediawiki.org/wiki/Manual:Image_Administration#SVG, http://www.mediawiki.org/wiki/Manual:$wgForeignFileRepos#Using_files_from_Wikimedia_Commons_:_ForeignAPIRepo &raquo; <span style="font-size:0.9em;color:darkgreen;">[[User:Nat|Nat]] | [[User_talk:Nat|Talk]]</span> &raquo; 13:06, 20 July 2009 (UTC)
 +
 +
I just found one mistake in eq7, I miss 't' at the end. But I think I will wait if Voidious get make TeX work so I can use TeX instead. &raquo; <span style="font-size:0.9em;color:darkgreen;">[[User:Nat|Nat]] | [[User_talk:Nat|Talk]]</span> &raquo; 13:08, 20 July 2009 (UTC)
 +
 +
I've finished port the image to TeX command. Rednaxela, the newer is bigger that the last one. I don't know how to do line break in TeX. Feedback please. &raquo; <span style="font-size:0.9em;color:darkgreen;">[[User:Nat|Nat]] | [[User_talk:Nat|Talk]]</span> &raquo; 03:24, 3 August 2009 (UTC)

Latest revision as of 20:37, 30 January 2011

Credits - Circular Targeting/Walkthrough
Old wiki page: CircularTargeting
Original author(s): Dummy

Bad formulas

Hi all, I was following the walkthrough and I found that the integral is not correctly resolved in the following formulas. Where it is written this:

x_t = x_relative - (enemyVelocity / turnRate) * (cos(initialHeading - turnRate * t) - cos(initialHeading))

y_t = y_relative - (enemyVelocity / turnRate) * (sin(initialHeading - turnRate * t) - sin(initialHeading))

I think it should be written this instead:

x_t = x_relative + (enemyVelocity / turnRate) * (+ cos(initalHeading) - cos(initialHeading + turnRate * t))

y_t = y_relative + (enemyVelocity / turnRate) * (- sin(initalHeading) + sin(initialHeading + turnRate * t))

I have implemented this for my own bot and it does work, so I hope it will be useful for other people. Great work and definitely useful, anyway! --Josago 19:37, 30 January 2011 (UTC)

Subsections vs. Categories

Toward the end of this article there's some links to CodeSnippets/Blah. When we migrate that stuff over, should those pieces just be put in Blah and with Blah being in category "Code Snippets"? That seems better than using subsections. --David Alves

Yeah, I definitely think that sounds right. --Voidious 23:33, 14 November 2007 (UTC)

Formula Images

I think the images for the formulas look really nice. My only criticism is that eq3 and eq4 are very wide, it gives me a horizontal scrollbar -- the text could probably be a bit smaller and still be very readable. --Voidious 16:51, 19 July 2009 (UTC)

If I reduce the image size, the equal sign will look bad =( That's one of the bad thing in OO.o Math. » Nat | Talk » 13:06, 20 July 2009 (UTC)

Nice indeed. I agree that it would be good if they were a bit smaller. I do wonder though... why don't we "set $wgUseTeX = true; in LocalSettings.php" as noted here? Then it should be easier to have nice looking formulas without having to mess around with picture uploads. --Rednaxela 22:59, 19 July 2009 (UTC)

Yeah, I should do that. There are a couple pre-reqs I have to do first: [1]. I'll try and get to it this week. Maybe tick off a couple other items on my RoboWiki to-do list, while I'm at it, like the Archived talk namespace and some syntax highlighting support. --Voidious 23:31, 19 July 2009 (UTC)
What about getting email notifications working? --Darkcanuck 05:48, 20 July 2009 (UTC)
Other todos: Making the user css/js work! I request this for loooong time. And I've find a solution to random page for you and you haven't seem to notice, have you, Voidious? If you are enabling LaTeX, make sure you install TeX on the server! Other thing we might want to have: http://www.mediawiki.org/wiki/Manual:Image_Administration#SVG, http://www.mediawiki.org/wiki/Manual:$wgForeignFileRepos#Using_files_from_Wikimedia_Commons_:_ForeignAPIRepo » Nat | Talk » 13:06, 20 July 2009 (UTC)

I just found one mistake in eq7, I miss 't' at the end. But I think I will wait if Voidious get make TeX work so I can use TeX instead. » Nat | Talk » 13:08, 20 July 2009 (UTC)

I've finished port the image to TeX command. Rednaxela, the newer is bigger that the last one. I don't know how to do line break in TeX. Feedback please. » Nat | Talk » 03:24, 3 August 2009 (UTC)