Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add KeepIn and KeepOut geofence boxes #115

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

rSchwartz1
Copy link
Contributor

@rSchwartz1 rSchwartz1 commented Mar 13, 2020

Why is this being changed?

This is being changed because of Northrop's requirement of having a
KeepIn and KeepOut box for all vehicles. The KeepIn area is an area that
all vehicles must stay inside of, and will be about the size of the
mission field/runway. The KeepOut area is an area that all vehicles must
stay outside of, and will be the location of all student/Northrop
observers.

What was changed to address this problem?

In order to address the problem, two geofence buttons were created
inside of the missionWindow UI tah tallows the GCS operator to
dynamically create the two boxes individually, separating them by
color.

How was this change tested?

This change was tested with npm test.

@rSchwartz1 rSchwartz1 requested review from a team and Luis729 March 13, 2020 20:13
@rSchwartz1 rSchwartz1 added the enhancement New feature or request label Mar 13, 2020
@rSchwartz1 rSchwartz1 self-assigned this Mar 13, 2020
@coveralls
Copy link

coveralls commented Mar 13, 2020

Pull Request Test Coverage Report for Build 756

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 55.901%

Totals Coverage Status
Change from base Build 754: 0.0%
Covered Lines: 62
Relevant Lines: 101

💛 - Coveralls

src/renderer/mainWindow/map/MapContainer.tsx Outdated Show resolved Hide resolved
src/renderer/mainWindow/map/MapContainer.tsx Outdated Show resolved Hide resolved
src/renderer/missionWindow/MissionWindow.tsx Outdated Show resolved Hide resolved
src/renderer/missionWindow/MissionWindow.tsx Outdated Show resolved Hide resolved
src/renderer/missionWindow/mission.css Outdated Show resolved Hide resolved
src/types/message.ts Outdated Show resolved Hide resolved
src/types/message.ts Outdated Show resolved Hide resolved
@Luis729
Copy link
Member

Luis729 commented Mar 13, 2020

when u do ## What are the changes, only have one space in front of it, not two

just a small OCD thing of mine

src/renderer/missionWindow/MissionWindow.tsx Outdated Show resolved Hide resolved
src/types/message.ts Outdated Show resolved Hide resolved
src/types/message.ts Outdated Show resolved Hide resolved
src/types/message.ts Outdated Show resolved Hide resolved
src/renderer/missionWindow/MissionWindow.tsx Outdated Show resolved Hide resolved
@rSchwartz1 rSchwartz1 force-pushed the twoGeoBoxes branch 2 times, most recently from bae005c to 776fe53 Compare March 16, 2020 23:52
src/renderer/missionWindow/MissionWindow.tsx Outdated Show resolved Hide resolved
src/types/message.ts Outdated Show resolved Hide resolved
src/types/message.ts Outdated Show resolved Hide resolved
src/types/message.ts Outdated Show resolved Hide resolved
src/types/message.ts Show resolved Hide resolved
@Luis729
Copy link
Member

Luis729 commented Mar 17, 2020

Can we link #113 to this? This PR closes this issue

@Luis729
Copy link
Member

Luis729 commented Mar 17, 2020

Update, this PR will not close #113, that's a different issue

@rSchwartz1 rSchwartz1 force-pushed the twoGeoBoxes branch 2 times, most recently from 8fcb835 to 25972b5 Compare March 18, 2020 05:46
@Luis729 Luis729 removed the awesome label Mar 18, 2020
src/renderer/missionWindow/mission.css Outdated Show resolved Hide resolved
src/types/message.ts Outdated Show resolved Hide resolved
src/types/message.ts Outdated Show resolved Hide resolved
src/types/message.ts Show resolved Hide resolved
src/types/message.ts Outdated Show resolved Hide resolved
  ## Why is this being changed?

This is being changed because of Northrop's requirement of having a
KeepIn and KeepOut box for all vehicles. The KeepIn area is an area that
all vehicles must stay inside of, and will be about the size of the
mission field/runway. The KeepOut area is an area that all vehicles must
stay outside of, and will be the location of all student/Northrop
observers.

  ## What was changed to address this problem?

In order to address the problem, two geofence buttons were created
inside of the missionWindow UI tah tallows the GCS operator to
dynamically create the two boxes individually, separating them by
color.

  ## How was this change tested?

This change was tested with npm test.

export type Message = StartMessage | AddMissionMessage | PauseMessage | ResumeMessage | StopMessage
| GeofenceMessage | ConnectionAckMessage | UpdateMessage | POIMessage | CompleteMessage
| ConnectMessage | AcknowledgementMessage | BadMessage;
/**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my bad, lets put the extra line back between line 292 and 293, and remove the unnecessary line in 289

/**
* geofence.keepOut and geofence.keepIn are defined as an array of tuples( [[number, number]] ).
* Each tuple consists of [ [latitude, longitude] ].
*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets change the description to something like this Array of tuples that represent [latitude, longitude], and put
the description on top of keepOut and keepIn. message me if you need more clarification

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants