Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

Commit

Permalink
Fix reversed camera angle
Browse files Browse the repository at this point in the history
  • Loading branch information
ElvinC committed Feb 8, 2021
1 parent d71d1a3 commit d0fabed
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.0-alpha"
__version__ = "0.2.1-alpha"
2 changes: 1 addition & 1 deletion gyroflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1404,7 +1404,7 @@ def __init__(self):
self.input_controls_layout.addWidget(self.gyro_log_format_select)


self.fpv_tilt_text = QtWidgets.QLabel("FPV camera angle:")
self.fpv_tilt_text = QtWidgets.QLabel("Camera to gyro angle:")
self.fpv_tilt_control = QtWidgets.QDoubleSpinBox(self)
self.fpv_tilt_control.setMinimum(-90)
self.fpv_tilt_control.setMaximum(90)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "gyroflow"
version = "0.2.0"
version = "0.2.1"
description = "Gyro-assisted video stabilization"
authors = ["Elvin Chen <[email protected]>"]

Expand Down
3 changes: 3 additions & 0 deletions stabilizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -970,6 +970,9 @@ def __init__(self, videopath, calibrationfile, bblpath, fov_scale = 1.6, cam_ang
# Get gyro data
print(bblpath)

# quick fix
cam_angle_degrees = -cam_angle_degrees

if use_csv:
with open(bblpath) as bblcsv:
gyro_index = None
Expand Down

0 comments on commit d0fabed

Please sign in to comment.