-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-Minor bug fixes. -Starting development of Thread_Controller which will be used to control GPIO pins and LEDs on Drones. Could be used to enable a PreventFlight switch to maintain the drone. Process creation could also be added, and implemented in Server_Starter. -Improved performance of AStar and CAStar by merging some if statements. Memory usage is also improved for multiple searches. -Moved Coordinate object into own file. This is to reduce fragmentation of features as many modules require it.
- Loading branch information
Scratchcat1
authored
Sep 19, 2017
1 parent
b4a1296
commit d223a1c
Showing
12 changed files
with
4,031 additions
and
3,551 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
class Coordinate: | ||
def __init__(self,x,y,z=0,xSize=0,ySize=0,zSize=0): | ||
self.x = x | ||
self.y = y | ||
self.z = z | ||
self.xSize = xSize | ||
self.ySize = ySize | ||
self.zSize = zSize | ||
|
||
def Get_X(self): | ||
return self.x | ||
def Get_Y(self): | ||
return self.y | ||
def Get_Z(self): | ||
return self.z | ||
|
||
def Print(self): | ||
print("Coordinate:") | ||
print("X: {:<8} xSize:{:<8}".format(round(self.x,7),self.xSize)) | ||
print("Y: {:<8} ySize:{:<8}".format(round(self.y,7),self.ySize)) | ||
print("Z: {:<8} zSize:{:<8}".format(round(self.z,7),self.zSize)) | ||
|
||
def __str__(self): | ||
return str((round(self.x,8),round(self.y,8),round(self.z,8))) |
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.