Skip to content

Commit

Permalink
KML overlay, Hexagon Control, Performance settings tutorial completed (
Browse files Browse the repository at this point in the history
…#1144)

* Kml, hexagon control, and performance settings tutorial completed

* Improved the screenrecorder class fixing some bugs, improved restricted size recording of windows

* Minor changes in screen recorder class

* made small changes in the header files of scipt and other minor changes in hexagon tutorial

* Made the code more efficient by small changes in  hexagon control tutorial
  • Loading branch information
risehr authored Aug 17, 2021
1 parent bd3f251 commit df9aa18
Show file tree
Hide file tree
Showing 28 changed files with 1,011 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"_comment2": "takeoff_weight: maximum weight for takeoff (lbs)",
"_comment3": "empty_weight: aircraft weight without fuel (lbs)",
"_comment4": "climb/descent: weight(lbs), altitude(ft), duration(min), distance(nm), fuel(lbs)",
"_comment5": "cruise: weight(lbs), altitude(ft), total air speed(nm/h), fuel flow(lbs/h)"
"_comment5": "cruise: weight(lbs), altitude(ft), total air speed(nm/h), fuel flow(lbs/h)",
"_comment6": "ceiling: polynomial coeficients for relating weight (lbs) with peak flightlevel (hft). Leftmost coefficient is the intercept."
}
2 changes: 1 addition & 1 deletion tutorials/cursor.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
mss.tutorials.cursor
~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~
This python script generates the png image of the cursor for linux systems and store it in
'tutorials/cursor_image.png.' Then, this image is used inside screenrecorder.py file. This displays
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorials/pictures/hexagon_control/linux/radius.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions tutorials/screenrecorder.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
mss.tutorials.screenrecorder
~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This python script is meant for recording the screens while automated tutorials are running.
Expand Down Expand Up @@ -85,8 +85,8 @@ def get_fps(self):
screen refresh rate of your monitor (if considerable in the program) and sets the FPS.
"""
with mss.mss() as sct:
bbox = {"top": self.x_start, "left": self.y_start, "width": self.width - self.x_start,
"height": self.height}
bbox = {"top": self.y_start, "left": self.x_start, "width": self.width - self.x_start,
"height": self.height - self.y_start}
fps = 0
last_time = time.time()
while time.time() - last_time < 1:
Expand Down Expand Up @@ -117,8 +117,8 @@ def capture(self):
mouse_pointer = None
width, height = None, None
with mss.mss() as sct:
bbox = {"top": self.x_start, "left": self.y_start, "width": self.width - self.x_start,
"height": self.height}
bbox = {"top": self.y_start, "left": self.x_start, "width": self.width - self.x_start,
"height": self.height - self.y_start}
self.start_rec_time = time.time()
frame_time_ms = 1000 / self.fps
frames = 0
Expand Down
Loading

0 comments on commit df9aa18

Please sign in to comment.