Measurements¶
Description¶
Module: geocompy.gsi.dna.measurements
Definitions for the DNA measurements subsystem.
Types¶
GsiOnlineDNAMeasurements
Definitions¶
- class GsiOnlineDNAMeasurements(parent: GsiOnlineType)[source]¶
Measurements subsystem of the DNA GSI Online protocol.
This subsystem gives access to measurement data. The communication (both get and set) is done through GSI data words.
- Parameters:
- parent: GsiOnlineType¶
The parent protocol instance of this subsystem.
- get_date() GsiOnlineResponse[datetime][source]¶
GET 561Gets the current month and day.
- Returns:
Current month and day wrapped in a datetime object (year should be ignored).
- Return type:
- get_day_time() GsiOnlineResponse[datetime][source]¶
GET 19Gets the current month, day and time.
- Returns:
Month, day and time wrapped in a datetime object (year should be ignored).
- Return type:
- get_distance() GsiOnlineResponse[float][source]¶
GET 32Measures the distance from the aimed levelling staff in meters.
- Returns:
Distance.
- Return type:
- get_full_date() GsiOnlineResponse[datetime][source]¶
GET 17Gets the current full date (year, month, day).
- Returns:
Full date.
- Return type:
- get_instrument_type() GsiOnlineResponse[str][source]¶
GET 13Gets the instrument type name.
- Returns:
Instrument type.
- Return type:
- get_note() GsiOnlineResponse[str][source]¶
GET 71Gets the current point note/remark.
- Returns:
Point note.
- Return type:
- get_point_id() GsiOnlineResponse[str][source]¶
GET 11Gets the current running point ID.
- Returns:
Point ID.
- Return type:
- get_reading() GsiOnlineResponse[float][source]¶
GET 330Takes a reading on the aimed levelling staff in meters.
- Returns:
Staff reading.
- Return type:
- get_serialnumber() GsiOnlineResponse[int][source]¶
GET 12Gets the serial number of the instrument.
- Returns:
Serial number.
- Return type:
- get_software_version() GsiOnlineResponse[float][source]¶
GET 599Gets the software version of the instrument.
- Returns:
Software version as float (integer part is major, fractional part is minor version with 4 decimals maximum).
- Return type:
- get_temperature() GsiOnlineResponse[float][source]¶
GET 95Measures and returns the internal temperature in Celsius degrees.
- Returns:
Internal temperature.
- Return type:
- get_time() GsiOnlineResponse[datetime][source]¶
GET 560Gets the current time.
- Returns:
Current time wrapped in a datetime object (year, month and day should be ignored).
- Return type:
- get_year() GsiOnlineResponse[datetime][source]¶
GET 562Gets the current year.
- Returns:
Current year wrapped in a datetime object (month and day should be ignored).
- Return type:
- set_date(date: datetime) GsiOnlineResponse[bool][source]¶
PUT 561Sets the month and day.
- Parameters:
- Returns:
Success of the change.
- Return type:
- set_note(note: str) GsiOnlineResponse[bool][source]¶
PUT 71Sets the point note/remark.
- Parameters:
- Returns:
Success of the change.
- Return type:
- set_point_id(ptid: str) GsiOnlineResponse[bool][source]¶
PUT 11Sets the running point ID.
- Parameters:
- Returns:
Success of the change.
- Return type:
- set_time(time: datetime) GsiOnlineResponse[bool][source]¶
PUT 560Sets the hours, minutes and seconds on the instrument.
- Parameters:
- Returns:
Success of the change.
- Return type: