Commit Graph
70 Commits
Author SHA1 Message Date
Erika Savell 067beed1e3 Attempted to write test for calls to MockOutput
-Struggling because we use animation timers to run the race, and these don't seem to work from a JUnit context

#story[778]
2017-04-30 20:55:40 +12:00
Erika Savell bbd282bd9b Set race to send out status messages (including boat location details)
- Untested, so not sure of accuracy yet

#story[778]
2017-04-30 20:18:04 +12:00
Fan-Wu Yang c3717b7fc5 Added Classes to help Visualiser
- Added Get Boat GPS Coordinate
- Added Get Heading as Degrees
- Added Get True Wind Angle as Degrees
#story[782]
2017-04-29 18:26:02 +12:00
Connor Taylor-Brown 68a8f64fd3 Generate StreamedCourse from VisualiserInput
#story[782]
2017-04-28 20:29:03 +12:00
Erika Savell e2f3abffc6 WIP adding race status messages
#story[778]
2017-04-28 18:11:28 +12:00
Fan-Wu Yang 8569d3f2dc Added a few decoders and unit converters
- Units can be converted from int to degrees as a double
- XML message now keeps the most recent XML file
#story[782]
2017-04-28 17:00:04 +12:00
hba56 5a972c855e Merge remote-tracking branch 'origin/splitIntoTwoModules' into splitIntoTwoModules 2017-04-28 14:32:32 +12:00
hba56 5bbdd6e00d updated the visualiserinput to be a thread
#story[782]
2017-04-28 14:32:25 +12:00
Fan-Wu Yang eab41315c5 Merge branch 'splitIntoTwoModules' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into splitIntoTwoModules 2017-04-28 13:44:19 +12:00
Fan-Wu Yang 760f1ed5a9 Added CRC
- CRC checking now works
#story[782]
2017-04-28 13:44:14 +12:00
hba56 db4792452f added run statement to mock thread
#story[782]
2017-04-28 13:34:50 +12:00
Erika Savell 214e26ad90 Switched port back to 4942
#story[778]
2017-04-28 13:30:19 +12:00
Erika Savell ce47818c94 Merge branch 'splitIntoTwoModules' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into splitIntoTwoModules 2017-04-28 13:27:27 +12:00
Erika Savell 9c24b0840e Changed MockInput to thread
#story[778}
2017-04-28 13:18:07 +12:00
hba56 3b13f5bac1 swapping sockets so mock is the server rather than visualiser
#story[782]
2017-04-28 13:17:01 +12:00
Erika Savell b1bbef814b Switching to use networking modules
#story[778]
2017-04-28 12:43:14 +12:00
hba56 f4e4a207be Merge branch 'networkingTest' into splitIntoTwoModules 2017-04-28 11:34:47 +12:00
fjc40 873089707d Fixed the RaceStatusDecoder not deserializing BoatStatus (a subobject of RaceStatus) properly.
RaceVisionByteEncoder.heartBeat now uses a long (and grabs the low 4 bytes from it), as the streaming spec requires a 4 byte unsigned int.
#story[778] #story[782]
2017-04-28 01:32:39 +12:00
fjc40 90f8bec415 Moved several classes from seng302.model to its own module - sharedModel (this is supposed to contain any shared data model code between mock and visualiser). Specifically, Regatta, Boat, BoatInRace, Constants, GPSCoordinate, Leg, Marker.
Updated RaceVisionByteEncoder.raceStatus to accept a Racestatus object rather than a bunch of parameters.
Added getters to RaceStatus class.
Updated some tests.
Removed Network tests from Mock, as they were duplicated.
2017-04-28 01:27:45 +12:00
fjc40 50cb31b85f Moved networking code into the network module. 2017-04-27 20:28:07 +12:00