From 57fb8b0aac29118d0801e6d70f4f6b61e372b5a2 Mon Sep 17 00:00:00 2001
From: codyt <codyt@172.20.148.141>
Date: Wed, 28 Feb 2018 11:09:21 -0800
Subject: [PATCH] Assignment 2

---
 .../Assignments/homework2/TackettMulticastSender.java     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/projects/Assignments/homework2/TackettMulticastSender.java b/projects/Assignments/homework2/TackettMulticastSender.java
index f4f218e011..6942dfa674 100644
--- a/projects/Assignments/homework2/TackettMulticastSender.java
+++ b/projects/Assignments/homework2/TackettMulticastSender.java
@@ -23,8 +23,8 @@ public class TackettMulticastSender {
     
     public static void main(String[] args) 
     {
-        int velocity = 2;
-        int dir = 45;
+        int velocity = 3;
+        int direction = 180;
         double xPos = 0;
         double yPos = 2;
               
@@ -57,8 +57,8 @@ public class TackettMulticastSender {
             for(int idx = 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
-                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
+                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(direction))*velocity); //computes the vertical displacement for each movement based on velocity - this is a fixed velocity and time increment
                 
                 ByteArrayOutputStream baos = new ByteArrayOutputStream();
                 DataOutputStream dos = new DataOutputStream(baos);
-- 
GitLab