Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pre commit stuff
Browse files Browse the repository at this point in the history
guilhermedemouraa committed May 14, 2024
1 parent bfc063b commit 7ec09ab
Showing 2 changed files with 21 additions and 6 deletions.
13 changes: 10 additions & 3 deletions py/examples/file_reader_gps/main.py
Original file line number Diff line number Diff line change
@@ -25,7 +25,9 @@

def print_relative_position_frame(msg):
"""Prints the relative position frame message.
Args: msg: The relative position frame message."""
Args: msg: The relative position frame message.
"""
print("RELATIVE POSITION FRAME \n")
print(f"Message stamp: {msg.stamp.stamp}")
print(f"GPS time: {msg.gps_time.stamp}")
@@ -43,7 +45,9 @@ def print_relative_position_frame(msg):

def print_gps_frame(msg):
"""Prints the gps frame message.
Args: msg: The gps frame message."""
Args: msg: The gps frame message.
"""
print("PVT FRAME \n")
print(f"Message stamp: {msg.stamp.stamp}")
print(f"GPS time: {msg.gps_time.stamp}")
@@ -57,9 +61,12 @@ def print_gps_frame(msg):
print(f"P DOP: {msg.p_dop}")
print("-" * 50)


def print_ecef_frame(msg):
"""Prints the ecef frame message.
Args: msg: The ecef frame message."""
Args: msg: The ecef frame message.
"""
print("ECEF FRAME \n")
print(f"Message stamp: {msg.stamp.stamp}")
print(f"GPS time: {msg.gps_time.stamp}")
14 changes: 11 additions & 3 deletions py/examples/gps_client/main.py
Original file line number Diff line number Diff line change
@@ -26,7 +26,9 @@

def print_relative_position_frame(msg):
"""Prints the relative position frame message.
Args: msg: The relative position frame message."""
Args: msg: The relative position frame message.
"""
print("RELATIVE POSITION FRAME \n")
print(f"Message stamp: {msg.stamp.stamp}")
print(f"GPS time: {msg.gps_time.stamp}")
@@ -44,7 +46,9 @@ def print_relative_position_frame(msg):

def print_gps_frame(msg):
"""Prints the gps frame message.
Args: msg: The gps frame message."""
Args: msg: The gps frame message.
"""
print("PVT FRAME \n")
print(f"Message stamp: {msg.stamp.stamp}")
print(f"GPS time: {msg.gps_time.stamp}")
@@ -58,9 +62,12 @@ def print_gps_frame(msg):
print(f"P DOP: {msg.p_dop}")
print("-" * 50)


def print_ecef_frame(msg):
"""Prints the ecef frame message.
Args: msg: The ecef frame message."""
Args: msg: The ecef frame message.
"""
print("ECEF FRAME \n")
print(f"Message stamp: {msg.stamp.stamp}")
print(f"GPS time: {msg.gps_time.stamp}")
@@ -71,6 +78,7 @@ def print_ecef_frame(msg):
print(f"Flags: {msg.flags}")
print("-" * 50)


async def main(service_config_path: Path) -> None:
"""Run the gps service client.

0 comments on commit 7ec09ab

Please sign in to comment.