Skip to content

Commit bc90dbc

Browse files
committed
GPS.md: add TOC.
1 parent e0bf028 commit bc90dbc

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

v3/as_drivers/as_GPS/as_GPS_time.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import utime
1212
import math
1313
from .as_tGPS import GPS_Timer
14-
from primitives.message import Message
14+
from threadsafe.message import Message
1515

1616
# Hardware assumptions. Change as required.
1717
PPS_PIN = pyb.Pin.board.X3

v3/as_drivers/as_GPS/as_rwGPS_time.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import uasyncio as asyncio
1616
from uasyncio import Event
17-
from primitives.message import Message
17+
from threadsafe.message import Message
1818
import pyb
1919
import utime
2020
import math

v3/docs/GPS.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ which communicate with the host via a UART. GPS [NMEA-0183] sentence parsing is
55
based on this excellent library [micropyGPS].
66

77
The code requires uasyncio V3. Some modules can run under CPython: doing so
8-
will require Python V3.8 or later.
8+
requires Python V3.8 or later.
99

1010
The main modules have been tested on Pyboards and RP2 (Pico and Pico W). Since
1111
the interface is a standard UART it is expected that the modules will work on
@@ -22,7 +22,7 @@ may be reduced on some platforms.
2222
1.2 [Comparison with micropyGPS](./GPS.md#12-comparison-with-micropygps)
2323
1.3 [Overview](./GPS.md#13-overview)
2424
2. [Installation](./GPS.md#2-installation)
25-
2.1 [Wiring])(./GPS.md#21-wiring)
25+
2.1 [Wiring](./GPS.md#21-wiring)
2626
2.2 [Library installation](GPS.md#22-library-installation)
2727
2.3 [Dependency](./GPS.md#23-dependency)
2828
3. [Basic Usage](./GPS.md-basic-usage)
@@ -37,7 +37,7 @@ may be reduced on some platforms.
3737
4.3 [Public coroutines](./GPS.md#43-public-coroutines)
3838
     4.3.1 [Data validity](./GPS.md#431-data-validity)
3939
     4.3.2 [Satellite data](./GPS.md#432-satellite-data)
40-
4.4 [Public bound variables and properties](./GPS.md#44-public-bound-variables and properties)
40+
4.4 [Public bound variables and properties](./GPS.md#44-public-bound-variables-and-properties)
4141
     4.4.1 [Position and course](./GPS.md#441-position-and-course)
4242
     4.4.2 [Statistics and status](./GPS.md#442-statistics-and-status)
4343
     4.4.3 [Date and time](./GPS.md#443-date-and-time)
@@ -112,8 +112,6 @@ changes.
112112
* Hooks are provided for user-designed subclassing, for example to parse
113113
additional message types.
114114

115-
###### [Main V3 README](../README.md)
116-
117115
## 1.3 Overview
118116

119117
The `AS_GPS` object runs a coroutine which receives [NMEA-0183] sentences from
@@ -160,7 +158,7 @@ time.sleep(1)
160158
The library is implemented as a Python package. To install copy the following
161159
directories and their contents to the target hardware:
162160
1. `as_drivers/as_GPS`
163-
2. `primitives`
161+
2. `threadsafe` Required for timing applications only.
164162

165163
On platforms with an underlying OS such as the Raspberry Pi ensure that the
166164
directories are on the Python path and that the Python version is 3.8 or later.
@@ -368,6 +366,8 @@ These are grouped below by the type of data returned.
368366
`as_GPS.LONG` returns a string of form 'January 1st, 2014'.
369367
Note that this requires the file `as_GPS_utils.py`.
370368

369+
##### [Contents](./GPS.md#1-contents)
370+
371371
## 4.3 Public coroutines
372372

373373
### 4.3.1 Data validity
@@ -555,6 +555,7 @@ async def test():
555555

556556
asyncio.run(test())
557557
```
558+
##### [Contents](./GPS.md#1-contents)
558559

559560
## 5.3 GPS class Constructor
560561

@@ -823,6 +824,8 @@ Optional positional args:
823824
receives the `GPS_RWTimer` instance as the first arg, followed by any args in
824825
the tuple.
825826

827+
##### [Contents](./GPS.md#1-contents)
828+
826829
## 6.4 Public methods
827830

828831
The methods that return an accurate GPS time of day run as fast as possible. To
@@ -903,6 +906,8 @@ runs.
903906
some limits to the absolute accuracy of the `get_t_split` method as discussed
904907
above.
905908

909+
##### [Contents](./GPS.md#1-contents)
910+
906911
# 7. Supported Sentences
907912

908913
* GPRMC GP indicates NMEA sentence (US GPS system).
@@ -1067,6 +1072,8 @@ On RAM-constrained devices `as_GPS_utils.py` may be omitted in which case the
10671072
* `ast_pbrw.py` Test/demo script.
10681073

10691074
## 10.3 Files for timing applications
1075+
1076+
Note that these require the `threadsafe` directory to be copied to the target.
10701077

10711078
* `as_tGPS.py` The library. Provides `GPS_Timer` and `GPS_RWTimer` classes.
10721079
* `as_GPS_time.py` Test scripts for read only driver.

0 commit comments

Comments
 (0)