Digital Level¶
Description¶
Module: geocompy.geo.dna
Definitions for the GeoCOM Digital level subsystem.
Types¶
GeoComDNA
Definitions¶
- class GeoComDNA(parent: GeoComType)[source]¶
Digital level subsystem of the GeoCOM protocol.
Added in version GeoCOM-LS.
- Parameters:
- parent: GeoComType¶
The parent protocol instance of this subsystem.
- autofocus() GeoComResponse[None][source]¶
RPC 29068,
DNA_StartAutofocusExecutes a camera autofocus cycle.
- Return type:
- do_measurement() GeoComResponse[None][source]¶
RPC 29036,
DNA_StartMeasurementCarries out a staff reading. The results are not returend, but retained in memory, and used by other commands.
- Return type:
- get_compass_bearing() GeoComResponse[Angle][source]¶
RPC 29072,
DNA_GetCompassDataGets the current digital magnetic compass bearing.
- Returns:
- Params:
Angle: Compass bearing.
- Return type:
- get_curvature_correction_status() GeoComResponse[bool][source]¶
RPC 29108,
DNA_GetEarthCurvatureStatusGets the current status of the Earth curvature correction.
- Returns:
- Params:
bool: Curvature correction is enabled.
- Return type:
- get_inclination_cross() GeoComResponse[Angle][source]¶
RPC 29070,
DNA_GetTiltXGets the current cross inclination.
- Returns:
- Params:
Angle: Cross inclination.
- Return type:
- get_inclination_length() GeoComResponse[Angle][source]¶
RPC 29104,
DNA_GetTiltLGets the current length inclination.
- Returns:
- Params:
Angle: Length inclination.
- Return type:
- get_job_number() GeoComResponse[int][source]¶
RPC 29109,
DNA_GetJobNumberGets the number of stored jobs and code lists.
- Returns:
- Params:
int: Number of jobs and code lists.
- Return type:
-
get_reading(wait: int =
5) GeoComResponse[tuple[float, float]][source]¶ RPC 29005,
DNA_GetMeasResultGets the current staff reading in memory. A measurement has to be completed in advance.
- Parameters:
- Returns:
- Params:
float: Staff reading.
float: Staff distance.
- Return type:
- get_staff_type() GeoComResponse[StaffType][source]¶
RPC 29126,
DNA_GetStaffLengthGets the currently set levelling staff length.
- Returns:
- Params:
StaffType: Staff length type.
- Return type:
- get_staffmode_status() GeoComResponse[bool][source]¶
RPC 29011,
DNA_GetRodPosGets the current the levelling staff reading mode.
- Returns:
- Params:
bool: Upside down reading (inverted staff).
- Return type:
- set_staff_type(staff: StaffType | str) GeoComResponse[None][source]¶
RPC 29127,
DNA_SetStaffLengthSets the levelling staff length
- Parameters:
- Return type:
- switch_curvature_correction(enabled: bool) GeoComResponse[None][source]¶
RPC 29107,
DNA_SwitchEarthCurvatureEnables or disables the Earth curvature correction.
- Parameters:
- Return type:
- switch_staffmode(inverted: bool) GeoComResponse[None][source]¶
RPC 29010,
DNA_SetRodPosSets the levelling staff reading mode.
- Parameters:
- Return type:
- wake_up() GeoComResponse[None][source]¶
RPC 29110,
DNA_WakeUpInstrumentWake up the instrument from stadby mode.
- Return type: