Skip to content

Commit ce00e84

Browse files
committed
Added missing TPS1000 BAP command
1 parent ebb9690 commit ce00e84

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/geocompy/tps1000/bap.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,34 @@ class TPS1000BAP(GeoComSubsystem):
3636
3737
"""
3838

39+
def get_last_displayed_error(self) -> GeoComResponse[tuple[int, int]]:
40+
"""
41+
RPC 17003, ``BAP_GetLastDisplayedError``
42+
43+
Retrieves the number of the last displayed system error.
44+
45+
Returns
46+
-------
47+
GeoComResponse
48+
Params:
49+
- `int`: Last error, warning or info number.
50+
- `int`: Corresponding GSI error number.
51+
Error codes:
52+
- ``IVRESULT``: No error was displayed since last call.
53+
54+
Note
55+
----
56+
The error code will be reset once command is executed. A repeated
57+
call will be unsuccessful.
58+
"""
59+
return self._request(
60+
17003,
61+
parsers=(
62+
int,
63+
int
64+
)
65+
)
66+
3967
def meas_distance_angle(
4068
self,
4169
mode: MEASUREPROGRAM | str = MEASUREPROGRAM.DISTANCE

0 commit comments

Comments
 (0)