Commit Graph
1071 Commits
Author SHA1 Message Date
Fan-Wu Yang 12a9205ded Implemented Table Refresh Function
- Made refreshTable() in RaceController that refresh the boatInfoTable
- Made checkPosition() in Race call controller.refreshTable()
- Result is that the table now updates
#story [15]
2017-03-20 16:11:02 +13:00
Erika Savell 3afa13d24b Merge branch 'story9' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into story9 2017-03-20 15:47:57 +13:00
Erika Savell 66445a91a1 Loaded official AC35 competitors
- Competitors pulled from americascup.com
- Added to a list of boats in Constants class, and this list is read by RaceController

#story[9] #implement
2017-03-20 15:47:09 +13:00
David Wu e04fdc79c9 Merge remote-tracking branch 'origin/story9' into story9
# Conflicts:
#	.idea/compiler.xml
#	.idea/misc.xml
2017-03-20 15:34:12 +13:00
David Wu ca966e6c7b Implement race clock
-Added label to fxml racepane.fxml
-Added calcTime method to calculate time elapsed
-Added updateTime method in Race to update label text
-Added setTimer in RaceController to update label text

#story [16] #pair [fwy13, zwu18]
2017-03-20 15:33:37 +13:00
Erika Savell d0d4316bac Boat race finishes when all boats have crossed the line
- Added a boolean flag 'finished' to BoatInRace

#implement #story[9]
2017-03-20 15:07:20 +13:00
Erika Savell fda1e0ed61 Renaming all instances of app to team-7 and resetting pom, .idea files etc
#chore
2017-03-20 14:44:13 +13:00
Erika Savell 30b844e094 Renamed project to team-7
#chore
2017-03-20 14:35:26 +13:00
Erika 3dd343eb94 Merge branch 'story9' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into story9 2017-03-19 23:06:50 +13:00
Erika 195ee10473 Added two test boats to race
#story[9] #implement
2017-03-19 23:05:18 +13:00
Fan-Wu Yang 3f55a45362 Documented RaceMap
- Added Constructor Documentation for RaceMap
#documentation
2017-03-19 22:53:57 +13:00
Fan-Wu Yang 4e94da5e49 Merge branch 'story9' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into story9 2017-03-19 22:49:07 +13:00
Fan-Wu Yang dffd77f7a7 Filled in missing documentation.
- Added Documentation for all Classes.
#documentation
2017-03-19 22:48:58 +13:00
Erika ccaee9131d Fixing Maven issues
#chore
2017-03-19 22:45:12 +13:00
Erika cf5de5962a Loaded the rest of the legs of the bermuda course in as an example race
#story[9] #implement
2017-03-19 21:30:49 +13:00
Fan-Wu Yang 91861eb5cb Refactored BoatinRace to observable list
- Changed starting Boats into ObservableList from array
- stopped checkPosition in Race abstract class from updating the table as everytime as it is checked by a listener
- Changed array methods .length to .size() and [i] to .get() to reflect the type change.
#refactor #story[9]
2017-03-19 21:21:21 +13:00
Erika 192178760e Boat moves between legs and finishes
- Have hard coded in first two legs
-Possibly found problem with lat and longitude coordinate system being switched
#story[9]
2017-03-19 14:14:53 +13:00
Erika 8ae540a6b9 Switched bearing calculation from formula to using the geodectic calcultor -this abstracts a lot of the complexity -more accurate heading, and it is return as an azimuth rather than bearing making lat and long calculations easier #story[9] 2017-03-19 13:09:49 +13:00
Erika Savell 05c7af4abf Implemented redrawing boat with each loop
- Not complete. New gps coordinate needs work around bearing -> azimuth conversion

#implement #story[9]
2017-03-17 18:13:48 +13:00
Erika Savell e6e59e2df9 Changed POM file to recognise project as team-7
-We had two project names, 'app' and 'team-7', which was causing problems with maven

#fix #story9
2017-03-17 15:54:01 +13:00
cbt24 92c0011f80 Merge branch 'story9' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into story9 2017-03-17 13:29:53 +13:00
cbt24 b25389f212 Implemented list of boats in order of last feature passed.
- Update controller every time boats pass a mark
- Cleared info table to force update
#story [15]
2017-03-17 13:29:33 +13:00
Fan-Wu Yang b15edd49d6 Merge branch 'story9' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into story9
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2017-03-17 13:13:23 +13:00
Fan-Wu Yang 15829628f2 Fixed Map
- Changed GPS Coordinate so that latitude and longitude were on the correct orientation
- Map is now centered.
#fix
2017-03-17 13:10:29 +13:00
Erika Savell 1284cac68e Importing geotools library to calculate next coordinate for boat
-Currently getting ClassDefNotFound error
- I think one of th elibraries dependencies is visible and compile time not runtime

#story[9] #implement
2017-03-17 13:03:27 +13:00
David Wu b3b200fb02 Fixed arrow not resizing with resizable canvas
#story [14]
2017-03-17 12:30:22 +13:00
David Wu 8bb2558b7e Timer is now in race loop
-Timer is currently printing out
-Later will implement so that it is displayed on gui

#story [16]
2017-03-17 12:06:35 +13:00
Fan-Wu Yang 3751ee2488 Fixed arrow Direction, and Canvas
- Canvas will not longer not fill the entire screen
- Canvas will redraw when resized larger
- Arrow Rotation no longer rotates the entire map.
#fix
2017-03-17 11:52:54 +13:00
cbt24 85f4117666 Merge branch 'story9' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into story13
# Conflicts:
#	src/main/java/seng302/Controllers/RaceController.java
2017-03-17 11:43:30 +13:00
cbt24 456925c4c6 Implemented table view for finishing list
- Added auto-numbered placing, team name, and last mark columns
- Added dummy 'Finish' mark to race
- Added callback for race to update controller

#story [13]
2017-03-17 11:15:15 +13:00
Erika Savell 2811a09784 Merge branch 'story9' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into story9 2017-03-17 11:13:27 +13:00
Fan-Wu Yang bc4701ef32 Fixed Canvas not filling screen issue
- Created ResizableRaceCanvas Class
- Moved all draw functions to ResizableRaceCanvas
#fix
2017-03-17 10:30:40 +13:00
cbt24 d393766027 Partially completed story 13 2017-03-16 17:44:34 +13:00
David Wu ddbb77a610 Arrow is now movable around the canvas
-Arrow method is changed to take coordinates and an angle
-Arrow will now be drawn around the coordinate

#story [14]
2017-03-16 17:44:24 +13:00
Erika Savell b82ded6014 Merge branch 'story9' of https://eng-git.canterbury.ac.nz/seng302-2017/team-7 into story9 2017-03-16 16:40:53 +13:00
Erika Savell 8090108b12 Began implementing function to calculate boat's new coordinates
-Using haversine function
-current values being produced are too small

#implement #story[9]
2017-03-16 16:40:34 +13:00
Fan-Wu Yang 43c84cb677 Added draw ability to draw arrow on the canvas
- displayArrow() function created
- rotate() function created.
#story [14] #pair[fwy13, zwu18]
2017-03-16 16:14:28 +13:00
Erika Savell 2551dd7362 Added single test to debug race process 2017-03-15 22:02:13 +13:00
Erika Savell dbbfece149 Fixed resources issue 2017-03-15 17:14:30 +13:00
Erika Savell 6f509e25ea Implementing the boats movement throught a race
-Not complete! Still need to create function to calculate new coordinates
-Doesn't run because of problems with resource folder

#refactor
2017-03-15 16:59:55 +13:00
Erika Savell b73fee2cb5 Rewriting code to work with the transplanted loop
- Event has been replaced by leg, which holds the start and end coordinates, and total distance needed to pass it.
- The boats coordinates will be recalculated at each run through of the loop
- Not worrying about randomised race for now.

#refactor
2017-03-15 15:04:30 +13:00
Erika Savell 54d4ea2d03 Merge remote-tracking branch 'origin/story9' into mergePacedLoop
# Conflicts:
#	.idea/compiler.xml
#	.idea/misc.xml
2017-03-15 13:50:52 +13:00
Erika Savell 0dc5efd830 Just trying to fix my ide 2017-03-15 13:49:39 +13:00
Fan-Wu Yang ffaed5ef47 Implemented Finish Line
-Altered others drawing to utilise drawLine in RaceMap
-Added Finish Line
-Rescaled Canvas (To be fixed in the future).
#story[11]
2017-03-15 13:27:58 +13:00
David Wu ec03ec9be9 Merge remote-tracking branch 'origin/story9' into story9
# Conflicts:
#	src/main/java/seng302/Controllers/RaceController.java
2017-03-15 12:36:43 +13:00
David Wu b4baba8c15 Implemented display a gate as a line
-method created to add a line to canvas
-added points for mark, north gate, and south gate

#story [12]
2017-03-15 12:35:14 +13:00
Fan-Wu Yang 5108c0eaf5 Implemented Finish Line to show
- shows a dark red line with 2 thickness
- shows two rectangles at the ends of each line
#story [11]
2017-03-15 12:33:56 +13:00
cbt24 6c3b7ccee7 Implemented start line in RaceController
- Added coordinates as given in Story 10
- Displayed start line
- Marked line ends with circles
#story [10]
2017-03-15 12:33:55 +13:00
cbt24 6ca26d5bb1 Implemented race map usage by JavaFX controller
- Renamed Map to RaceMap
- Fixed RaceMap.convertGPS bug
- Defined canvas coordinates in terms of map GPS

#story [9] #pair [cbt24,fwy13,zwu18]
2017-03-15 12:19:41 +13:00
Fan-Wu Yang 0729ae719d Implemented Display a Boat as a circle.
- created displayBoat function which will display a circle at a Coordinate.
#story[9] #pair[cbt24, fwy13]
2017-03-15 11:55:11 +13:00