-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from nasa/OCEANWATER-886-use-new-discard-deliver
PLEXIL uses new Discard/Deliver actions
- Loading branch information
Showing
14 changed files
with
150 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// The Notices and Disclaimers for Ocean Worlds Autonomy Testbed for Exploration | ||
// Research and Simulation can be found in README.md in the root directory of | ||
// this repository. | ||
|
||
// Discard material in the scoop to the given point. This is used for both | ||
// discarding the sample to its receptacle (which has specific coordinates) and | ||
// dumping tailings from trench digging. | ||
|
||
#include "plan-interface.h" | ||
|
||
Discard: | ||
{ | ||
In Real X; | ||
In Real Y; | ||
In Real Z; | ||
|
||
Boolean FaultDetected = false; | ||
|
||
PostCondition !Lookup(ArmFault); | ||
|
||
if Lookup(ArmFault) | ||
{ | ||
log_error ("Command Discard not sent to lander due to active arm fault(s)."); | ||
FaultDetected = true; | ||
} | ||
|
||
SendDiscard: | ||
{ | ||
Start !Lookup(ArmFault); | ||
|
||
if FaultDetected | ||
{ | ||
log_info ("Arm fault(s) resolved, sending Discard command to lander..."); | ||
} | ||
|
||
SynchronousCommand discard (X, Y, Z); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// The Notices and Disclaimers for Ocean Worlds Autonomy Testbed for Exploration | ||
// Research and Simulation can be found in README.md in the root directory of | ||
// this repository. | ||
|
||
// A simple test that collects a sample, discards it, collects again, | ||
// and delivers it. | ||
|
||
#include "plan-interface.h" | ||
|
||
TestDiscardDeliver: | ||
{ | ||
Real GP = -0.155; // Ground position | ||
log_info ("Starting TestDiscardDeliver..."); | ||
LibraryCall Unstow(); | ||
LibraryCall GuardedMove (X=1.75, Y=0.1, Z=0.2, DirX=0.1, DirY=0.1, DirZ=0.9, | ||
SearchDistance=0.7); | ||
LibraryCall Grind (X = 1.75, Y = 0.1, Depth = 0.045, | ||
Length = 0.5, Parallel = false, | ||
GroundPos = GP); | ||
LibraryCall DigCircular (X = 1.75, Y = 0.1, Depth = 0.045, | ||
GroundPos = GP, Parallel = false); | ||
LibraryCall Discard (X = 1.5, Y = 0.8, Z = 0.65); | ||
LibraryCall DigCircular (X = 1.75, Y = 0.1, Depth = 0.045, | ||
GroundPos = GP, Parallel = false); | ||
LibraryCall Deliver (); | ||
LibraryCall Unstow(); // For safety in stowing | ||
LibraryCall Stow(); | ||
log_info ("TestDiscardDeliver finished."); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.