|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: calculating position using follower wheels
Question 4: In the code block highlighted in blue at the bottom of post 11 the following code appears for calculating position and heading: Code:
Q+=dR/2.0; X+=dF*sin(Q)+dS*cos(Q); Y+=dF*cos(Q)-dS*sin(Q); Q+=dR/2.0; Code:
Q+=dR; X+=dF*sin(Q)+dS*cos(Q); Y+=dF*cos(Q)-dS*sin(Q); |
|
#2
|
|||
|
|||
|
Re: calculating position using follower wheels
Spoiler for Justification:
It is not the best proof, but it explains the general reasoning. |
|
#3
|
||||
|
||||
|
Re: calculating position using follower wheels
Quote:
See attachment for additional explanation using geometry and a bit of calculus. |
|
#4
|
||||
|
||||
|
Re: calculating position using follower wheels
Just for fun. Last edited by Ether : 07-10-2013 at 17:20. Reason: added plot with sensor error |
|
#5
|
||||
|
||||
|
Re: calculating position using follower wheels
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|