fjc40
83ce9b99d2
Mockoutput's main loop now pops messages off the message queue, rather than iterating over it like an array, and clearing it (this could have threading issues where the iteration starts (with e.g., 5 messages), as it is sending the messages another one is added, and then it ends up clearing the sent messages, and the unsent message.
...
Made a few quick fixes (to be tidied a bit later) to Mock.Race class. It now has this.startTime, instead of the AnimationTimers having their own starTime value. RaceStatus messages are now sent properly (still need a refactor though), so they actually send the race star time - this means that the visualizer using the mock data source displays the correct time instead of (midnight, jan 1, 1970).
Removed one of the constructors from RaceStatus - it allowed for constructing and sending essentially invalid RaceStatus messages, and simply wasn't needed.
Added a temporary title ("RaceVision - Team 7") to the visualiser - may be worth changing when we decide on a team name.
Fixed a bug with the order of operations in visualiser.StartController.countdownTimer(). Calling begin race before hiding panes caused them to never be hidden.
Mock.Event. Changed the scaleFactor to 5x for the time being - to easier testing of things like pre-race timers, countdowns, etc...
#story[778,782]
9 years ago
David Wu
61ecdc2269
Merge branch 'submission' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into submission
...
# Conflicts:
# visualiser/src/main/java/seng302/Controllers/MainController.java
# visualiser/src/main/java/seng302/Controllers/StartController.java
# visualiser/src/main/java/seng302/Model/Race.java
9 years ago
David Wu
61afe8d608
Created finish view to see when a race finishes.
...
-Implemented FinishController
-Fixed mock not sending Finish race status.
#Story[782]
9 years ago
cbt24
c038010bd2
Draws track for racing boats only to reduce information clutter.
...
- Add track point only when boat status is "Racing"
#story[782]
9 years ago
cbt24
cc824aa89a
Removed unnecessary countdownTimer from Race in visualiser module
...
- Run method now calls simulateRace directly
#story[782]
9 years ago
cbt24
a6adfb4960
Refactored RaceClock to act as central source of time and duration information throughout visualiser.
...
- StartController and RaceController use same RaceClock instance
- RaceClock updates automatically as Runnable for consistent operation
- Duration between starting and current time is now an observable property of RaceClock
#story[782]
9 years ago
hba56
12e457824d
fix for issue #5 gate lines
...
-removed drawing of lines between the marks as only the start and finish line should have a line drawn
#story[782]
9 years ago
Fan-Wu Yang
d52b09e74a
Visualiser Closes All threads on exit now.
...
- Added override for exiting the Visualiser which closes all threads: such as the TCP connection.
#story[782]
9 years ago
Fan-Wu Yang
a20dafea11
Annotations go on top and boundaries now update
...
- Fixed FPS and other annotations being hidden under the map
- Fixed boundaries not updating with the visualiser.
#story[782]
9 years ago
Fan-Wu Yang
982b47943a
Fixed blocking issue
...
- Fixed byte stream error where it would reinitilise every run
#story[782]
9 years ago
Fan-Wu Yang
b7f010a2fa
Fixed Network While loops
...
- Removed while blocking loops and replaced them with return statements
#story[782]
9 years ago
Fan-Wu Yang
565b7adaa2
Merge remote-tracking branch 'origin/race-timer-fixes' into layeredCanvas
...
# Conflicts:
# visualiser/src/main/java/seng302/Controllers/StartController.java
9 years ago
Fan-Wu Yang
862391d7ef
Canvas Layer Created
...
- Canvas is created via layering.
- Resizable canvas is now a seperate abstract class
#story[782]
9 years ago
cbt24
349bd50094
Everything works, don't ask questions
...
#story[782]
9 years ago
Erika Savell
62db7f333c
Frantically cherry-picking commit by commit
...
#story[778]
9 years ago
hba56
6888d0bddc
fixed all java doc errors
...
#story[782]
9 years ago
hba56
e409c8752c
Fix for now - Need to change
9 years ago
cbt24
89ba0f278d
Fixed StartController countdown
...
- Removed obsolete timer related code
- Consistently use RaceClock throughout StartController
#story[782]
9 years ago
cbt24
17afd9f775
Merge remote-tracking branch 'origin/splitIntoTwoModules' into splitIntoTwoModules
...
# Conflicts:
# visualiser/src/main/java/seng302/Controllers/StartController.java
9 years ago
cbt24
336a15d1a2
Fixed StartController countdown
...
- Removed obsolete timer related code
- Consistently use RaceClock throughout StartController
#story[782]
9 years ago
hba56
1f8941e37c
Merge remote-tracking branch 'origin/splitIntoTwoModules' into splitIntoTwoModules
9 years ago
hba56
ccd90b91d7
Merge remote-tracking branch 'origin/splitIntoTwoModules' into splitIntoTwoModules
9 years ago
hba56
62ecd40967
fixed all java doc errors
...
#story[782]
9 years ago
David Wu
545ef7aa7f
Fix lobby not entering race when race status is "started".
...
-Race was previously stuck in lobby screen when race status was not 2.
#Story[782]
9 years ago
cbt24
e345f08ad8
Fixed AC35 stream crashing before status sent.
...
#story[782]
9 years ago
hba56
aa1d38ca9f
removed import * lines
...
#story[782]
9 years ago
David Wu
a07a90dfea
Merge branch 'splitIntoTwoModules' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into splitIntoTwoModules
9 years ago
David Wu
88bb568ec7
Set it so the lobby view switches to race view depending on the race status passed in by the mock.
...
-Removed start button in lobby as it should be automatic.
-TODO: Synchronize the times across the whole race as they do not matching.
#Story[782]
9 years ago
cbt24
099995c41b
Fixed start controller visibility issues.
...
#story[782]
9 years ago
hba56
15179a1cdf
Merge remote-tracking branch 'origin/splitIntoTwoModules' into splitIntoTwoModules
9 years ago
hba56
810c3837c1
adding java doc tags
...
#story[782]
9 years ago
Fan-Wu Yang
43fb0df5be
Merge branch 'splitIntoTwoModules' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into splitIntoTwoModules
9 years ago
Fan-Wu Yang
874953f763
Fixed issue win ResizableRaceCanvas
...
- Issue where the boat position may mess up if it is called before the server has sent us information about hte location.
#story[782]
9 years ago
David Wu
34ef1172ce
Merge branch 'splitIntoTwoModules' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into splitIntoTwoModules
9 years ago
David Wu
bf12f77796
Set it so the lobby view switches to race view depending on the race status passed in by the mock.
...
-Removed start button in lobby as it should be automatic.
-TODO: Synchronize the times across the whole race as they do not matching.
#Story[782]
9 years ago
hba56
db43acf935
Merge branch 'splitIntoTwoModules' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into splitIntoTwoModules
9 years ago
hba56
86db16c83d
updated the connection scene to let a user add their own connection
...
-added textfields to the fxml
-added scaling to the connection scene(in mainController)
-added a newConnection method and a method for getting the wrapper anchor pane
#story[782]
9 years ago
David Wu
b60b4b257f
Remove start button from StartController.
...
#story[778]
9 years ago
cbt24
cd55052654
Merge remote-tracking branch 'origin/splitIntoTwoModules' into splitIntoTwoModules
9 years ago
cbt24
c1fa760dde
Streamlined clock handling.
...
- Set starting time from network
- Update RaceClock instance to current time from network
#story[782]
9 years ago
Erika Savell
98723b88d4
Merge branch 'splitIntoTwoModules' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into splitIntoTwoModules
9 years ago
Erika Savell
cfa6ba1c3f
Fixed speed notbeing displayed from AC35 live data
...
- Turns out the AC35 stream gives the speed in the SOG (speed over ground) section, not the boat speed section
#story[782]
9 years ago
Joseph Gardner
618073d04e
Merge remote-tracking branch 'origin/splitIntoTwoModules' into splitIntoTwoModules
9 years ago
Joseph Gardner
94ad164a45
Boat table and positions now update. #story[782]
9 years ago
Joseph Gardner
e43353c322
Boat table and positions now update. #story[782]
9 years ago
Erika Savell
d38baa9fc4
Merge branch 'splitIntoTwoModules' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into splitIntoTwoModules
9 years ago
cbt24
09483fff2c
Added blocking loop to wait
...
- waits for the InputStream to be populated for at least 15 bytes of size before reading in case of header size error potentially crashing the program.
#story[782]
9 years ago
Erika Savell
23dfc6a6bf
Fixed annotation toggles displaying behind course
...
#story[782]
9 years ago
Erika Savell
eb58581e83
Fixed velocity issues with mock data
...
-Was accidentally sending scaled velocity
#story[778]
9 years ago
Connor Taylor-Brown
8886b5db05
Fixed RegattaXMLTest.
...
#story[782]
9 years ago