@@ -23,8 +23,8 @@ public class TackettMulticastSender {
...
@@ -23,8 +23,8 @@ public class TackettMulticastSender {
publicstaticvoidmain(String[]args)
publicstaticvoidmain(String[]args)
{
{
intvelocity=2;
intvelocity=3;
intdir=45;
intdirection=180;
doublexPos=0;
doublexPos=0;
doubleyPos=2;
doubleyPos=2;
...
@@ -57,8 +57,8 @@ public class TackettMulticastSender {
...
@@ -57,8 +57,8 @@ public class TackettMulticastSender {
for(intidx=0;idx<100;idx++)
for(intidx=0;idx<100;idx++)
{
{
xPos=xPos+(Math.cos(Math.toRadians(dir))*velocity);//computes the horixontal displacement for each movement based on velocity - this is a fixed velocity and time increment
xPos=xPos+(Math.cos(Math.toRadians(direction))*velocity);//computes the horixontal displacement for each movement based on velocity - this is a fixed velocity and time increment
yPos=yPos+(Math.sin(Math.toRadians(dir))*velocity);//computes the vertical displacement for each movement based on velocity - this is a fixed velocity and time increment
yPos=yPos+(Math.sin(Math.toRadians(direction))*velocity);//computes the vertical displacement for each movement based on velocity - this is a fixed velocity and time increment