1
0
mirror of https://github.com/craigerl/aprsd.git synced 2026-06-06 16:14:57 -04:00

Reworked README and documentation

This commit is contained in:
2025-12-10 14:57:12 -05:00
parent 23ad059707
commit 5ece2a10ef
19 changed files with 4021 additions and 831 deletions
+9 -10
View File
@@ -180,20 +180,19 @@ def load_entry_points(group):
def calculate_initial_compass_bearing(point_a, point_b):
"""
Calculates the bearing between two points.
The formulae used is the following:
"""Calculates the bearing between two points.
The formulae used is the following::
θ = atan2(sin(Δlong).cos(lat2),
cos(lat1).sin(lat2) sin(lat1).cos(lat2).cos(Δlong))
:Parameters:
- `pointA: The tuple representing the latitude/longitude for the
:param point_a: The tuple representing the latitude/longitude for the
first point. Latitude and longitude must be in decimal degrees
- `pointB: The tuple representing the latitude/longitude for the
:param point_b: The tuple representing the latitude/longitude for the
second point. Latitude and longitude must be in decimal degrees
:Returns:
The bearing in degrees
:Returns Type:
float
:returns: The bearing in degrees
:rtype: float
"""
if (type(point_a) != tuple) or (type(point_b) != tuple): # noqa: E721
raise TypeError('Only tuples are supported as arguments')
+2 -1
View File
@@ -136,7 +136,8 @@ def no_trace(f):
Use this decorator on methods that should not be wrapped with trace_method
by the TraceWrapperMetaclass.
Example:
Example::
class MyClass(metaclass=TraceWrapperMetaclass):
def traced_method(self):
pass # This will be wrapped