Showing preview only (687K chars total). The displayed content is truncated. Use the JSON API for full output.
Repository: illarionov/RtkGps
Branch: master
Commit: 2f281eebbb66
Files: 186
Total size: 638.9 KB
Directory structure:
gitextract_a_utxn8r/
├── .classpath
├── .factorypath
├── .gitignore
├── .gitmodules
├── .project
├── .settings/
│ ├── org.eclipse.jdt.apt.core.prefs
│ ├── org.eclipse.jdt.core.prefs
│ ├── org.eclipse.jdt.ui.prefs
│ ├── org.eclipse.ltk.core.refactoring.prefs
│ ├── org.eclipse.wst.validation.prefs
│ └── org.eclipse.wst.xml.core.prefs
├── AndroidManifest.xml
├── LICENSE.txt
├── README.md
├── assets/
│ ├── commands/
│ │ ├── cres_raw_10hz.cmd
│ │ ├── cres_raw_1hz.cmd
│ │ ├── javad_raw_10hz.cmd
│ │ ├── javad_raw_1hz.cmd
│ │ ├── javad_raw_5hz.cmd
│ │ ├── lexr_inittime.cmd
│ │ ├── oem3_com1setup.cmd
│ │ ├── oem3_com2setup.cmd
│ │ ├── oem3_raw_10hz.cmd
│ │ ├── oem3_raw_1hz.cmd
│ │ ├── oem3_rtcm2_10hz.cmd
│ │ ├── oem3_rtcm2_1hz.cmd
│ │ ├── oem3_rtk_10hz.cmd
│ │ ├── oem3_rtk_1hz.cmd
│ │ ├── oem4_raw_10hz.cmd
│ │ ├── oem4_raw_1hz.cmd
│ │ ├── oem4_raw_20hz.cmd
│ │ ├── oem4_raw_5hz.cmd
│ │ ├── oem4_rtcm2_10hz.cmd
│ │ ├── oem4_rtcm2_1hz.cmd
│ │ ├── oem4_rtcm3_10hz.cmd
│ │ ├── oem4_rtcm3_1hz.cmd
│ │ ├── oem4_setcom115200.cmd
│ │ ├── oem6_raw_1hz.cmd
│ │ ├── sirf_raw_1hz.cmd
│ │ ├── skytraq_raw_10hz.cmd
│ │ ├── skytraq_raw_1hz.cmd
│ │ ├── skytraq_raw_20hz.cmd
│ │ ├── skytraq_raw_5hz.cmd
│ │ ├── ubx_raw_10hz.cmd
│ │ ├── ubx_raw_1hz.cmd
│ │ └── ubx_raw_5hz.cmd
│ └── licenses.html
├── build.gradle
├── build.xml
├── jni/
│ ├── Android.mk
│ ├── Application.mk
│ ├── gtime.c
│ ├── log.c
│ ├── prcopt.c
│ ├── rtkcommon.c
│ ├── rtkjni.c
│ ├── rtkjni.h
│ ├── rtklib.mk
│ ├── rtkserver.c
│ └── solopt.c
├── libs/
│ ├── acra-4.5.0.jar
│ ├── android-support-v13.jar
│ ├── butterknife-1.4.0.jar
│ ├── jsr305-2.0.1.jar
│ ├── osmdroid-android-3.0.11-SNAPSHOT.jar
│ ├── osmdroid-android-3.0.11-SNAPSHOT.jar.properties
│ ├── osmdroid-third-party-3.0.10.jar
│ ├── osmdroid-third-party-3.0.10.jar.properties
│ ├── proguardannotations.jar
│ └── slf4j-android-1.6.1-RC1.jar
├── proguard-annotations.txt
├── proguard-project.txt
├── project.properties
├── res/
│ ├── drawable/
│ │ └── map_point_marker.xml
│ ├── layout/
│ │ ├── activity_about.xml
│ │ ├── activity_input_stream_settings.xml
│ │ ├── activity_main.xml
│ │ ├── activity_settings.xml
│ │ ├── activity_startup_shutdown_commands.xml
│ │ ├── activity_station_position.xml
│ │ ├── activity_stream_settings_dialog.xml
│ │ ├── fragment_map.xml
│ │ ├── fragment_status.xml
│ │ ├── include_status_view_widget.xml
│ │ ├── navigation_drawer.xml
│ │ ├── select_solution_view_item.xml
│ │ └── view_solution.xml
│ ├── layout-land/
│ │ └── fragment_status.xml
│ ├── menu/
│ │ ├── activity_main.xml
│ │ ├── fragment_map.xml
│ │ └── fragment_status.xml
│ ├── values/
│ │ ├── attrs.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ ├── values-sw600dp/
│ │ └── dimens.xml
│ └── xml/
│ ├── input_stream_settings_base.xml
│ ├── input_stream_settings_correction.xml
│ ├── input_stream_settings_rover.xml
│ ├── log_stream_settings.xml
│ ├── output_stream_settings.xml
│ ├── preference_headers.xml
│ ├── processing_options1.xml
│ ├── solution_output_settings.xml
│ ├── stream_bluetooth_settings.xml
│ ├── stream_file_settings.xml
│ ├── stream_ntrip_client_settings.xml
│ ├── stream_tcp_client_settings.xml
│ ├── stream_usb_settings.xml
│ └── usb_device_filter.xml
└── src/
└── ru0xdc/
├── rtkgps/
│ ├── AboutActivity.java
│ ├── BluetoothToRtklib.java
│ ├── MainActivity.java
│ ├── MapFragment.java
│ ├── ResourceProxyImpl.java
│ ├── RtkGps.java
│ ├── RtkNaviService.java
│ ├── RtklibLocalSocketThread.java
│ ├── SolutionPathOverlay.java
│ ├── StatusFragment.java
│ ├── UsbToRtklib.java
│ ├── settings/
│ │ ├── InputBaseFragment.java
│ │ ├── InputCorrectionFragment.java
│ │ ├── InputRoverFragment.java
│ │ ├── LogBaseFragment.java
│ │ ├── LogCorrectionFragment.java
│ │ ├── LogRoverFragment.java
│ │ ├── OutputSolution1Fragment.java
│ │ ├── OutputSolution2Fragment.java
│ │ ├── ProcessingOptions1Fragment.java
│ │ ├── SettingsActivity.java
│ │ ├── SettingsHelper.java
│ │ ├── SolutionOutputSettingsFragment.java
│ │ ├── StartupShutdownSettingsActivity.java
│ │ ├── StationPositionActivity.java
│ │ ├── StreamBluetoothFragment.java
│ │ ├── StreamDialogActivity.java
│ │ ├── StreamFileClientFragment.java
│ │ ├── StreamNtripClientFragment.java
│ │ ├── StreamSettingsActivity.java
│ │ ├── StreamTcpClientFragment.java
│ │ ├── StreamUsbFragment.java
│ │ └── widget/
│ │ ├── EarthTideCorrectionPreference.java
│ │ ├── EnumListPreference.java
│ │ ├── EphemerisOptionPreference.java
│ │ ├── IonosphereCorrectionPreference.java
│ │ ├── MultiSelectListPreferenceWorkaround.java
│ │ ├── PositioningModePreference.java
│ │ ├── SolutionFormatPreference.java
│ │ ├── StartupShutdownCommandsPreference.java
│ │ ├── StreamFormatPreference.java
│ │ ├── StreamTypePreference.java
│ │ └── TroposphereCorrectionPreference.java
│ ├── usb/
│ │ ├── SerialLineConfiguration.java
│ │ ├── UsbAcmController.java
│ │ ├── UsbPl2303Controller.java
│ │ └── UsbSerialController.java
│ └── view/
│ ├── GTimeView.java
│ ├── GpsSkyView.java
│ ├── SnrView.java
│ ├── SolutionView.java
│ └── StreamIndicatorsView.java
└── rtklib/
├── GTime.java
├── ProcessingOptions.java
├── RtkCommon.java
├── RtkControlResult.java
├── RtkServer.java
├── RtkServerObservationStatus.java
├── RtkServerSettings.java
├── RtkServerStreamStatus.java
├── Solution.java
├── SolutionOptions.java
└── constants/
├── Constants.java
├── EarthTideCorrectionType.java
├── EphemerisOption.java
├── GeoidModel.java
├── IHasRtklibId.java
├── IonosphereOption.java
├── NavigationSystem.java
├── PositioningMode.java
├── SolutionFormat.java
├── SolutionStatus.java
├── StationPositionType.java
├── StreamFormat.java
├── StreamType.java
├── TimeSystem.java
└── TroposphereOption.java
================================================
FILE CONTENTS
================================================
================================================
FILE: .classpath
================================================
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="src" path=".apt_generated">
<attributes>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
================================================
FILE: .factorypath
================================================
<factorypath>
<factorypathentry kind="PLUGIN" id="org.eclipse.jst.ws.annotations.core" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="WKSPJAR" id="/RtkGps/libs/butterknife-1.4.0.jar" enabled="true" runInBatchMode="false"/>
</factorypath>
================================================
FILE: .gitignore
================================================
*~
*.swp
/bin
/trash
/gen
/local.properties
/.apt_generated/
/.lint4jprefs
/lint.xml
/proguard/
/projectSet.psf
/obj/
/libs/armeabi-v7a/
/libs/armeabi/
/libs/x86/
/.gradle
/build
================================================
FILE: .gitmodules
================================================
[submodule "jni/RTKLIB"]
path = jni/RTKLIB
url = git@github.com:littlesavage/RTKLIB.git
[submodule "jni/simonlynen_android_libs"]
path = jni/simonlynen_android_libs
url = git://github.com/simonlynen/android_libs.git
[submodule "vendor/OsmDroid"]
path = vendor/OsmDroid
url = git@github.com:illarionov/OsmDroid.git
================================================
FILE: .project
================================================
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>RtkGps</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
================================================
FILE: .settings/org.eclipse.jdt.apt.core.prefs
================================================
eclipse.preferences.version=1
org.eclipse.jdt.apt.aptEnabled=true
org.eclipse.jdt.apt.genSrcDir=.apt_generated
org.eclipse.jdt.apt.reconcileEnabled=true
================================================
FILE: .settings/org.eclipse.jdt.core.prefs
================================================
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.processAnnotations=enabled
org.eclipse.jdt.core.compiler.source=1.6
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
org.eclipse.jdt.core.formatter.alignment_for_assignment=0
org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
org.eclipse.jdt.core.formatter.blank_lines_after_package=1
org.eclipse.jdt.core.formatter.blank_lines_before_field=0
org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
org.eclipse.jdt.core.formatter.blank_lines_before_method=1
org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
org.eclipse.jdt.core.formatter.blank_lines_before_package=1
org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=true
org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=true
org.eclipse.jdt.core.formatter.comment.format_block_comments=true
org.eclipse.jdt.core.formatter.comment.format_header=false
org.eclipse.jdt.core.formatter.comment.format_html=true
org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
org.eclipse.jdt.core.formatter.comment.format_line_comments=true
org.eclipse.jdt.core.formatter.comment.format_source_code=true
org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=do not insert
org.eclipse.jdt.core.formatter.comment.line_length=80
org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
org.eclipse.jdt.core.formatter.compact_else_if=true
org.eclipse.jdt.core.formatter.continuation_indentation=2
org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
org.eclipse.jdt.core.formatter.indent_empty_lines=false
org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=true
org.eclipse.jdt.core.formatter.indentation.size=4
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=insert
org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert
org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=insert
org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
org.eclipse.jdt.core.formatter.join_lines_in_comments=true
org.eclipse.jdt.core.formatter.join_wrapped_lines=false
org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
org.eclipse.jdt.core.formatter.lineSplit=100
org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
org.eclipse.jdt.core.formatter.tabulation.char=space
org.eclipse.jdt.core.formatter.tabulation.size=4
org.eclipse.jdt.core.formatter.use_on_off_tags=false
org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
================================================
FILE: .settings/org.eclipse.jdt.ui.prefs
================================================
cleanup_settings_version=2
eclipse.preferences.version=1
editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
formatter_profile=_Android
formatter_settings_version=12
org.eclipse.jdt.ui.ignorelowercasenames=true
org.eclipse.jdt.ui.importorder=android;com;dalvik;gov;junit;libcore;net;org;java;javax;
org.eclipse.jdt.ui.ondemandthreshold=99
org.eclipse.jdt.ui.staticondemandthreshold=99
sp_cleanup.add_default_serial_version_id=true
sp_cleanup.add_generated_serial_version_id=false
sp_cleanup.add_missing_annotations=true
sp_cleanup.add_missing_deprecated_annotations=true
sp_cleanup.add_missing_methods=false
sp_cleanup.add_missing_nls_tags=false
sp_cleanup.add_missing_override_annotations=true
sp_cleanup.add_missing_override_annotations_interface_methods=true
sp_cleanup.add_serial_version_id=false
sp_cleanup.always_use_blocks=true
sp_cleanup.always_use_parentheses_in_expressions=false
sp_cleanup.always_use_this_for_non_static_field_access=false
sp_cleanup.always_use_this_for_non_static_method_access=false
sp_cleanup.convert_to_enhanced_for_loop=false
sp_cleanup.correct_indentation=false
sp_cleanup.format_source_code=false
sp_cleanup.format_source_code_changes_only=false
sp_cleanup.make_local_variable_final=false
sp_cleanup.make_parameters_final=false
sp_cleanup.make_private_fields_final=true
sp_cleanup.make_type_abstract_if_missing_method=false
sp_cleanup.make_variable_declarations_final=false
sp_cleanup.never_use_blocks=false
sp_cleanup.never_use_parentheses_in_expressions=true
sp_cleanup.on_save_use_additional_actions=true
sp_cleanup.organize_imports=true
sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
sp_cleanup.remove_private_constructors=true
sp_cleanup.remove_trailing_whitespaces=true
sp_cleanup.remove_trailing_whitespaces_all=true
sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
sp_cleanup.remove_unnecessary_casts=true
sp_cleanup.remove_unnecessary_nls_tags=false
sp_cleanup.remove_unused_imports=true
sp_cleanup.remove_unused_local_variables=false
sp_cleanup.remove_unused_private_fields=true
sp_cleanup.remove_unused_private_members=false
sp_cleanup.remove_unused_private_methods=true
sp_cleanup.remove_unused_private_types=true
sp_cleanup.sort_members=false
sp_cleanup.sort_members_all=false
sp_cleanup.use_blocks=false
sp_cleanup.use_blocks_only_for_return_and_throw=false
sp_cleanup.use_parentheses_in_expressions=false
sp_cleanup.use_this_for_non_static_field_access=false
sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
sp_cleanup.use_this_for_non_static_method_access=false
sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
================================================
FILE: .settings/org.eclipse.ltk.core.refactoring.prefs
================================================
eclipse.preferences.version=1
org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false
================================================
FILE: .settings/org.eclipse.wst.validation.prefs
================================================
DELEGATES_PREFERENCE=delegateValidatorList
USER_BUILD_PREFERENCE=enabledBuildValidatorListorg.eclipse.wst.wsi.ui.internal.WSIMessageValidator;
USER_MANUAL_PREFERENCE=enabledManualValidatorListorg.eclipse.wst.wsi.ui.internal.WSIMessageValidator;
USER_PREFERENCE=overrideGlobalPreferencesfalse
eclipse.preferences.version=1
override=false
suspend=false
vals/org.eclipse.jst.jsp.core.JSPBatchValidator/global=FF01
vals/org.eclipse.jst.jsp.core.JSPContentValidator/global=FF01
vals/org.eclipse.jst.jsp.core.TLDValidator/global=FF01
vals/org.eclipse.wst.dtd.core.dtdDTDValidator/global=FF01
vals/org.eclipse.wst.html.core.HTMLValidator/global=FF01
vals/org.eclipse.wst.wsdl.validation.wsdl/global=FF02158org.eclipse.wst.wsdl.validation.internal.eclipse.Validator
vals/org.eclipse.wst.xml.core.xml/global=FF03
vals/org.eclipse.wst.xsd.core.xsd/global=FF02162org.eclipse.wst.xsd.core.internal.validation.eclipse.Validator
vals/org.eclipse.wst.xsl.core.xsl/global=FF02
vf.version=3
================================================
FILE: .settings/org.eclipse.wst.xml.core.prefs
================================================
attributeHasNoValue=2
eclipse.preferences.version=1
endTagWithAttributes=2
honourAllSchemaLocations=true
indicateNoGrammar=-1
indiciateNoDocumentElement=-1
markupValidation=false
missingClosingBracket=2
missingClosingQuote=2
missingEndTag=2
missingQuotes=2
missingStartTag=2
missingTagName=2
namespaceInPITarget=2
use-project-settings=true
whitespaceAtStart=2
whitespaceBeforeTagName=2
xinclude=true
================================================
FILE: AndroidManifest.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="ru0xdc.rtkgps"
android:versionCode="1"
android:versionName="1.0 alpha2" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.USB_PERMISSION" />
<!-- osmdroid -->
<!--
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
-->
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-feature android:name="android.hardware.bluetooth" android:required="false" />
<uses-feature android:name="android.hardware.usb.host" android:required="false" />
<application
android:allowBackup="true"
android:hardwareAccelerated="true"
android:icon="@drawable/ic_launcher"
android:installLocation="auto"
android:label="@string/app_name"
android:name="RtkGps"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.ActionBarOverlay"
android:launchMode="singleTop" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
</intent-filter>
<meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
android:resource="@xml/usb_device_filter" />
</activity>
<activity android:name=".settings.SettingsActivity" />
<activity
android:name=".settings.StreamSettingsActivity"
android:label="@string/title_activity_input_stream_settings"
android:parentActivityName="ru0xdc.rtkgps.MainActivity" >
</activity>
<activity
android:name=".settings.StreamDialogActivity"
android:theme="@android:style/Theme.Holo.Dialog.MinWidth" />
<activity
android:name=".settings.StartupShutdownSettingsActivity"
android:theme="@android:style/Theme.Holo.Dialog" />
<activity
android:name=".settings.StationPositionActivity"
android:theme="@android:style/Theme.Holo.Dialog" />
<activity android:name=".AboutActivity"
android:label="@string/about_activity_label"
/>
<service
android:name=".RtkNaviService"
android:exported="false" >
<intent-filter>
<action android:name="ru0xdc.rtkgps.RtkNaviService.START" />
<action android:name="ru0xdc.rtkgps.RtkNaviService.STOP" />
</intent-filter>
</service>
<meta-data
android:name="BING_KEY"
android:value=" Anw2XC78AChKH-ji_aSpKg0hdF1XzkOnBCCOSwOwVnrVr8elrdvfNupIfeB_aKbb " />
</application>
</manifest>
================================================
FILE: LICENSE.txt
================================================
Copyright (c) 2013, Alexey Illarionov. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
================================================
FILE: README.md
================================================
RtkGps
======
RTKLIB rtknavi port on android.
### Features
#### [rtklib][rtklib] features:
* GPS, GLONASS, Galileo, QZSS, BeiDou and SBAS Navigation systems
* Single, DGPS/DGNSS, Kinematic, Static, Moving-Baseline, Fixed,
PPP-Kinematic, PPP-Static and PPP-Fixed positioning modes.
* GNSS formats:
RINEX 2.10,2.11,2.12 OBS/NAV/GNAV/HNAV/LNAV/QNAV, RINEX 3.00,3.01,3.02
OBS/NAV,RINEX 3.02 CLK,RTCM ver.2.3,RTCM ver.3.1 (with amendment 1-5),
RTCM ver.3.2, BINEX, NTRIP 1.0, NMEA 0183, SP3-c, ANTEX 1.4, IONEX 1.0,
NGS PCV and EMS 2.0.
* Proprietary protocotols:
NovAtel: OEM4/V/6,OEM3,OEMStar,Superstar II, Hemisphere: Eclipse,Crescent,
u-blox: LEA-4T/5T/6T, SkyTraq: S1315F, JAVAD GRIL/GREIS, Furuno
GW-10-II/III and NVS NV08C BINR.
* TCP/IP, NTRIP, local log file
#### Android features:
* Bluetooth and USB OTG communication
* SiRF IV protocol (experimental)
### Requirements
* android > 4.0
* Bluetooth or USB OTG GPS receiver supported by rtklib
### Download
![qr][qr]
[Google play][googleplay]
[rtklib]: http://www.rtklib.com/
[googleplay]: https://play.google.com/store/apps/details?id=ru0xdc.rtkgps
[qr]: http://gps.0xdc.ru/rtkgps/qr_googleplay.png
================================================
FILE: assets/commands/cres_raw_10hz.cmd
================================================
$JRESET
$JWAASPRN,129,137
$JBIN,94,1
$JBIN,95,1
$JBIN,96,10
$JBIN,80,1
@
$JBIN,94,0
$JBIN,95,0
$JBIN,96,0
$JBIN,80,0
================================================
FILE: assets/commands/cres_raw_1hz.cmd
================================================
$JRESET
$JWAASPRN,129,137
$JBIN,94,1
$JBIN,95,1
$JBIN,96,1
$JBIN,80,1
@
$JBIN,94,0
$JBIN,95,0
$JBIN,96,0
$JBIN,80,0
================================================
FILE: assets/commands/javad_raw_10hz.cmd
================================================
em,,def:{0.1,,}
em,,jps/gd
em,,jps/qd
em,,jps/WD
em,,jps/ET
@
dm
================================================
FILE: assets/commands/javad_raw_1hz.cmd
================================================
em,,def:{1,,}
em,,jps/gd
em,,jps/qd
em,,jps/WD
em,,jps/ET
@
dm
================================================
FILE: assets/commands/javad_raw_5hz.cmd
================================================
em,,def:{0.2,,}
em,,jps/gd
em,,jps/qd
em,,jps/WD
em,,jps/ET
@
dm
================================================
FILE: assets/commands/lexr_inittime.cmd
================================================
!LEXR CMD-TIME
@
================================================
FILE: assets/commands/oem3_com1setup.cmd
================================================
com1 115200,n,8,1,n,off,on
@
================================================
FILE: assets/commands/oem3_com2setup.cmd
================================================
com2 115200,n,8,1,n,off,on
@
================================================
FILE: assets/commands/oem3_raw_10hz.cmd
================================================
log rgeb ontime 0.1
log repb onnew
log almb onnew
log frmb onnew
@
unlog rgeb
unlog repb
unlog almb
unlog frmb
================================================
FILE: assets/commands/oem3_raw_1hz.cmd
================================================
log rgeb ontime 1
log repb onnew
log almb onnew
log frmb onnew
@
unlog rgeb
unlog repb
unlog almb
unlog frmb
================================================
FILE: assets/commands/oem3_rtcm2_10hz.cmd
================================================
undulation user 0
fix position 35.872988846 138.389665470 1003.8599log rtcm1 ontime 1
log rtcm3 ontime 10
log rtcm1819 ontime 0.1
log rtcm22 ontime 10
@
unlog rtcm1
unlog rtcm3
unlog rtcm1819
unlog rtcm22
================================================
FILE: assets/commands/oem3_rtcm2_1hz.cmd
================================================
fix position 35.872988846 138.389665470 964
log rtcm1 ontime 1
log rtcm3 ontime 10
log rtcm1819 ontime 1
log rtcm22 ontime 10
@
unlog rtcm1
unlog rtcm3
unlog rtcm1819
unlog rtcm22
================================================
FILE: assets/commands/oem3_rtk_10hz.cmd
================================================
accept com2 rtcm
rtkmode kinematic
log prtka ontime 0.1
@
unlog prtka
================================================
FILE: assets/commands/oem3_rtk_1hz.cmd
================================================
accept com2 rtcm
rtkmode kinematic
log prtka ontime 1
@
unlog prtka
================================================
FILE: assets/commands/oem4_raw_10hz.cmd
================================================
log rangecmpb ontime 0.1
log rawephemb onnew
log ionutcb onnew
log rawwaasframeb onnew
log gloephemerisb onnew
@
unlog rangecmpb
unlog rawephemb
unlog ionutcb
unlog rawwaasframeb
unlog gloephemerisb
================================================
FILE: assets/commands/oem4_raw_1hz.cmd
================================================
log rangecmpb ontime 1
log rawephemb onnew
log ionutcb onnew
log rawwaasframeb onnew
log gloephemerisb onnew
@
unlog rangecmpb
unlog rawephemb
unlog ionutcb
unlog rawwaasframeb
unlog gloephemerisb
================================================
FILE: assets/commands/oem4_raw_20hz.cmd
================================================
log rangecmpb ontime 0.05
log rawephemb onnew
log ionutcb onnew
log rawwaasframeb onnew
log gloephemerisb onnew
@
unlog rangecmpb
unlog rawephemb
unlog ionutcb
unlog rawwaasframeb
unlog gloephemerisb
================================================
FILE: assets/commands/oem4_raw_5hz.cmd
================================================
log rangecmpb ontime 0.2
log rawephemb onnew
log ionutcb onnew
log rawwaasframeb onnew
log gloephemerisb onnew
@
unlog rangecmpb
unlog rawephemb
unlog ionutcb
unlog rawwaasframeb
unlog gloephemerisb
================================================
FILE: assets/commands/oem4_rtcm2_10hz.cmd
================================================
interfacemode novatel rtcm
undulation user 0
fix position 35.872988846 138.389665470 1003.8599
log rtcm1 ontime 1
log rtcm3 ontime 10
log rtcm1819 ontime 0.1
log rtcm22 ontime 10
@
interfacemode novatel novatel
unlog rtcm1
unlog rtcm3
unlog rtcm1819
unlog rtcm22
================================================
FILE: assets/commands/oem4_rtcm2_1hz.cmd
================================================
interfacemode novatel rtcm
undulation user 0
fix position 35.872988846 138.389665470 1003.8599
log rtcm1 ontime 1
log rtcm3 ontime 10
log rtcm1819 ontime 1
log rtcm22 ontime 10
@
interfacemode novatel novatel
unlog rtcm1
unlog rtcm3
unlog rtcm1819
unlog rtcm22
================================================
FILE: assets/commands/oem4_rtcm3_10hz.cmd
================================================
interfacemode novatel rtcmv3
undulation user 0
fix position 35.872988846 138.389665470 1003.8599
log rtcm1004 ontime 0.1
log rtcm1005 ontime 10
log rtcm1019 ontime 10
@
interfacemode novatel novatel
unlog rtcm1004
unlog rtcm1005
unlog rtcm1019
================================================
FILE: assets/commands/oem4_rtcm3_1hz.cmd
================================================
interfacemode novatel rtcmv3
undulation user 0
fix position 35.872988846 138.389665470 1003.8599
log rtcm1004 ontime 1
log rtcm1012 ontime 1
log rtcm1005 ontime 10
log rtcm1019 ontime 10
log rtcm1020 ontime 10
@
interfacemode novatel novatel
unlog rtcm1004
unlob rtcm 1012
unlog rtcm1005
unlog rtcm1019
unkog rtcm 1020
================================================
FILE: assets/commands/oem4_setcom115200.cmd
================================================
com com1 115200 n 8 1 n off on
com com2 115200 n 8 1 n off on
com com3 115200 n 8 1 n off on
saveconfig
@
================================================
FILE: assets/commands/oem6_raw_1hz.cmd
================================================
unlog all
log rangecmpb ontime 1
log rawephemb onnew
log ionutcb onnew
log rawwaasframeb onnew
log gloephemerisb onnew
log qzssrawsubframeb onnew
log qzssionutcb onnew
@
unlog rangecmpb
unlog rawephemb
unlog ionutcb
unlog rawwaasframeb
unlog gloephemerisb
unlog qzssrawsubframeb
unlog qzssionutcb
================================================
FILE: assets/commands/sirf_raw_1hz.cmd
================================================
; Switch to SiRF 57600
$PSRF100,0,57600,8,1,0*37
!WAIT 100
; Enable navlib
!HEX a0a20019 80 00000000 00000000 00000000 00000000 00000000 0000 0c 10 009cb0b3
!WAIT 100
; Poll version,clock, ephemeris
!HEX a0a20002 8400 0084b0b3
!WAIT 100
!HEX a0a20002 9000 0090b0b3
!WAIT 100
!HEX a0a20002 9000 0092b0b3
!WAIT 100
!HEX a0a20003 930000 0093b0b3
@
; Switch to NMEA 57600
!HEX a0a20018 81020101000101010501010100010001000100010001e100 0176b0b3
================================================
FILE: assets/commands/skytraq_raw_10hz.cmd
================================================
!STQ CFG-FMT 2 0
!WAIT 100
!STQ CFG-RATE 10Hz 1 1 0 0 1 0
@
!STQ CFG-FMT 0 0
================================================
FILE: assets/commands/skytraq_raw_1hz.cmd
================================================
!STQ CFG-FMT 2 0
!WAIT 100
!STQ CFG-RATE 1Hz 1 1 0 0 1 0
@
!STQ CFG-FMT 0 0
================================================
FILE: assets/commands/skytraq_raw_20hz.cmd
================================================
!STQ CFG-FMT 2 0
!WAIT 100
!STQ CFG-RATE 20Hz 1 1 0 0 1 0
@
!STQ CFG-FMT 0 0
================================================
FILE: assets/commands/skytraq_raw_5hz.cmd
================================================
!STQ CFG-FMT 2 0
!WAIT 100
!STQ CFG-RATE 5Hz 1 1 0 0 1 0
@
!STQ CFG-FMT 0 0
================================================
FILE: assets/commands/ubx_raw_10hz.cmd
================================================
!UBX CFG-RATE 100 1 1
@
!UBX CFG-RATE 1000 1 1
================================================
FILE: assets/commands/ubx_raw_1hz.cmd
================================================
!UBX CFG-RATE 1000 1 1
@
!UBX CFG-RATE 1000 1 1
================================================
FILE: assets/commands/ubx_raw_5hz.cmd
================================================
!UBX CFG-RATE 200 1 1
@
!UBX CFG-RATE 1000 1 1
================================================
FILE: assets/licenses.html
================================================
<html>
<head>
<style>
body { font-family: sans-serif; }
pre {
background-color: #eeeeee;
padding: 1em; white-space: pre-wrap;
}
</style>
</head>
<body>
<h3>RTKLIB</h3>
<p><a href="http://www.rtklib.com/">rtklib.com</a></p>
<pre>Copyright (c) 2007-2013, T. Takasu, All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
The software package includes some companion executive binaries or
shared libraries necessary to execute APs on Windows. These licenses succeed
to the original ones of these software.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</pre>
<h3>OsmDroid <a
href="http://code.google.com/p/osmdroid/">http://code.google.com/p/osmdroid/</a></h3>
<pre>
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
</pre>
<h3>butterknife-1.4.0.jar <a
href="http://jakewharton.github.io/butterknife/">jakewharton.github.io/butterknife/</a></h3>
<pre>Copyright 2013 Jake Wharton
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
</pre>
<h3>android-support-v13.jar</h3>
<pre>/*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
</pre>
<h3>acra-4.5.0.jar <a href="http://acra.ch/">acra.ch</a></h3>
<pre>
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
</pre>
</body>
</html>
================================================
FILE: build.gradle
================================================
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.4'
}
}
apply plugin: 'android'
repositories {
mavenCentral()
}
dependencies {
compile files('libs/android-support-v13.jar')
compile 'com.google.code.findbugs:jsr305:2.0.1'
compile 'com.jakewharton:butterknife:1.3.2'
}
android {
compileSdkVersion 17
buildToolsVersion "17"
defaultConfig {
minSdkVersion 14
targetSdkVersion 17
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
instrumentTest.setRoot('tests')
}
}
tasks.withType(com.android.build.gradle.tasks.PackageApplication) { pkgTask ->
pkgTask.jniDir new File(projectDir, 'libs')
}
================================================
FILE: build.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<project name="MainActivity" default="help">
<!-- The local.properties file is created and updated by the 'android' tool.
It contains the path to the SDK. It should *NOT* be checked into
Version Control Systems. -->
<property file="local.properties" />
<!-- The ant.properties file can be created by you. It is only edited by the
'android' tool to add properties to it.
This is the place to change some Ant specific build properties.
Here are some properties you may want to change/update:
source.dir
The name of the source directory. Default is 'src'.
out.dir
The name of the output directory. Default is 'bin'.
For other overridable properties, look at the beginning of the rules
files in the SDK, at tools/ant/build.xml
Properties related to the SDK location or the project target should
be updated using the 'android' tool with the 'update' action.
This file is an integral part of the build system for your
application and should be checked into Version Control Systems.
-->
<property file="ant.properties" />
<!-- if sdk.dir was not set from one of the property file, then
get it from the ANDROID_HOME env var.
This must be done before we load project.properties since
the proguard config can use sdk.dir -->
<property environment="env" />
<condition property="sdk.dir" value="${env.ANDROID_HOME}">
<isset property="env.ANDROID_HOME" />
</condition>
<!-- The project.properties file is created and updated by the 'android'
tool, as well as ADT.
This contains project specific properties such as project target, and library
dependencies. Lower level build properties are stored in ant.properties
(or in .classpath for Eclipse projects).
This file is an integral part of the build system for your
application and should be checked into Version Control Systems. -->
<loadproperties srcFile="project.properties" />
<!-- quick check on sdk.dir -->
<fail
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable."
unless="sdk.dir"
/>
<!--
Import per project custom build rules if present at the root of the project.
This is the place to put custom intermediary targets such as:
-pre-build
-pre-compile
-post-compile (This is typically used for code obfuscation.
Compiled code location: ${out.classes.absolute.dir}
If this is not done in place, override ${out.dex.input.absolute.dir})
-post-package
-post-build
-pre-clean
-->
<import file="custom_rules.xml" optional="true" />
<!-- Import the actual build file.
To customize existing targets, there are two options:
- Customize only one target:
- copy/paste the target into this file, *before* the
<import> task.
- customize it to your needs.
- Customize the whole content of build.xml
- copy/paste the content of the rules files (minus the top node)
into this file, replacing the <import> task.
- customize to your needs.
***********************
****** IMPORTANT ******
***********************
In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
in order to avoid having your file be overridden by tools such as "android update project"
-->
<!-- version-tag: 1 -->
<import file="${sdk.dir}/tools/ant/build.xml" />
</project>
================================================
FILE: jni/Android.mk
================================================
LOCAL_PATH := $(call my-dir)
include $(LOCAL_PATH)/rtklib.mk
include $(CLEAR_VARS)
LOCAL_MODULE := rtkgps
LOCAL_CFLAGS += -fvisibility=hidden
LOCAL_SRC_FILES := \
gtime.c \
prcopt.c \
rtkjni.c \
rtkcommon.c \
rtkserver.c \
solopt.c
LOCAL_STATIC_LIBRARIES := rtklib
include $(BUILD_SHARED_LIBRARY)
$(call import-module,simonlynen_android_libs/lapack/jni)
================================================
FILE: jni/Application.mk
================================================
APP_PROJECT_PATH := $(shell pwd)
APP_ABI := armeabi-v7a x86
#APP_BUILD_SCRIPT := $(APP_PROJECT_PATH)/Android.mk
APP_PLATFORM := android-8
#NDK_TOOLCHAIN_VERSION=clang
NDK_MODULE_PATH=$(APP_PROJECT_PATH)/jni
#APP_OPTIM := debug
#APP_CFLAGS += -O3 -flto -fgraphite -fgraphite-identity
#APP_LDFLAGS += -flto -fgraphite -fgraphite-identity
================================================
FILE: jni/gtime.c
================================================
#include <android/log.h>
#include <jni.h>
#include <strings.h>
#include "rtklib.h"
#define TAG "nativeGTime"
#define LOGV(...) showmsg(__VA_ARGS__)
static struct {
jfieldID time;
jfieldID sec;
} ru0xdc_rtklib_gtime_fields;
static struct {
jmethodID set_gtime;
} ru0xdc_rtklib_gtime_methods;
static gtime_t get_gtime_t(JNIEnv* env, jobject thiz)
{
gtime_t gt;
gt.time = (*env)->GetLongField(env, thiz, ru0xdc_rtklib_gtime_fields.time);
gt.sec = (*env)->GetDoubleField(env, thiz, ru0xdc_rtklib_gtime_fields.sec);
return gt;
}
static jlong GTime_get_utc_time_millis(JNIEnv* env, jobject thiz)
{
gtime_t t;
t = gpst2utc(get_gtime_t(env, thiz));
return (jlong)(1000ll * t.time + llround(1000.0 * t.sec));
}
static jint GTime_get_gps_week(JNIEnv* env, jobject thiz)
{
int week;
time2gpst(get_gtime_t(env, thiz), &week);
return week;
}
static jdouble GTime_get_gps_tow(JNIEnv* env, jobject thiz)
{
return time2gpst(get_gtime_t(env, thiz), NULL);
}
static int init_gtime_fields_methods(JNIEnv* env, jclass clazz) {
ru0xdc_rtklib_gtime_fields.time = (*env)->GetFieldID(env, clazz, "time", "J");
ru0xdc_rtklib_gtime_fields.sec = (*env)->GetFieldID(env, clazz, "sec", "D");
ru0xdc_rtklib_gtime_methods.set_gtime = (*env)->GetMethodID(env, clazz, "setGTime", "(JD)V");
if ((ru0xdc_rtklib_gtime_fields.time == NULL)
|| (ru0xdc_rtklib_gtime_fields.sec == NULL)
|| (ru0xdc_rtklib_gtime_methods.set_gtime == NULL)
) {
LOGV("ru0xdc/rtklib/GTime fields not found:%s%s%s",
(ru0xdc_rtklib_gtime_fields.time == NULL ? " time" : ""),
(ru0xdc_rtklib_gtime_fields.sec == NULL ? " sec" : ""),
(ru0xdc_rtklib_gtime_methods.set_gtime == NULL ? " setGTime" : "")
);
return JNI_FALSE;
}
return JNI_TRUE;
}
void set_gtime(JNIEnv* env, jclass jgtime, gtime_t time)
{
(*env)->CallVoidMethod(env, jgtime, ru0xdc_rtklib_gtime_methods.set_gtime,
(jlong)time.time,
(jdouble)time.sec);
}
static JNINativeMethod nativeMethods[] = {
{ "getUtcTimeMillis", "()J", (void*)GTime_get_utc_time_millis },
{ "getGpsWeek", "()I", (void*)GTime_get_gps_week },
{ "getGpsTow", "()D", (void*)GTime_get_gps_tow }
};
int registerGTimeNatives(JNIEnv* env) {
int result = -1;
/* look up the class */
jclass clazz = (*env)->FindClass(env, "ru0xdc/rtklib/GTime");
if (clazz == NULL)
return JNI_FALSE;
if ((*env)->RegisterNatives(env, clazz, nativeMethods, sizeof(nativeMethods)
/ sizeof(nativeMethods[0])) != JNI_OK)
return JNI_FALSE;
if ( ! init_gtime_fields_methods(env, clazz))
return JNI_FALSE;
return JNI_TRUE;
}
================================================
FILE: jni/log.c
================================================
#include <android/log.h>
#include <stdarg.h>
#include "rtklib.h"
#define LOG_TAG "rtklib"
extern int showmsg(char *format,...) {
int r;
va_list ap;
va_start(ap, format);
r = __android_log_vprint(ANDROID_LOG_VERBOSE, LOG_TAG, format, ap);
va_end(ap);
return r;
}
extern void settspan(gtime_t ts, gtime_t te) {}
extern void settime(gtime_t time) {}
================================================
FILE: jni/prcopt.c
================================================
#include <android/log.h>
#include <jni.h>
#include <strings.h>
#include "rtklib.h"
#include "rtkjni.h"
#define TAG "nativeProcessingOptions"
#define LOGV(...) showmsg(__VA_ARGS__)
#define PROCESSING_OPTIONS_CLASS "ru0xdc/rtklib/ProcessingOptions$Native"
#define SNR_MASK_CLASS "ru0xdc/rtklib/ProcessingOptions$SnrMask"
static struct {
jfieldID mode;
jfieldID soltype;
jfieldID nf;
jfieldID navsys;
jfieldID elmin;
jfieldID snrmask;
jfieldID sateph;
jfieldID modear;
jfieldID glomodear;
jfieldID maxout;
jfieldID minlock;
jfieldID minfix;
jfieldID ionoopt;
jfieldID tropopt;
jfieldID dynamics;
jfieldID tidecorr;
jfieldID niter;
jfieldID codesmooth;
jfieldID intpref;
jfieldID sbascorr;
jfieldID sbassatsel;
jfieldID rovpos;
jfieldID refpos;
jfieldID eratioL1;
jfieldID eratioL2;
jfieldID eratioL5;
jfieldID errPhaseA;
jfieldID errPhaseB;
jfieldID errPhaseC;
jfieldID errDopplerFreq;
jfieldID stdBias;
jfieldID stdIono;
jfieldID stdTrop;
jfieldID prnBias;
jfieldID prnIono;
jfieldID prnTrop;
jfieldID prnAcch;
jfieldID prnAccv;
jfieldID sclkstab;
jfieldID thresar_0;
jfieldID thresar_1;
jfieldID thresar_2;
jfieldID thresar_3;
jfieldID elmaskar;
jfieldID elmaskhold;
jfieldID thresslip;
jfieldID maxtdiff;
jfieldID maxinno;
jfieldID maxgdop;
jfieldID baselineConst;
jfieldID baselineSigma;
jfieldID ruX;
jfieldID ruY;
jfieldID ruZ;
jfieldID baseX;
jfieldID baseY;
jfieldID baseZ;
jfieldID anttypeBase;
jfieldID anttypeRover;
jfieldID antdelRovE;
jfieldID antdelRovN;
jfieldID antdelRovU;
jfieldID antdelRefE;
jfieldID antdelRefN;
jfieldID antdelRefU;
jfieldID exsats;
jfieldID rnxoptBase;
jfieldID rnxoptRover;
jfieldID posopt;
} ru0xdc_rtklib_prcopt_fields;
static struct {
jfieldID enableRover;
jfieldID enableBase;
jfieldID maskL1;
jfieldID maskL2;
jfieldID maskL5;
} ru0xdc_rtklib_snrmask_fields;
static int init_prcopt_fields_methods(JNIEnv* env, jclass clazz);
static int init_snrmask_fields_methods(JNIEnv* env, jclass clazz);
jboolean SnrMask_load(JNIEnv* env, jobject j_snrmask, const snrmask_t *snrmask);
void SnrMask_save(JNIEnv* env, jobject j_snrmask, snrmask_t *dst);
void processing_options2prcopt_t(JNIEnv* env, jobject thiz, prcopt_t *dst)
{
int string_size;
jstring jstr;
jobject jarr;
jobject jsnrmask;
jclass clazz;
clazz = (*env)->FindClass(env, PROCESSING_OPTIONS_CLASS);
if (clazz == NULL)
return;
if (!(*env)->IsInstanceOf(env, thiz, clazz)) {
(*env)->ThrowNew(env, (*env)->FindClass(env, "Ljava/lang/ClassCastException"), NULL);
return;
}
*dst = prcopt_default;
#define GET_FIELD(_name, _type) { dst->_name = (*env)->Get ## _type ## Field(env, thiz, ru0xdc_rtklib_prcopt_fields._name); }
#define GET_FIELD2(_name, _type) (*env)->Get ## _type ## Field(env, thiz, ru0xdc_rtklib_prcopt_fields._name);
GET_FIELD(mode, Int)
GET_FIELD(soltype, Int)
GET_FIELD(nf, Int)
GET_FIELD(navsys, Int)
GET_FIELD(elmin, Double)
GET_FIELD(sateph, Int)
GET_FIELD(modear, Int)
GET_FIELD(glomodear, Int)
GET_FIELD(maxout, Int)
GET_FIELD(minlock, Int)
GET_FIELD(minfix, Int)
GET_FIELD(ionoopt, Int)
GET_FIELD(tropopt, Int)
GET_FIELD(dynamics, Int)
GET_FIELD(tidecorr, Int)
GET_FIELD(niter, Int)
GET_FIELD(codesmooth, Int)
GET_FIELD(intpref, Int)
GET_FIELD(sbascorr, Int)
GET_FIELD(sbassatsel, Int)
GET_FIELD(rovpos, Int)
GET_FIELD(refpos, Int)
dst->eratio[0] = GET_FIELD2(eratioL1, Double)
dst->eratio[1] = GET_FIELD2(eratioL2, Double)
dst->eratio[2] = GET_FIELD2(eratioL5, Double)
/* dst->err[0] = GET_FIELD2(errPhaseA, Double) */
dst->err[1] = GET_FIELD2(errPhaseA, Double)
dst->err[2] = GET_FIELD2(errPhaseB, Double)
dst->err[3] = GET_FIELD2(errPhaseC, Double)
dst->err[4] = GET_FIELD2(errDopplerFreq, Double)
dst->std[0] = GET_FIELD2(stdBias, Double)
dst->std[1] = GET_FIELD2(stdIono, Double)
dst->std[2] = GET_FIELD2(stdTrop, Double)
dst->prn[0] = GET_FIELD2(prnBias, Double)
dst->prn[1] = GET_FIELD2(prnIono, Double)
dst->prn[2] = GET_FIELD2(prnTrop, Double)
dst->prn[3] = GET_FIELD2(prnAcch, Double)
dst->prn[4] = GET_FIELD2(prnAccv, Double)
GET_FIELD(sclkstab, Double)
dst->thresar[0] = GET_FIELD2(thresar_0, Double)
dst->thresar[1] = GET_FIELD2(thresar_1, Double)
dst->thresar[2] = GET_FIELD2(thresar_2, Double)
dst->thresar[3] = GET_FIELD2(thresar_3, Double)
GET_FIELD(elmaskar, Double)
GET_FIELD(elmaskhold, Double)
GET_FIELD(thresslip, Double)
GET_FIELD(maxtdiff, Double)
GET_FIELD(maxinno, Double)
GET_FIELD(maxgdop, Double)
dst->baseline[0] = GET_FIELD2(baselineConst, Double)
dst->baseline[1] = GET_FIELD2(baselineSigma, Double)
dst->ru[0] = GET_FIELD2(ruX, Double)
dst->ru[1] = GET_FIELD2(ruY, Double)
dst->ru[2] = GET_FIELD2(ruZ, Double)
dst->rb[0] = GET_FIELD2(baseX, Double)
dst->rb[1] = GET_FIELD2(baseY, Double)
dst->rb[2] = GET_FIELD2(baseZ, Double)
jstr = GET_FIELD2(anttypeBase, Object)
j_str2buf(env, jstr, dst->anttype[0], sizeof(dst->anttype[0]));
jstr = GET_FIELD2(anttypeRover, Object)
j_str2buf(env, jstr, dst->anttype[1], sizeof(dst->anttype[1]));
dst->antdel[0][0] = GET_FIELD2(antdelRovE, Double)
dst->antdel[0][1] = GET_FIELD2(antdelRovN, Double)
dst->antdel[0][2] = GET_FIELD2(antdelRovU, Double)
dst->antdel[1][0] = GET_FIELD2(antdelRefE, Double)
dst->antdel[1][1] = GET_FIELD2(antdelRefN, Double)
dst->antdel[1][2] = GET_FIELD2(antdelRefU, Double)
{
/* exsats */
int i;
jboolean *j_bool_arr;
jarr = GET_FIELD2(exsats, Object)
j_bool_arr = (*env)->GetBooleanArrayElements(env, jarr, NULL);
if (j_bool_arr == NULL) return;
for (i=0; i<sizeof(dst->exsats)/sizeof(dst->exsats[0]); ++i)
dst->exsats[i] = j_bool_arr[i] ? 1 : 2;
(*env)->ReleaseBooleanArrayElements(env, jarr, j_bool_arr, 0);
}
jstr = GET_FIELD2(rnxoptBase, Object)
j_str2buf(env, jstr, dst->rnxopt[0], sizeof(dst->rnxopt[0]));
jstr = GET_FIELD2(rnxoptRover, Object)
j_str2buf(env, jstr, dst->rnxopt[1], sizeof(dst->rnxopt[1]));
jarr = GET_FIELD2(posopt, Object)
(*env)->GetIntArrayRegion(env, jarr, 0, sizeof(dst->posopt)/sizeof(dst->posopt[0]), dst->posopt);
jsnrmask = GET_FIELD2(snrmask, Object);
SnrMask_save(env, jsnrmask, &dst->snrmask);
#undef GET_FIELD
#undef GET_FIELD2
}
static void ProcessingOptions_load_defaults(JNIEnv* env, jobject thiz)
{
jstring jstr;
jobject jarr, jobj;
const prcopt_t *src = &prcopt_default;
if (ru0xdc_rtklib_prcopt_fields.mode == NULL) {
if ( ! init_prcopt_fields_methods(env, (*env)->GetObjectClass(env, thiz)))
return;
}
#define SET_FIELD(_name, _type) { (*env)->Set ## _type ## Field(env, thiz, ru0xdc_rtklib_prcopt_fields._name, src->_name); }
#define SET_FIELD2(_name, _type, _value) { (*env)->Set ## _type ## Field(env, thiz, ru0xdc_rtklib_prcopt_fields._name, _value); }
SET_FIELD(mode, Int)
SET_FIELD(soltype, Int)
SET_FIELD(nf, Int)
SET_FIELD(navsys, Int)
SET_FIELD(elmin, Double)
{
// SnrMask
jobj = (*env)->GetObjectField(env, thiz, ru0xdc_rtklib_prcopt_fields.snrmask);
if (!SnrMask_load(env, jobj, &src->snrmask))
return;
}
SET_FIELD(sateph, Int)
SET_FIELD(modear, Int)
SET_FIELD(glomodear, Int)
SET_FIELD(maxout, Int)
SET_FIELD(minlock, Int)
SET_FIELD(minfix, Int)
SET_FIELD(ionoopt, Int)
SET_FIELD(tropopt, Int)
SET_FIELD(dynamics, Int)
SET_FIELD(tidecorr, Int)
SET_FIELD(niter, Int)
SET_FIELD(codesmooth, Int)
SET_FIELD(intpref, Int)
SET_FIELD(sbascorr, Int)
SET_FIELD(sbassatsel, Int)
SET_FIELD(rovpos, Int)
SET_FIELD(refpos, Int)
SET_FIELD2(eratioL1, Double, src->eratio[0])
SET_FIELD2(eratioL2, Double, src->eratio[1])
SET_FIELD2(eratioL5, Double, src->eratio[2])
SET_FIELD2(errPhaseA, Double, src->err[1])
SET_FIELD2(errPhaseB, Double, src->err[2])
SET_FIELD2(errPhaseC, Double, src->err[3])
SET_FIELD2(errDopplerFreq, Double, src->err[4])
SET_FIELD2(stdBias, Double, src->std[0])
SET_FIELD2(stdIono, Double, src->std[1])
SET_FIELD2(stdTrop, Double, src->std[2])
SET_FIELD2(prnBias, Double, src->prn[0])
SET_FIELD2(prnIono, Double, src->prn[1])
SET_FIELD2(prnTrop, Double, src->prn[2])
SET_FIELD2(prnAcch, Double, src->prn[3])
SET_FIELD2(prnAccv, Double, src->prn[4])
SET_FIELD(sclkstab, Double)
SET_FIELD2(thresar_0, Double, src->thresar[0])
SET_FIELD2(thresar_1, Double, src->thresar[1])
SET_FIELD2(thresar_2, Double, src->thresar[2])
SET_FIELD2(thresar_3, Double, src->thresar[3])
SET_FIELD(elmaskar, Double)
SET_FIELD(elmaskhold, Double)
SET_FIELD(thresslip, Double)
SET_FIELD(maxtdiff, Double)
SET_FIELD(maxinno, Double)
SET_FIELD(maxgdop, Double)
SET_FIELD2(baselineConst, Double, src->baseline[0])
SET_FIELD2(baselineSigma, Double, src->baseline[1])
SET_FIELD2(ruX, Double, src->ru[0])
SET_FIELD2(ruY, Double, src->ru[1])
SET_FIELD2(ruZ, Double, src->ru[2])
SET_FIELD2(baseX, Double, src->rb[0])
SET_FIELD2(baseY, Double, src->rb[1])
SET_FIELD2(baseZ, Double, src->rb[2])
jstr = (*env)->NewStringUTF(env, src->anttype[0]);
if (jstr == NULL) return;
SET_FIELD2(anttypeBase, Object, jstr)
jstr = (*env)->NewStringUTF(env, src->anttype[1]);
if (jstr == NULL) return;
SET_FIELD2(anttypeRover, Object, jstr)
SET_FIELD2(antdelRovE, Double, src->antdel[0][0])
SET_FIELD2(antdelRovN, Double, src->antdel[0][1])
SET_FIELD2(antdelRovU, Double, src->antdel[0][2])
SET_FIELD2(antdelRefE, Double, src->antdel[1][0])
SET_FIELD2(antdelRefN, Double, src->antdel[1][1])
SET_FIELD2(antdelRefU, Double, src->antdel[1][2])
{
/* exsats */
int i;
jboolean *j_bool_arr;
jarr = (*env)->GetObjectField(env, thiz, ru0xdc_rtklib_prcopt_fields.exsats);
j_bool_arr = (*env)->GetBooleanArrayElements(env, jarr, NULL);
if (j_bool_arr == NULL) return;
for (i=0; i<sizeof(src->exsats)/sizeof(src->exsats[0]); ++i)
j_bool_arr[i] = src->exsats[i] == 1 ? JNI_TRUE : JNI_FALSE;
(*env)->ReleaseBooleanArrayElements(env, jarr, j_bool_arr, 0);
}
// rnxoptBase
jstr = (*env)->NewStringUTF(env, src->rnxopt[0]);
if (jstr == NULL) return;
SET_FIELD2(rnxoptBase, Object, jstr)
// rnxoptRover
jstr = (*env)->NewStringUTF(env, src->rnxopt[1]);
SET_FIELD2(rnxoptRover, Object, jstr)
// posopt
jarr = (*env)->GetObjectField(env, thiz, ru0xdc_rtklib_prcopt_fields.posopt);
(*env)->SetIntArrayRegion(env, jarr, 0,
sizeof(src->posopt)/sizeof(src->posopt[0]), src->posopt);
#undef SET_FIELD
#undef SET_FIELD2
}
jboolean SnrMask_load(JNIEnv* env, jobject j_snrmask, const snrmask_t *snrmask)
{
jarray j_arr_l1, j_arr_l2, j_arr_l5;
if (snrmask == NULL)
return JNI_FALSE;
(*env)->SetBooleanField(env, j_snrmask, ru0xdc_rtklib_snrmask_fields.enableRover, snrmask->ena[0]);
(*env)->SetBooleanField(env, j_snrmask, ru0xdc_rtklib_snrmask_fields.enableBase, snrmask->ena[1]);
j_arr_l1 = (*env)->GetObjectField(env, j_snrmask, ru0xdc_rtklib_snrmask_fields.maskL1);
j_arr_l2 = (*env)->GetObjectField(env, j_snrmask, ru0xdc_rtklib_snrmask_fields.maskL2);
j_arr_l5 = (*env)->GetObjectField(env, j_snrmask, ru0xdc_rtklib_snrmask_fields.maskL5);
(*env)->SetDoubleArrayRegion(env, j_arr_l1, 0, sizeof(snrmask->mask[0])/sizeof(snrmask->mask[0][0]), snrmask->mask[0]);
(*env)->SetDoubleArrayRegion(env, j_arr_l2, 0, sizeof(snrmask->mask[1])/sizeof(snrmask->mask[1][0]), snrmask->mask[1]);
(*env)->SetDoubleArrayRegion(env, j_arr_l5, 0, sizeof(snrmask->mask[2])/sizeof(snrmask->mask[2][0]), snrmask->mask[2]);
return JNI_TRUE;
}
void SnrMask_save(JNIEnv* env, jobject j_snrmask, snrmask_t *dst)
{
jarray j_arr_l1, j_arr_l2, j_arr_l5;
if (dst == NULL)
return;
dst->ena[0] = (*env)->GetBooleanField(env, j_snrmask, ru0xdc_rtklib_snrmask_fields.enableRover);
dst->ena[1] = (*env)->GetBooleanField(env, j_snrmask, ru0xdc_rtklib_snrmask_fields.enableBase);
j_arr_l1 = (*env)->GetObjectField(env, j_snrmask, ru0xdc_rtklib_snrmask_fields.maskL1);
j_arr_l2 = (*env)->GetObjectField(env, j_snrmask, ru0xdc_rtklib_snrmask_fields.maskL2);
j_arr_l5 = (*env)->GetObjectField(env, j_snrmask, ru0xdc_rtklib_snrmask_fields.maskL5);
(*env)->GetDoubleArrayRegion(env, j_arr_l1, 0, sizeof(dst->mask[0])/sizeof(dst->mask[0][0]), dst->mask[0]);
(*env)->GetDoubleArrayRegion(env, j_arr_l2, 0, sizeof(dst->mask[1])/sizeof(dst->mask[1][0]), dst->mask[1]);
(*env)->GetDoubleArrayRegion(env, j_arr_l5, 0, sizeof(dst->mask[2])/sizeof(dst->mask[2][0]), dst->mask[2]);
}
static int init_prcopt_fields_methods(JNIEnv* env, jclass clazz)
{
#define INIT_FIELD(_name, _type) { \
ru0xdc_rtklib_prcopt_fields._name = (*env)->GetFieldID(env, clazz, #_name, _type); \
if (ru0xdc_rtklib_prcopt_fields._name == NULL) { \
LOGV("ru0xdc/rtklib/ProcessingOptions$Native$%s not found", #_name); \
return JNI_FALSE; \
} \
}
INIT_FIELD(mode, "I")
INIT_FIELD(soltype, "I")
INIT_FIELD(nf, "I")
INIT_FIELD(navsys, "I")
INIT_FIELD(elmin, "D")
INIT_FIELD(snrmask, "Lru0xdc/rtklib/ProcessingOptions$SnrMask;")
INIT_FIELD(sateph, "I")
INIT_FIELD(modear, "I")
INIT_FIELD(glomodear, "I")
INIT_FIELD(maxout, "I")
INIT_FIELD(minlock, "I")
INIT_FIELD(minfix, "I")
INIT_FIELD(ionoopt, "I")
INIT_FIELD(tropopt, "I")
INIT_FIELD(dynamics, "I")
INIT_FIELD(tidecorr, "I")
INIT_FIELD(niter, "I")
INIT_FIELD(codesmooth, "I")
INIT_FIELD(intpref, "I")
INIT_FIELD(sbascorr, "I")
INIT_FIELD(sbassatsel, "I")
INIT_FIELD(rovpos, "I")
INIT_FIELD(refpos, "I")
INIT_FIELD(eratioL1, "D")
INIT_FIELD(eratioL2, "D")
INIT_FIELD(eratioL5, "D")
INIT_FIELD(errPhaseA, "D")
INIT_FIELD(errPhaseB, "D")
INIT_FIELD(errPhaseC, "D")
INIT_FIELD(errDopplerFreq, "D")
INIT_FIELD(stdBias, "D")
INIT_FIELD(stdIono, "D")
INIT_FIELD(stdTrop, "D")
INIT_FIELD(prnBias, "D")
INIT_FIELD(prnIono, "D")
INIT_FIELD(prnTrop, "D")
INIT_FIELD(prnAcch, "D")
INIT_FIELD(prnAccv, "D")
INIT_FIELD(sclkstab, "D")
INIT_FIELD(thresar_0, "D")
INIT_FIELD(thresar_1, "D")
INIT_FIELD(thresar_2, "D")
INIT_FIELD(thresar_3, "D")
INIT_FIELD(elmaskar, "D")
INIT_FIELD(elmaskhold, "D")
INIT_FIELD(thresslip, "D")
INIT_FIELD(maxtdiff, "D")
INIT_FIELD(maxinno, "D")
INIT_FIELD(maxgdop, "D")
INIT_FIELD(baselineConst, "D")
INIT_FIELD(baselineSigma, "D")
INIT_FIELD(ruX, "D")
INIT_FIELD(ruY, "D")
INIT_FIELD(ruZ, "D")
INIT_FIELD(baseX, "D")
INIT_FIELD(baseY, "D")
INIT_FIELD(baseZ, "D")
INIT_FIELD(anttypeBase, "Ljava/lang/String;")
INIT_FIELD(anttypeRover, "Ljava/lang/String;")
INIT_FIELD(antdelRovE, "D")
INIT_FIELD(antdelRovN, "D")
INIT_FIELD(antdelRovU, "D")
INIT_FIELD(antdelRefE, "D")
INIT_FIELD(antdelRefN, "D")
INIT_FIELD(antdelRefU, "D")
INIT_FIELD(exsats, "[Z")
INIT_FIELD(rnxoptBase, "Ljava/lang/String;")
INIT_FIELD(rnxoptRover, "Ljava/lang/String;")
INIT_FIELD(posopt, "[I")
#undef INIT_FIELD
return JNI_TRUE;
}
static int init_snrmask_fields_methods(JNIEnv* env, jclass clazz)
{
#define INIT_FIELD(_name, _type) { \
ru0xdc_rtklib_snrmask_fields._name = (*env)->GetFieldID(env, clazz, #_name, _type); \
if (ru0xdc_rtklib_snrmask_fields._name == NULL) { \
LOGV("ru0xdc/rtklib/ProcessingOptions$SnrMask$%s not found", #_name); \
return JNI_FALSE; \
} \
}
INIT_FIELD(enableRover, "Z")
INIT_FIELD(enableBase, "Z")
INIT_FIELD(maskL1, "[D")
INIT_FIELD(maskL2, "[D")
INIT_FIELD(maskL5, "[D")
#undef INIT_FIELD
return JNI_TRUE;
}
static JNINativeMethod nativeMethods[] = {
{ "_loadDefaults", "()V", (void*)ProcessingOptions_load_defaults }
};
int registerProcessingOptionsNatives(JNIEnv* env) {
jclass prcopt_clazz, snrmask_clazz;
int result = -1;
/* look up the class */
prcopt_clazz = (*env)->FindClass(env, PROCESSING_OPTIONS_CLASS);
snrmask_clazz = (*env)->FindClass(env, SNR_MASK_CLASS);
if (prcopt_clazz == NULL)
return JNI_FALSE;
if ((*env)->RegisterNatives(env, prcopt_clazz, nativeMethods, sizeof(nativeMethods)
/ sizeof(nativeMethods[0])) != JNI_OK)
return JNI_FALSE;
if ( ! init_prcopt_fields_methods(env, prcopt_clazz))
return JNI_FALSE;
if ( ! init_snrmask_fields_methods(env, snrmask_clazz))
return JNI_FALSE;
return JNI_TRUE;
}
================================================
FILE: jni/rtkcommon.c
================================================
#include <android/log.h>
#include <jni.h>
#include <strings.h>
#include "rtklib.h"
#define TAG "nativeRtkCommion"
#define LOGV(...) showmsg(__VA_ARGS__)
static jobject RtkCommon_get_sat_id(JNIEnv* env, jclass clazz, jint sat_no)
{
char sat_id[16];
satno2id(sat_no, sat_id);
return (*env)->NewStringUTF(env, sat_id);
}
static void RtkCommon_dops(JNIEnv* env, jclass clazz, jdoubleArray j_azel, jint j_ns, jdouble j_elmin, jobject j_dst)
{
static jmethodID set_dops_mid = NULL;
double dst[4];
double *azel;
azel = (*env)->GetDoubleArrayElements(env, j_azel, NULL);
if (azel == NULL)
return;
dops(j_ns, azel, j_elmin, dst);
(*env)->ReleaseDoubleArrayElements(env, j_azel, azel, 0);
if (set_dops_mid == NULL) {
set_dops_mid = (*env)->GetMethodID(env,
(*env)->GetObjectClass(env, j_dst),
"setDops",
"(DDDD)V");
if (set_dops_mid == NULL) {
LOGV("setDops() not found");
return;
}
}
(*env)->CallVoidMethod(env, j_dst, set_dops_mid,
dst[0], dst[1], dst[2], dst[3]);
}
static jdouble RtkCommon_geoidh(JNIEnv* env, jclass clazz, jdouble j_lat, jdouble j_lon)
{
double pos[2] = {j_lat, j_lon};
return (jdouble)geoidh(pos);
}
static void RtkCommon__ecef2pos(JNIEnv* env, jclass clazz, jdouble x,
jdouble y, jdouble z, jdoubleArray j_pos)
{
double r[3] = {x, y, z};
double pos[3];
ecef2pos(r, pos);
(*env)->SetDoubleArrayRegion(env, j_pos, 0, 3, pos);
}
static void RtkCommon__pos2ecef(JNIEnv* env, jclass clazz, jdouble lat,
jdouble lon, jdouble height, jdoubleArray j_pos)
{
double r[3] = {lat, lon, height};
double pos[3];
pos2ecef(r, pos);
(*env)->SetDoubleArrayRegion(env, j_pos, 0, 3, pos);
}
static void RtkCommon__ecef2enu(JNIEnv* env, jclass clazz, jdouble j_lat,
jdouble j_lon, jdoubleArray j_r, jdoubleArray j_e)
{
double pos[2] = {j_lat, j_lon};
double r[3];
double e[3];
(*env)->GetDoubleArrayRegion(env, j_r, 0, 3, r);
if ((*env)->ExceptionOccurred(env) != NULL)
return;
ecef2enu(pos, r, e);
(*env)->SetDoubleArrayRegion(env, j_e, 0, 3, e);
}
static void RtkCommon__covenu(JNIEnv* env, jclass clazz, jdouble j_lat,
jdouble j_lon, jdoubleArray j_P, jdoubleArray j_Q )
{
double pos[2] = {j_lat, j_lon};
double P[9];
double Q[9];
(*env)->GetDoubleArrayRegion(env, j_P, 0, 9, P);
if ((*env)->ExceptionOccurred(env) != NULL)
return;
covenu(pos, P, Q);
(*env)->SetDoubleArrayRegion(env, j_Q, 0, 9, Q);
}
static void RtkCommon__deg2dms(JNIEnv* env, jclass clazz, jdouble j_deg,
jdoubleArray j_dst)
{
double dms[3];
deg2dms(j_deg, dms);
(*env)->SetDoubleArrayRegion(env, j_dst, 0, 3, dms);
}
static jdouble RtkCommon_norm(JNIEnv* env, jclass clazz, jdoubleArray j_a)
{
jsize size;
double res;
double *a;
size = (*env)->GetArrayLength(env, j_a);
if (size == 0)
return 0.0;
a = (*env)->GetDoubleArrayElements(env, j_a, NULL);
if (a == NULL)
return 0.0;
res = norm(a, size);
(*env)->ReleaseDoubleArrayElements(env, j_a, a, 0);
return res;
}
static JNINativeMethod nativeMethods[] = {
{"getSatId", "(I)Ljava/lang/String;", (void*)RtkCommon_get_sat_id},
{"dops", "([DIDLru0xdc/rtklib/RtkCommon$Dops;)V", (void*)RtkCommon_dops},
{"geoidh", "(DD)D", (void*)RtkCommon_geoidh},
{"_deg2dms", "(D[D)V", (void*)RtkCommon__deg2dms},
{"norm", "([D)D", (void*)RtkCommon_norm},
{"_ecef2pos", "(DDD[D)V", (void*)RtkCommon__ecef2pos},
{"_ecef2enu", "(DD[D[D)V", (void*)RtkCommon__ecef2enu},
{"_pos2ecef", "(DDD[D)V", (void*)RtkCommon__pos2ecef},
{"_covenu", "(DD[D[D)V", (void*)RtkCommon__covenu},
};
int registerRtkCommonNatives(JNIEnv* env) {
int result = -1;
/* look up the class */
jclass clazz = (*env)->FindClass(env, "ru0xdc/rtklib/RtkCommon");
if (clazz == NULL)
return JNI_FALSE;
if ((*env)->RegisterNatives(env, clazz, nativeMethods, sizeof(nativeMethods)
/ sizeof(nativeMethods[0])) != JNI_OK)
return JNI_FALSE;
return JNI_TRUE;
}
================================================
FILE: jni/rtkjni.c
================================================
#include <android/log.h>
#include <jni.h>
#include <strings.h>
#include "rtkjni.h"
#define TAG "nativeRtk"
#define LOGV(...) showmsg(__VA_ARGS__)
JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved)
{
JNIEnv* env = NULL;
jint result = -1;
(void)reserved;
LOGV("Entering JNI_OnLoad");
if ((*vm)->GetEnv(vm, (void**) &env, JNI_VERSION_1_6) != JNI_OK)
goto bail;
if (!registerRtkServerNatives(env))
goto bail;
if (!registerRtkCommonNatives(env))
goto bail;
if (!registerGTimeNatives(env))
goto bail;
if (!registerSolutionOptionsNatives(env))
goto bail;
if (!registerProcessingOptionsNatives(env))
goto bail;
/* success -- return valid version number */
result = JNI_VERSION_1_6;
bail:
LOGV("Leaving JNI_OnLoad (result=0x%x)", result);
return result;
}
void j_str2buf(JNIEnv* env, jstring str, char *dest, size_t n)
{
int string_size;
if (n == 0 || dest == NULL)
return;
if (str == NULL) {
dest[0] = '\0';
return;
}
string_size = (*env)->GetStringUTFLength(env, str);
if (string_size > n-1) {
LOGV("String too long");
dest[0] = '\0';
}else if (string_size == 0) {
dest[0] = '\0';
}else {
(*env)->GetStringUTFRegion(env,
str,
0,
(*env)->GetStringLength(env, str),
dest);
dest[string_size] = '\0';
}
}
================================================
FILE: jni/rtkjni.h
================================================
#ifndef _RTKJNI_H
#define _RTKJNI_H
#include "rtklib.h"
int registerRtkServerNatives(JNIEnv* env);
int registerRtkCommonNatives(JNIEnv* env);
int registerGTimeNatives(JNIEnv* env);
int registerSolutionOptionsNatives(JNIEnv* env);
int registerProcessingOptionsNatives(JNIEnv* env);
void processing_options2prcopt_t(JNIEnv* env, jobject thiz, prcopt_t *dst);
void solution_options2solopt_t(JNIEnv* env, jobject thiz, solopt_t *dst);
/* rtkjni.h */
void j_str2buf(JNIEnv* env, jstring str, char *dest, size_t n);
/* gtime.c */
void set_gtime(JNIEnv* env, jclass jgtime, gtime_t time);
#endif /* _RTKJNI_H */
================================================
FILE: jni/rtklib.mk
================================================
include $(CLEAR_VARS)
RTKLIB_PATH := RTKLIB
RTKLIB_CFLAGS := -DENAGLO -DENAGAL -DENAQZS -DENACMP -DNFREQ=3 -DTRACE
LOCAL_MODULE := rtklib
RTKLIB_CFLAGS += -DLAPACK
LOCAL_STATIC_LIBRARIES += clapack blas f2c
LOCAL_CFLAGS += -fvisibility=hidden
LOCAL_CFLAGS += $(RTKLIB_CFLAGS)
LOCAL_EXPORT_CFLAGS := $(RTKLIB_CFLAGS)
LOCAL_C_INCLUDES := $(LOCAL_PATH)/$(RTKLIB_PATH)/src
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/$(RTKLIB_PATH)/src
LOCAL_EXPORT_LDLIBS += -llog
LOCAL_SRC_FILES := \
$(RTKLIB_PATH)/src/convkml.c \
$(RTKLIB_PATH)/src/convrnx.c \
$(RTKLIB_PATH)/src/datum.c \
$(RTKLIB_PATH)/src/download.c \
$(RTKLIB_PATH)/src/ephemeris.c \
$(RTKLIB_PATH)/src/geoid.c \
$(RTKLIB_PATH)/src/ionex.c \
$(RTKLIB_PATH)/src/lambda.c \
$(RTKLIB_PATH)/src/options.c \
$(RTKLIB_PATH)/src/pntpos.c \
$(RTKLIB_PATH)/src/postpos.c \
$(RTKLIB_PATH)/src/ppp_ar.c \
$(RTKLIB_PATH)/src/ppp.c \
$(RTKLIB_PATH)/src/preceph.c \
$(RTKLIB_PATH)/src/qzslex.c \
$(RTKLIB_PATH)/src/rcvraw.c \
$(RTKLIB_PATH)/src/rinex.c \
$(RTKLIB_PATH)/src/rtcm2.c \
$(RTKLIB_PATH)/src/rtcm3.c \
$(RTKLIB_PATH)/src/rtcm3e.c \
$(RTKLIB_PATH)/src/rtcm.c \
$(RTKLIB_PATH)/src/rtkcmn.c \
$(RTKLIB_PATH)/src/rtkpos.c \
$(RTKLIB_PATH)/src/rtksvr.c \
$(RTKLIB_PATH)/src/sbas.c \
$(RTKLIB_PATH)/src/solution.c \
$(RTKLIB_PATH)/src/stream.c \
$(RTKLIB_PATH)/src/streamsvr.c \
$(RTKLIB_PATH)/src/tle.c
LOCAL_SRC_FILES += \
$(RTKLIB_PATH)/src/rcv/binex.c \
$(RTKLIB_PATH)/src/rcv/crescent.c \
$(RTKLIB_PATH)/src/rcv/gw10.c \
$(RTKLIB_PATH)/src/rcv/javad.c \
$(RTKLIB_PATH)/src/rcv/novatel.c \
$(RTKLIB_PATH)/src/rcv/nvs.c \
$(RTKLIB_PATH)/src/rcv/rcvlex.c \
$(RTKLIB_PATH)/src/rcv/skytraq.c \
$(RTKLIB_PATH)/src/rcv/sirf.c \
$(RTKLIB_PATH)/src/rcv/ss2.c \
$(RTKLIB_PATH)/src/rcv/ublox.c
LOCAL_SRC_FILES += log.c
TARGET-process-src-files-tags += $(call add-src-files-target-cflags, \
$(RTKLIB_PATH)/src/rtkcmn.c, -Ddgemm_=f2c_dgemm)
include $(BUILD_STATIC_LIBRARY)
================================================
FILE: jni/rtkserver.c
================================================
#include <android/log.h>
#include <jni.h>
#include <strings.h>
#include "rtklib.h"
#include "rtkjni.h"
#define TAG "nativeRtkServer"
#define LOGV(...) showmsg(__VA_ARGS__)
static jfieldID m_object_field;
static struct {
jfieldID ns;
jfieldID time;
jfieldID sat;
jfieldID az;
jfieldID el;
jfieldID freq1_snr;
jfieldID freq2_snr;
jfieldID freq3_snr;
jfieldID vsat;
} obs_status_fields;
struct native_ctx_t {
rtksvr_t rtksvr; // rtk server struct
stream_t monistr; // monitor stream
};
static jboolean open_trace_file(JNIEnv* env, int trace_level, gtime_t timestamp);
static jboolean open_solution_status_file(JNIEnv* env, int level, gtime_t timestamp);
static void RtkServer__create(JNIEnv* env, jobject thiz)
{
struct native_ctx_t *nctx;
LOGV("RtkServer__create()");
nctx = (struct native_ctx_t *)calloc(1, sizeof(struct native_ctx_t));
if (nctx == NULL) {
LOGV("calloc() error");
return;
}
rtksvrinit(&nctx->rtksvr);
strinit(&nctx->monistr);
(*env)->SetLongField(env, thiz, m_object_field, (long)nctx);
}
static void RtkServer__destroy(JNIEnv* env, jobject thiz)
{
struct native_ctx_t *nctx;
char *cmds[3]={0,};
LOGV("RtkServer__destroy()");
nctx = (struct native_ctx_t *)(uintptr_t)(*env)->GetLongField(env, thiz, m_object_field);
if (nctx == NULL) {
LOGV("nctx is null");
return;
}
rtksvrstop(&nctx->rtksvr,cmds);
rtksvrfree(&nctx->rtksvr);
free(nctx);
(*env)->SetLongField(env, thiz, m_object_field, 0L);
}
static jboolean RtkServer__rtksvrstart(JNIEnv* env, jclass thiz,
jint j_cycle,
jint j_buffsize,
jintArray j_strs,
jobjectArray j_paths,
jintArray j_format,
jint j_navsel,
jobjectArray j_cmds,
jobjectArray j_rcvopts,
jint j_nmea_cycle,
jint j_nmea_req,
jdoubleArray j_nmeapos,
jobject j_procopt,
jobject j_solopt1,
jobject j_solopt2
) {
struct native_ctx_t *nctx;
int i;
jobject obj;
jboolean res;
/* Input stream types */
int strs[8];
/* input stream paths */
const char *paths[8] = {NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL };
jstring paths_jstring[8] = {NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL };
/* input stream formats (STRFMT_???) */
int format[3];
/* input stream start commands */
const char *cmds[3] = {NULL, NULL, NULL};
jstring cmds_jstring[3] = {NULL, NULL, NULL};
/* receiver options */
const char *rcvopts[3] = {NULL, NULL, NULL};
char *rcvopts_jstring[3] = {NULL, NULL, NULL};
/* rtk processing options */
prcopt_t prcopt;
/* solution options */
solopt_t solopt[2];
/* nmea position */
double nmeapos[3];
res = JNI_FALSE;
for (i=0; i<sizeof(paths)/sizeof(paths[0]); ++i) {
paths_jstring[i] = (*env)->GetObjectArrayElement(env, j_paths, i);
if ((*env)->ExceptionOccurred(env))
goto rtksvrstart_end;
if (paths_jstring[i] != NULL) {
paths[i] = (*env)->GetStringUTFChars(env, paths_jstring[i], NULL);
if (paths[i] == NULL)
goto rtksvrstart_end;
}
}
for (i=0; i<sizeof(cmds)/sizeof(cmds[0]); ++i) {
cmds_jstring[i] = (*env)->GetObjectArrayElement(env, j_cmds, i);
if ((*env)->ExceptionOccurred(env))
goto rtksvrstart_end;
if (cmds_jstring[i] != NULL) {
cmds[i] = (*env)->GetStringUTFChars(env, cmds_jstring[i], NULL);
if (cmds[i] == NULL)
goto rtksvrstart_end;
}
}
for (i=0; i<sizeof(rcvopts)/sizeof(rcvopts[0]); ++i) {
rcvopts_jstring[i] = (*env)->GetObjectArrayElement(env, j_rcvopts, i);
if ((*env)->ExceptionOccurred(env))
goto rtksvrstart_end;
if (rcvopts_jstring[i] != NULL) {
rcvopts[i] = (*env)->GetStringUTFChars(env, rcvopts_jstring[i], NULL);
if (rcvopts[i] == NULL)
goto rtksvrstart_end;
}
}
(*env)->GetIntArrayRegion(env, j_strs, 0,
sizeof(strs)/sizeof(strs[0]), strs);
if ((*env)->ExceptionOccurred(env))
goto rtksvrstart_end;
(*env)->GetIntArrayRegion(env, j_format, 0,
sizeof(format)/sizeof(format[0]), format);
if ((*env)->ExceptionOccurred(env))
goto rtksvrstart_end;
(*env)->GetDoubleArrayRegion(env, j_nmeapos, 0,
sizeof(nmeapos)/sizeof(nmeapos[0]), nmeapos);
if ((*env)->ExceptionOccurred(env))
goto rtksvrstart_end;
solution_options2solopt_t(env, j_solopt1, &solopt[0]);
solution_options2solopt_t(env, j_solopt2, &solopt[1]);
processing_options2prcopt_t(env, j_procopt, &prcopt);
nctx = (struct native_ctx_t *)(uintptr_t)(*env)->GetLongField(env, thiz, m_object_field);
if (nctx == NULL) {
LOGV("nctx is null");
goto rtksvrstart_end;
}
{
/* Open trace / solution files */
gtime_t now;
now = timeget();
if (solopt[0].trace > 0)
open_trace_file(env, solopt[0].trace, now);
if (solopt[0].sstat > 0)
open_solution_status_file(env, solopt[0].sstat, now);
}
if ((*env)->ExceptionOccurred(env))
goto rtksvrstart_end;
if (!rtksvrstart(
&nctx->rtksvr,
/* SvrCycle ms */ j_cycle,
/* SvrBuffSize */ j_buffsize,
/* stream types */ strs,
/* paths */ (char **)paths,
/* input stream format */ format,
/* NavSelect */ j_navsel,
/* input stream start commands */ (char **)cmds,
/* receiver options */ (char **)rcvopts,
/* nmea request cycle ms */ j_nmea_cycle,
/* nmea request type */ j_nmea_req,
/* transmitted nmea position */ nmeapos,
/* rtk processing options */&prcopt,
/* solution options */ solopt,
/* monitor stream */ &nctx->monistr
)) {
}else {
res = JNI_TRUE;
}
rtksvrstart_end:
for (i=0; i<sizeof(paths)/sizeof(paths[0]); ++i) {
if (paths[i] != NULL)
(*env)->ReleaseStringUTFChars(env, paths_jstring[i], paths[i]);
}
for (i=0; i<sizeof(cmds)/sizeof(cmds[0]); ++i) {
if (cmds[i] != NULL)
(*env)->ReleaseStringUTFChars(env, cmds_jstring[i], cmds[i]);
}
for (i=0; i<sizeof(rcvopts)/sizeof(rcvopts[0]); ++i) {
if (rcvopts[i] != NULL)
(*env)->ReleaseStringUTFChars(env, rcvopts_jstring[i], rcvopts[i]);
}
if (!res) {
traceclose();
rtkclosestat();
}
return res;
}
static void RtkServer__stop(JNIEnv* env, jclass thiz, jobjectArray j_cmds)
{
unsigned i;
struct native_ctx_t *nctx;
const char *cmds[3]={NULL, NULL, NULL};
jstring cmds_jstring[3]={NULL, NULL, NULL};
LOGV("RtkServer__stop()");
nctx = (struct native_ctx_t *)(uintptr_t)(*env)->GetLongField(env, thiz, m_object_field);
if (nctx == NULL) {
LOGV("nctx is null");
return;
}
for (i=0; i<sizeof(cmds)/sizeof(cmds[0]); ++i) {
cmds_jstring[i] = (*env)->GetObjectArrayElement(env, j_cmds, i);
if ((*env)->ExceptionOccurred(env))
goto rtksvrstop_close;
if (cmds_jstring[i] != NULL) {
cmds[i] = (*env)->GetStringUTFChars(env, cmds_jstring[i], NULL);
if (cmds[i] == NULL)
goto rtksvrstop_close;
}
}
rtksvrstop_close:
rtksvrstop(&nctx->rtksvr,(char **)cmds);
traceclose();
rtkclosestat();
for (i=0; i<sizeof(cmds)/sizeof(cmds[0]); ++i) {
if (cmds[i] != NULL)
(*env)->ReleaseStringUTFChars(env, cmds_jstring[i], cmds[i]);
}
}
static jboolean get_path_in_storage_dir(JNIEnv* env, char *filename, size_t bufsize)
{
jclass clazz;
jmethodID get_path_in_dir_mid;
jstring j_filename;
jstring j_path;
clazz = (*env)->FindClass(env, "ru0xdc/rtklib/RtkServer");
if (clazz == NULL)
return JNI_FALSE;
get_path_in_dir_mid = (*env)->GetStaticMethodID(env, clazz, "getPathInStorageDirectory",
"(Ljava/lang/String;)Ljava/lang/String;");
if (get_path_in_dir_mid == NULL)
return JNI_FALSE;
j_filename = (*env)->NewStringUTF(env, filename);
if (j_filename == NULL)
return JNI_FALSE;
j_path = (*env)->CallStaticObjectMethod(env, clazz, get_path_in_dir_mid, j_filename);
if (j_path == NULL)
return JNI_FALSE;
j_str2buf(env, j_path, filename, bufsize);
return JNI_TRUE;
}
static jboolean open_trace_file(JNIEnv* env, int trace_level, gtime_t timestamp)
{
double ep[6];
char filename[1024];
if (trace_level <= 0)
return JNI_FALSE;
time2epoch(utc2gpst(timestamp),ep);
sprintf(filename,"rtkgps_%04.0f%02.0f%02.0f%02.0f%02.0f%02.0f.trace",
ep[0],ep[1],ep[2],ep[3],ep[4],ep[5]);
if (!get_path_in_storage_dir(env, filename, sizeof(filename)))
return JNI_FALSE;
LOGV("open_trace_file() %s", filename);
traceopen(filename);
tracelevel(trace_level);
return JNI_TRUE;
}
static jboolean open_solution_status_file(JNIEnv* env, int level, gtime_t timestamp)
{
double ep[6];
char filename[1024];
if (level <= 0)
return JNI_FALSE;
time2epoch(utc2gpst(timestamp),ep);
sprintf(filename,"rtkgps_%04.0f%02.0f%02.0f%02.0f%02.0f%02.0f.stat",
ep[0],ep[1],ep[2],ep[3],ep[4],ep[5]);
if (!get_path_in_storage_dir(env, filename, sizeof(filename)))
return JNI_FALSE;
LOGV("open_solution_status_file() %s", filename);
rtkopenstat(filename, level);
return JNI_TRUE;
}
static void RtkServer__get_stream_status(JNIEnv* env, jclass thiz, jobject status_obj)
{
struct native_ctx_t *nctx;
jmethodID set_status_mid;
jstring jmsg;
int sstat[MAXSTRRTK];
char msg[MAXSTRMSG] = {0,};
nctx = (struct native_ctx_t *)(uintptr_t)(*env)->GetLongField(env, thiz, m_object_field);
if (nctx == NULL) {
LOGV("nctx is null");
return;
}
set_status_mid = (*env)->GetMethodID(env,
(*env)->GetObjectClass(env, status_obj),
"setStatus",
"(IIIIIIIILjava/lang/String;)V");
if (set_status_mid == NULL) {
LOGV("setStatus() not found");
return;
}
rtksvrsstat(&nctx->rtksvr, sstat, msg);
jmsg = (*env)->NewStringUTF(env, msg);
if (jmsg == NULL)
return;
(*env)->CallVoidMethod(env, status_obj, set_status_mid,
(jint)sstat[0], (jint)sstat[1], (jint)sstat[2],
(jint)sstat[3], (jint)sstat[4], (jint)sstat[5],
(jint)sstat[6], (jint)sstat[7],
jmsg);
}
static void RtkServer__get_observation_status(JNIEnv* env, jclass thiz,
jint receiver, jobject status_obj)
{
struct native_ctx_t *nctx;
jobject jgtime, jtmp;
int ns;
int i;
jint *jsnr;
gtime_t time;
int sat[MAXSAT];
int vsat[MAXSAT];
double az[MAXSAT];
double el[MAXSAT];
int *snr0[MAXSAT];
int snr[MAXSAT][NFREQ];
nctx = (struct native_ctx_t *)(uintptr_t)(*env)->GetLongField(env, thiz, m_object_field);
if (nctx == NULL) {
LOGV("nctx is null");
return;
}
for (i=0;i<MAXSAT;i++) {
snr0[i]=snr[i];
}
ns = rtksvrostat(&nctx->rtksvr, receiver,
&time, sat, az, el, snr0, vsat);
if (ns > MAXSAT)
ns = MAXSAT;
// Set number of satellites
(*env)->SetIntField(env, status_obj, obs_status_fields.ns, ns);
if (ns == 0)
return;
// Set time
jgtime = (*env)->GetObjectField(env, status_obj, obs_status_fields.time);
if (jgtime == NULL) {
LOGV("time is null");
}
set_gtime(env, jgtime, time);
// Satellite data
jtmp = (*env)->GetObjectField(env, status_obj, obs_status_fields.sat);
(*env)->SetIntArrayRegion(env, jtmp, 0, ns, sat);
jtmp = (*env)->GetObjectField(env, status_obj, obs_status_fields.az);
(*env)->SetDoubleArrayRegion(env, jtmp, 0, ns, az);
jtmp = (*env)->GetObjectField(env, status_obj, obs_status_fields.el);
(*env)->SetDoubleArrayRegion(env, jtmp, 0, ns, el);
// freq1 snr
jtmp = (*env)->GetObjectField(env, status_obj, obs_status_fields.freq1_snr);
jsnr = (*env)->GetIntArrayElements(env, jtmp, NULL);
if (jsnr != NULL) {
for (i=0; i<ns; ++i) jsnr[i] = snr[i][0];
(*env)->ReleaseIntArrayElements(env, jtmp, jsnr, 0);
}
jtmp = (*env)->GetObjectField(env, status_obj, obs_status_fields.freq2_snr);
jsnr = (*env)->GetIntArrayElements(env, jtmp, NULL);
if (jsnr != NULL) {
for (i=0; i<ns; ++i) jsnr[i] = snr[i][1];
(*env)->ReleaseIntArrayElements(env, jtmp, jsnr, 0);
}
jtmp = (*env)->GetObjectField(env, status_obj, obs_status_fields.freq3_snr);
jsnr = (*env)->GetIntArrayElements(env, jtmp, NULL);
if (jsnr != NULL) {
for (i=0; i<ns; ++i) jsnr[i] = snr[i][2];
(*env)->ReleaseIntArrayElements(env, jtmp, jsnr, 0);
}
// vsat
jtmp = (*env)->GetObjectField(env, status_obj, obs_status_fields.vsat);
(*env)->SetIntArrayRegion(env, jtmp, 0, ns, vsat);
}
static void RtkServer__write_commands(JNIEnv* env, jclass thiz,
jobjectArray j_cmds)
{
unsigned i;
struct native_ctx_t *nctx;
const char *cmds[3] = {NULL, NULL, NULL};
jstring cmds_jstring[3] = {NULL, NULL, NULL};
LOGV("RtkServer__write_start_commands() ");
nctx = (struct native_ctx_t *)(uintptr_t)(*env)->GetLongField(env, thiz, m_object_field);
if (nctx == NULL) {
LOGV("nctx is null");
return;
}
for (i=0; i<sizeof(cmds)/sizeof(cmds[0]); ++i) {
cmds_jstring[i] = (*env)->GetObjectArrayElement(env, j_cmds, i);
if ((*env)->ExceptionOccurred(env))
goto write_commands_end;
if (cmds_jstring[i] != NULL) {
cmds[i] = (*env)->GetStringUTFChars(env, cmds_jstring[i], NULL);
if (cmds[i] == NULL)
goto write_commands_end;
}
}
rtksvrlock(&nctx->rtksvr);
if (cmds[0]) strsendcmd(&nctx->rtksvr.stream[0], cmds[0]);
if (cmds[1]) strsendcmd(&nctx->rtksvr.stream[1], cmds[1]);
if (cmds[2]) strsendcmd(&nctx->rtksvr.stream[2], cmds[2]);
rtksvrunlock(&nctx->rtksvr);
write_commands_end:
for (i=0; i<sizeof(cmds)/sizeof(cmds[0]); ++i) {
if (cmds[i] != NULL)
(*env)->ReleaseStringUTFChars(env, cmds_jstring[i], cmds[i]);
}
}
static int set_solution_buffer(JNIEnv* env, jobject j_solbuf, const sol_t *solutions, int cnt)
{
int i;
static jfieldID m_n_sol_field = NULL;
static jmethodID set_solution_method = NULL;
if (m_n_sol_field == NULL) {
jobject claz = (*env)->GetObjectClass(env, j_solbuf);
m_n_sol_field = (*env)->GetFieldID(env, claz, "mNSol", "I");
if (m_n_sol_field == NULL) {
LOGV("SolutionBuffer$mNSol field not found");
return -1;
}
set_solution_method = (*env)->GetMethodID(env,
claz,
"setSolution",
"(IJDIIIFFDDDDDDFFFFFFDDDDDD)V"
);
if (set_solution_method == NULL) {
LOGV("setSolution() not found");
return -1;
}
}
for (i=0; i<cnt; ++i) {
const sol_t *s = &solutions[i];
(*env)->CallVoidMethod(env, j_solbuf, set_solution_method,
i,
(jlong)s->time.time,
(jlong)s->time.sec,
(jint)s->type,
(jint)s->stat,
(jint)s->ns,
(jfloat)s->age,
(jfloat)s->ratio,
(jdouble)s->rr[0], (jdouble)s->rr[1], (jdouble)s->rr[2],
(jdouble)s->rr[3], (jdouble)s->rr[4], (jdouble)s->rr[5],
(jfloat)s->qr[0], (jfloat)s->qr[1], (jfloat)s->qr[2],
(jfloat)s->qr[3], (jfloat)s->qr[4], (jfloat)s->qr[5],
(jdouble)s->dtr[0], (jdouble)s->dtr[1], (jdouble)s->dtr[2],
(jdouble)s->dtr[3], (jdouble)s->dtr[4], (jdouble)s->dtr[5]
);
}
(*env)->SetIntField(env, j_solbuf, m_n_sol_field, cnt);
return cnt;
}
static void RtkServer__read_solution_buffer(JNIEnv* env, jclass thiz,
jobject j_solbuf)
{
struct native_ctx_t *nctx;
nctx = (struct native_ctx_t *)(uintptr_t)(*env)->GetLongField(env, thiz, m_object_field);
if (nctx == NULL) {
LOGV("nctx is null");
return;
}
rtksvrlock(&nctx->rtksvr);
set_solution_buffer(env, j_solbuf, nctx->rtksvr.solbuf, nctx->rtksvr.nsol);
nctx->rtksvr.nsol=0;
rtksvrunlock(&nctx->rtksvr);
}
static int set_rtk_status(JNIEnv* env, jobject j_rtk_control_result, rtk_t *status)
{
static jfieldID sol_field_id = NULL;
static jmethodID set_solution_method_id = NULL;
static jmethodID set_status_method_id = NULL;
jobject sol_obj;
if (sol_field_id == NULL) {
jobject claz = (*env)->GetObjectClass(env, j_rtk_control_result);
sol_field_id = (*env)->GetFieldID(env, claz, "sol", "Lru0xdc/rtklib/Solution;");
if (sol_field_id == NULL) {
LOGV("Solution field not found");
return -1;
}
}
if (set_status_method_id == NULL) {
jobject claz = (*env)->GetObjectClass(env, j_rtk_control_result);
set_status_method_id = (*env)->GetMethodID(env,
claz,
"setStatus1",
"(DDDDDDIIDILjava/lang/String;)V"
);
if (set_status_method_id == NULL) {
LOGV("setStatus1() not found");
return -1;
}
}
sol_obj = (*env)->GetObjectField(env, j_rtk_control_result, sol_field_id);
if (set_solution_method_id == NULL) {
jobject claz = (*env)->GetObjectClass(env, sol_obj);
set_solution_method_id = (*env)->GetMethodID(env,
claz,
"setSolution",
"(JDIIIFFDDDDDDFFFFFFDDDDDD)V"
);
if (set_solution_method_id == NULL) {
LOGV("setSolution() not found");
return -1;
}
}
// solution
(*env)->CallVoidMethod(env, sol_obj, set_solution_method_id,
(jlong)status->sol.time.time,
(jlong)status->sol.time.sec,
(jint)status->sol.type,
(jint)status->sol.stat,
(jint)status->sol.ns,
(jfloat)status->sol.age,
(jfloat)status->sol.ratio,
(jdouble)status->sol.rr[0], (jdouble)status->sol.rr[1], (jdouble)status->sol.rr[2],
(jdouble)status->sol.rr[3], (jdouble)status->sol.rr[4], (jdouble)status->sol.rr[5],
(jfloat)status->sol.qr[0], (jfloat)status->sol.qr[1], (jfloat)status->sol.qr[2],
(jfloat)status->sol.qr[3], (jfloat)status->sol.qr[4], (jfloat)status->sol.qr[5],
(jdouble)status->sol.dtr[0], (jdouble)status->sol.dtr[1], (jdouble)status->sol.dtr[2],
(jdouble)status->sol.dtr[3], (jdouble)status->sol.dtr[4], (jdouble)status->sol.dtr[5]
);
// RTK fields
{
jstring errmsg;
if (status->neb == 0) {
errmsg = (*env)->NewStringUTF(env, "");
}else {
status->errbuf[status->neb-1] = '\0';
errmsg = (*env)->NewStringUTF(env, status->errbuf);
}
if (errmsg == NULL)
return -1;
(*env)->CallVoidMethod(env, j_rtk_control_result, set_status_method_id,
(jdouble)status->rb[0], (jdouble)status->rb[1], (jdouble)status->rb[2],
(jdouble)status->rb[3], (jdouble)status->rb[4], (jdouble)status->rb[5],
status->nx, status->na, (jdouble)status->tt, status->nfix,
errmsg);
}
return 0;
}
static void RtkServer__get_rtk_status(JNIEnv* env, jclass thiz, jobject j_rtk_control_result)
{
struct native_ctx_t *nctx;
nctx = (struct native_ctx_t *)(uintptr_t)(*env)->GetLongField(env, thiz, m_object_field);
if (nctx == NULL) {
LOGV("nctx is null");
return;
}
rtksvrlock(&nctx->rtksvr);
set_rtk_status(env, j_rtk_control_result, &nctx->rtksvr.rtk);
rtksvrunlock(&nctx->rtksvr);
}
static JNINativeMethod nativeMethods[] = {
{"_create", "()V", (void*)RtkServer__create},
{"_destroy", "()V", (void*)RtkServer__destroy},
{"_rtksvrstart", "("
"I"
"I"
"[I"
"[Ljava/lang/String;"
"[I"
"I"
"[Ljava/lang/String;"
"[Ljava/lang/String;"
"I"
"I"
"[D"
"Lru0xdc/rtklib/ProcessingOptions$Native;"
"Lru0xdc/rtklib/SolutionOptions$Native;"
"Lru0xdc/rtklib/SolutionOptions$Native;"
")Z"
, (void*)RtkServer__rtksvrstart},
{"_stop", "([Ljava/lang/String;)V", (void*)RtkServer__stop},
{"_getStreamStatus", "(Lru0xdc/rtklib/RtkServerStreamStatus;)V", (void*)RtkServer__get_stream_status},
{"_readSolutionBuffer", "(Lru0xdc/rtklib/Solution$SolutionBuffer;)V", (void*)RtkServer__read_solution_buffer},
{"_getRtkStatus", "(Lru0xdc/rtklib/RtkControlResult;)V", (void*)RtkServer__get_rtk_status},
{"_getObservationStatus", "(ILru0xdc/rtklib/RtkServerObservationStatus$Native;)V", (void*)RtkServer__get_observation_status},
{"_writeCommands", "([Ljava/lang/String;)V", (void*)RtkServer__write_commands}
};
static int init_observation_status_fields(JNIEnv* env) {
jclass clazz = (*env)->FindClass(env, "ru0xdc/rtklib/RtkServerObservationStatus$Native");
if (clazz == NULL)
return JNI_FALSE;
obs_status_fields.ns = (*env)->GetFieldID(env, clazz, "ns", "I");
obs_status_fields.time = (*env)->GetFieldID(env, clazz, "time", "Lru0xdc/rtklib/GTime;");
obs_status_fields.sat = (*env)->GetFieldID(env, clazz, "sat", "[I");
obs_status_fields.az = (*env)->GetFieldID(env, clazz, "az", "[D");
obs_status_fields.el = (*env)->GetFieldID(env, clazz, "el", "[D");
obs_status_fields.freq1_snr = (*env)->GetFieldID(env, clazz, "freq1Snr", "[I");
obs_status_fields.freq2_snr = (*env)->GetFieldID(env, clazz, "freq2Snr", "[I");
obs_status_fields.freq3_snr = (*env)->GetFieldID(env, clazz, "freq3Snr", "[I");
obs_status_fields.vsat = (*env)->GetFieldID(env, clazz, "vsat", "[I");
if ((obs_status_fields.ns == NULL)
|| (obs_status_fields.time == NULL)
|| (obs_status_fields.sat == NULL)
|| (obs_status_fields.az == NULL)
|| (obs_status_fields.el == NULL)
|| (obs_status_fields.freq1_snr == NULL)
|| (obs_status_fields.freq2_snr == NULL)
|| (obs_status_fields.freq3_snr == NULL)
|| (obs_status_fields.vsat == NULL)) {
LOGV("ru0xdc/rtklib/RtkServerObservationStatus fields not found:%s%s%s%s%s%s%s%s%s",
(obs_status_fields.ns == NULL ? " ns" : ""),
(obs_status_fields.time == NULL ? " time" : ""),
(obs_status_fields.sat == NULL ? " sat" : ""),
(obs_status_fields.az == NULL ? " az" : ""),
(obs_status_fields.el == NULL ? " el" : ""),
(obs_status_fields.freq1_snr == NULL ? " freq1_snr " : ""),
(obs_status_fields.freq2_snr == NULL ? " freq2_snr " : ""),
(obs_status_fields.freq3_snr == NULL ? " freq3_snr " : ""),
(obs_status_fields.vsat == NULL ? " vsat" : "")
);
return JNI_FALSE;
}
return JNI_TRUE;
}
int registerRtkServerNatives(JNIEnv* env) {
/* look up the class */
jclass clazz = (*env)->FindClass(env, "ru0xdc/rtklib/RtkServer");
if (clazz == NULL)
return JNI_FALSE;
if ((*env)->RegisterNatives(env, clazz, nativeMethods, sizeof(nativeMethods)
/ sizeof(nativeMethods[0])) != JNI_OK)
return JNI_FALSE;
m_object_field = (*env)->GetFieldID(env, clazz, "mObject", "J");
if (m_object_field == NULL)
return JNI_FALSE;
if ( ! init_observation_status_fields(env))
return JNI_FALSE;
return JNI_TRUE;
}
================================================
FILE: jni/solopt.c
================================================
#include <android/log.h>
#include <jni.h>
#include <strings.h>
#include "rtklib.h"
#include "rtkjni.h"
#define TAG "nativeSolutionOptions"
#define LOGV(...) showmsg(__VA_ARGS__)
#define SOLUTION_OPTIONS_CLASS "ru0xdc/rtklib/SolutionOptions$Native"
static struct {
jfieldID posf;
jfieldID times;
jfieldID timef;
jfieldID timeu;
jfieldID degf;
jfieldID outhead;
jfieldID outopt;
jfieldID datum;
jfieldID height;
jfieldID geoid;
jfieldID solstatic;
jfieldID sstat;
jfieldID trace;
jfieldID nmeaintv_rmcgga;
jfieldID nmeaintv_gsv;
jfieldID sep;
jfieldID prog;
} ru0xdc_rtklib_solopt_fields;
static int init_solopt_fields_methods(JNIEnv* env, jclass clazz);
void solution_options2solopt_t(JNIEnv* env, jobject thiz, solopt_t *dst)
{
int string_size;
jstring str;
jclass clazz;
clazz = (*env)->FindClass(env, SOLUTION_OPTIONS_CLASS);
if (clazz == NULL)
return;
if (!(*env)->IsInstanceOf(env, thiz, clazz)) {
(*env)->ThrowNew(env, (*env)->FindClass(env, "Ljava/lang/ClassCastException"), NULL);
return;
}
#define GET_FIELD(_name, _type) { dst->_name = (*env)->Get ## _type ## Field(env, thiz, ru0xdc_rtklib_solopt_fields._name); }
GET_FIELD(posf, Int)
GET_FIELD(times, Int)
GET_FIELD(timef, Int)
GET_FIELD(timeu, Int)
GET_FIELD(degf, Int)
GET_FIELD(outhead, Boolean)
GET_FIELD(outopt, Boolean)
GET_FIELD(datum, Int)
GET_FIELD(height, Int)
GET_FIELD(geoid, Int)
GET_FIELD(solstatic, Int)
GET_FIELD(sstat, Int)
GET_FIELD(trace, Int)
#undef GET_FIELD
dst->nmeaintv[0] = (*env)->GetDoubleField(env, thiz, ru0xdc_rtklib_solopt_fields.nmeaintv_rmcgga);
dst->nmeaintv[1] = (*env)->GetDoubleField(env, thiz, ru0xdc_rtklib_solopt_fields.nmeaintv_gsv);
str = (*env)->GetObjectField(env, thiz, ru0xdc_rtklib_solopt_fields.sep);
j_str2buf(env, str, dst->sep, sizeof(dst->sep));
str = (*env)->GetObjectField(env, thiz, ru0xdc_rtklib_solopt_fields.prog);
j_str2buf(env, str, dst->prog, sizeof(dst->prog));
}
static void SolutionOptions_load_defaults(JNIEnv* env, jobject thiz)
{
jstring jstr;
if (ru0xdc_rtklib_solopt_fields.posf == NULL) {
if ( ! init_solopt_fields_methods(env, (*env)->GetObjectClass(env, thiz)))
return;
}
#define SET_FIELD(_name, _type) { (*env)->Set ## _type ## Field(env, thiz, ru0xdc_rtklib_solopt_fields._name, solopt_default._name); }
SET_FIELD(posf, Int)
SET_FIELD(times, Int)
SET_FIELD(timef, Int)
SET_FIELD(timeu, Int)
SET_FIELD(degf, Int)
SET_FIELD(outhead, Boolean)
SET_FIELD(outopt, Boolean)
SET_FIELD(datum, Int)
SET_FIELD(height, Int)
SET_FIELD(geoid, Int)
SET_FIELD(solstatic, Int)
SET_FIELD(sstat, Int)
SET_FIELD(trace, Int)
#undef SET_FIELD
(*env)->SetDoubleField(env, thiz, ru0xdc_rtklib_solopt_fields.nmeaintv_rmcgga, solopt_default.nmeaintv[0]);
(*env)->SetDoubleField(env, thiz, ru0xdc_rtklib_solopt_fields.nmeaintv_gsv, solopt_default.nmeaintv[1]);
jstr = (*env)->NewStringUTF(env, solopt_default.sep);
if (jstr == NULL)
return;
(*env)->SetObjectField(env, thiz, ru0xdc_rtklib_solopt_fields.sep, jstr);
jstr = (*env)->NewStringUTF(env, solopt_default.prog);
if (jstr == NULL)
return;
(*env)->SetObjectField(env, thiz, ru0xdc_rtklib_solopt_fields.prog, jstr);
}
static int init_solopt_fields_methods(JNIEnv* env, jclass clazz) {
#define INIT_FIELD(_name, _type) { \
ru0xdc_rtklib_solopt_fields._name = (*env)->GetFieldID(env, clazz, #_name, _type); \
if (ru0xdc_rtklib_solopt_fields._name == NULL) { \
LOGV("ru0xdc/rtklib/SolutionOptions$Native$%s not found", #_name); \
return JNI_FALSE; \
} \
}
INIT_FIELD(posf, "I")
INIT_FIELD(times, "I")
INIT_FIELD(timef, "I")
INIT_FIELD(timeu, "I")
INIT_FIELD(degf, "I")
INIT_FIELD(outhead, "Z")
INIT_FIELD(outopt, "Z")
INIT_FIELD(datum, "I")
INIT_FIELD(height, "I")
INIT_FIELD(geoid, "I")
INIT_FIELD(solstatic, "I")
INIT_FIELD(sstat, "I")
INIT_FIELD(trace, "I")
INIT_FIELD(nmeaintv_rmcgga, "D")
INIT_FIELD(nmeaintv_gsv, "D")
INIT_FIELD(sep, "Ljava/lang/String;")
INIT_FIELD(prog, "Ljava/lang/String;")
#undef INIT_FIELD
return JNI_TRUE;
}
static JNINativeMethod nativeMethods[] = {
{ "_loadDefaults", "()V", (void*)SolutionOptions_load_defaults }
};
int registerSolutionOptionsNatives(JNIEnv* env) {
int result = -1;
/* look up the class */
jclass clazz = (*env)->FindClass(env, SOLUTION_OPTIONS_CLASS);
if (clazz == NULL)
return JNI_FALSE;
if ((*env)->RegisterNatives(env, clazz, nativeMethods, sizeof(nativeMethods)
/ sizeof(nativeMethods[0])) != JNI_OK)
return JNI_FALSE;
if ( ! init_solopt_fields_methods(env, clazz))
return JNI_FALSE;
return JNI_TRUE;
}
================================================
FILE: libs/osmdroid-android-3.0.11-SNAPSHOT.jar.properties
================================================
src=../vendor/OsmDroid/osmdroid-android/src/main/java
================================================
FILE: libs/osmdroid-third-party-3.0.10.jar.properties
================================================
src=../vendor/OsmDroid/osmdroid-third-party/src/main/java
================================================
FILE: proguard-annotations.txt
================================================
#
# This ProGuard configuration file specifies how annotations can be used
# to configure the processing of other code.
# Usage:
# java -jar proguard.jar @annotations.pro -libraryjars annotations.jar ...
#
# Note that the other input/output options still have to be specified.
# If you specify them in a separate file, you can simply include this file:
# -include annotations.pro
#
# You can add any other options that are required. For instance, if you are
# processing a library, you can still include the options from library.pro.
# The annotations are defined in the accompanying jar. For now, we'll start
# with these. You can always define your own annotations, if necessary.
-libraryjars libs/proguardannotations.jar
# The following annotations can be specified with classes and with class
# members.
# @Keep specifies not to shrink, optimize, or obfuscate the annotated class
# or class member as an entry point.
-keep @proguard.annotation.Keep class *
-keepclassmembers class * {
@proguard.annotation.Keep *;
}
# @KeepName specifies not to optimize or obfuscate the annotated class or
# class member as an entry point.
-keepnames @proguard.annotation.KeepName class *
-keepclassmembernames class * {
@proguard.annotation.KeepName *;
}
# The following annotations can only be specified with classes.
# @KeepImplementations and @KeepPublicImplementations specify to keep all,
# resp. all public, implementations or extensions of the annotated class as
# entry points. Note the extension of the java-like syntax, adding annotations
# before the (wild-carded) interface name.
-keep class * implements @proguard.annotation.KeepImplementations *
-keep public class * implements @proguard.annotation.KeepPublicImplementations *
# @KeepApplication specifies to keep the annotated class as an application,
# together with its main method.
-keepclasseswithmembers @proguard.annotation.KeepApplication public class * {
public static void main(java.lang.String[]);
}
# @KeepClassMembers, @KeepPublicClassMembers, and
# @KeepPublicProtectedClassMembers specify to keep all, all public, resp.
# all public or protected, class members of the annotated class from being
# shrunk, optimized, or obfuscated as entry points.
-keepclassmembers @proguard.annotation.KeepClassMembers class * {
*;
}
-keepclassmembers @proguard.annotation.KeepPublicClassMembers class * {
public *;
}
-keepclassmembers @proguard.annotation.KeepPublicProtectedClassMembers class * {
public protected *;
}
# @KeepClassMemberNames, @KeepPublicClassMemberNames, and
# @KeepPublicProtectedClassMemberNames specify to keep all, all public, resp.
# all public or protected, class members of the annotated class from being
# optimized or obfuscated as entry points.
-keepclassmembernames @proguard.annotation.KeepClassMemberNames class * {
*;
}
-keepclassmembernames @proguard.annotation.KeepPublicClassMemberNames class * {
public *;
}
-keepclassmembernames @proguard.annotation.KeepPublicProtectedClassMemberNames class * {
public protected *;
}
# @KeepGettersSetters and @KeepPublicGettersSetters specify to keep all, resp.
# all public, getters and setters of the annotated class from being shrunk,
# optimized, or obfuscated as entry points.
-keepclassmembers @proguard.annotation.KeepGettersSetters class * {
void set*(***);
void set*(int, ***);
boolean is*();
boolean is*(int);
*** get*();
*** get*(int);
}
-keepclassmembers @proguard.annotation.KeepPublicGettersSetters class * {
public void set*(***);
public void set*(int, ***);
public boolean is*();
public boolean is*(int);
public *** get*();
public *** get*(int);
}
================================================
FILE: proguard-project.txt
================================================
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
-dontobfuscate
-dontwarn butterknife.Views$InjectViewProcessor
-dontwarn org.osmdroid.google.**
-dontwarn org.osmdroid.contributor.GpxToPHPUploader*
-keep class **$$ViewInjector { *; }
-keepclasseswithmembers class * {
native <methods>;
}
#ACRA specifics
-renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable
-keepattributes *Annotation*
-keep class org.acra.ACRA {
*;
}
-keep class org.acra.ReportingInteractionMode {
*;
}
-keepnames class org.acra.sender.HttpSender$** {
*;
}
-keepnames class org.acra.ReportField {
*;
}
-keep public class org.acra.ErrorReporter {
public void addCustomData(java.lang.String,java.lang.String);
public void putCustomData(java.lang.String,java.lang.String);
public void removeCustomData(java.lang.String);
}
-keep public class org.acra.ErrorReporter {
public void handleSilentException(java.lang.Throwable);
}
================================================
FILE: project.properties
================================================
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-annotations.txt:proguard-project.txt
# Project target.
target=android-17
================================================
FILE: res/drawable/map_point_marker.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid
android:color="#00ff00" />
<size
android:height="8dp"
android:width="8dp"
/>
</shape>
================================================
FILE: res/layout/activity_about.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:id="@+id/textView2"
style="@android:style/TextAppearance.Large"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_centerInParent="false"
android:layout_centerVertical="false"
android:layout_marginLeft="80dp"
android:layout_marginTop="80dp"
android:text="@string/app_name" />
<TextView
android:id="@+id/version_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/textView2"
android:layout_below="@+id/textView2"
android:layout_marginTop="20dp"
android:text="@string/app_version_label" />
<TextView
android:id="@+id/version"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/version_label"
android:layout_alignBottom="@+id/version_label"
android:layout_marginLeft="8dp"
android:layout_toRightOf="@id/version_label" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/version_label"
android:layout_below="@+id/version_label"
android:layout_marginTop="5dp"
android:autoLink="web"
android:gravity="center_vertical"
android:minHeight="48dp"
android:text="@string/app_url" />
<Button
android:id="@+id/legacyInfoButton"
style="android:buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/version_label"
android:layout_below="@+id/version_label"
android:layout_marginTop="60dp"
android:onClick="onLegacyInfoButtonClicked"
android:text="@string/app_legacy_info_label" />
</RelativeLayout>
================================================
FILE: res/layout/activity_input_stream_settings.xml
================================================
<android.support.v4.view.ViewPager xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="match_parent" />
================================================
FILE: res/layout/activity_main.xml
================================================
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<!-- The main content view -->
<FrameLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<!-- The navigation drawer -->
<include layout="@layout/navigation_drawer"/>
</android.support.v4.widget.DrawerLayout>
================================================
FILE: res/layout/activity_settings.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<fragment
android:id="@+id/settings1Fragment"
class="ru0xdc.rtkgps.settings.ProcessingOptions1Fragment"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<fragment
android:id="@+id/solutionOutputFragment"
class="ru0xdc.rtkgps.settings.SolutionOutputSettingsFragment"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
</ScrollView>
================================================
FILE: res/layout/activity_startup_shutdown_commands.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<ScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:orientation="vertical" >
<CheckBox
android:id="@+id/send_commands_at_startup"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/send_commands_at_startup"
android:onClick="onSendCommandsAtStartupClicked" />
<EditText
android:id="@+id/commands_at_startup"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="top"
android:hint="@string/commands_at_startup"
android:inputType="textMultiLine|textNoSuggestions|textVisiblePassword"
android:minLines="5"
android:textSize="12sp"
android:typeface="monospace" />
<CheckBox
android:id="@+id/send_commands_at_shutdown"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:text="@string/send_commands_at_shutdown"
android:onClick="onSendCommandsAtShutdownClicked" />
<EditText
android:id="@+id/commands_at_shutdown"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="top"
android:hint="@string/commands_at_shutdown"
android:inputType="textMultiLine|textNoSuggestions|textVisiblePassword"
android:minLines="5"
android:textSize="12sp"
android:typeface="monospace" />
</LinearLayout>
</ScrollView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:divider="?android:attr/dividerHorizontal"
android:showDividers="beginning"
android:dividerPadding="0dip">
<LinearLayout
style="?android:attr/buttonBarStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<Button
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:onClick="onCancelButtonClicked"
android:text="@android:string/cancel" />
<Button
android:id="@+id/load_startup_shutdown_commands"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:onClick="onLoadButtonClicked"
android:text="@string/load_startup_shutdown_commands" />
<Button
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:onClick="onOkButtonClicked"
android:text="@android:string/ok" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
================================================
FILE: res/layout/activity_station_position.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<CheckBox
android:id="@+id/use_rtcm_antenna_position"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="10dp"
android:text="@string/stapos_rtcm_pos" />
<Spinner
android:id="@+id/position_format"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="10dp" />
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp" >
<TableRow
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<TextView
android:id="@+id/coord1_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|bottom"
android:layout_marginBottom="3dp"
android:layout_marginRight="2dp"
android:gravity="end"
android:minEms="3" />
<EditText
android:id="@+id/coord1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="8"
android:inputType="numberDecimal" >
<requestFocus />
</EditText>
</TableRow>
<TableRow
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/coord2_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|bottom"
android:layout_marginBottom="3dp"
android:layout_marginRight="2dp"
android:gravity="end"
android:minEms="3" />
<EditText
android:id="@+id/coord2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:inputType="numberDecimal" />
</TableRow>
<TableRow
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/coord3_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|bottom"
android:layout_marginBottom="3dp"
android:layout_marginRight="2dp"
android:gravity="end"
android:minEms="3" />
<EditText
android:id="@+id/coord3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:inputType="numberDecimal" />
</TableRow>
</TableLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:divider="?android:attr/dividerHorizontal"
android:dividerPadding="0dip"
android:orientation="vertical"
android:showDividers="beginning" >
<LinearLayout
style="?android:attr/buttonBarStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<Button
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:onClick="onCancelButtonClicked"
android:text="@android:string/cancel" />
<Button
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:onClick="onOkButtonClicked"
android:text="@android:string/ok" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
================================================
FILE: res/layout/activity_stream_settings_dialog.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="?android:dividerHorizontal"
android:dividerPadding="10dp"
android:orientation="vertical"
android:showDividers="middle" >
<LinearLayout
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="vertical"
android:minHeight="64dp" />
<Button
android:id="@android:id/closeButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="closeButtonClicked"
android:text="@android:string/ok"
style="@android:style/Widget.Holo.Button.Borderless"
/>
</LinearLayout>
================================================
FILE: res/layout/fragment_map.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:rtkgps="http://schemas.android.com/apk/res/ru0xdc.rtkgps"
android:id="@+id/map_container"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ru0xdc.rtkgps.view.StreamIndicatorsView
android:id="@+id/streamIndicatorsView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top|right"
android:layout_marginBottom="5dp"
android:layout_marginTop="?android:attr/actionBarSize"
android:background="#aa333333"
android:padding="4dp" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|left"
android:orientation="vertical"
android:background="#aa333333"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:paddingTop="5dp">
<ru0xdc.rtkgps.view.GTimeView
android:id="@+id/gtimeView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:ellipsize="end"
android:maxLines="1"
android:textColor="@android:color/white"
rtkgps:time_format="local" />
<ru0xdc.rtkgps.view.SolutionView
android:id="@+id/solutionView"
android:layout_width="wrap_content"
rtkgps:textColor="@android:color/white"
android:layout_height="wrap_content" />
</LinearLayout>
</FrameLayout>
================================================
FILE: res/layout/fragment_status.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:custom="http://schemas.android.com/apk/res/ru0xdc.rtkgps"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="1dp"
android:layout_marginTop="?android:attr/actionBarSize"
android:orientation="vertical"
tools:context=".MainActivity"
tools:ignore="SmallSp" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:clipChildren="false"
android:gravity="center_vertical" >
<ru0xdc.rtkgps.view.GTimeView
android:id="@+id/gtimeView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ellipsize="end"
android:maxLines="1"
custom:time_format="gps_tow" />
<ru0xdc.rtkgps.view.StreamIndicatorsView
android:id="@+id/streamIndicatorsView"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
<ru0xdc.rtkgps.view.SolutionView
android:id="@+id/solutionView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_marginTop="10dp" />
<TextView
android:id="@+id/streamStatus"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginLeft="3dp"
android:layout_marginTop="5dp"
android:textColor="@android:color/darker_gray"
android:textIsSelectable="true"
android:textSize="10sp" />
<include layout="@layout/include_status_view_widget"/>
</LinearLayout>
================================================
FILE: res/layout/include_status_view_widget.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<merge
xmlns:android="http://schemas.android.com/apk/res/android">
<Spinner
android:id="@+id/status_view_spinner"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<FrameLayout
android:id="@+id/status_view_container"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ru0xdc.rtkgps.view.GpsSkyView
android:id="@+id/Sky"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_horizontal"
android:visibility="gone" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:visibility="visible" >
<ru0xdc.rtkgps.view.SnrView
android:id="@+id/Snr1"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_marginLeft="1dp"
android:layout_marginRight="1dp"
android:layout_weight="1" />
<ru0xdc.rtkgps.view.SnrView
android:id="@+id/Snr2"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginBottom="4dp"
android:layout_marginLeft="1dp"
android:layout_marginRight="1dp"
android:layout_weight="1" />
</LinearLayout>
</FrameLayout>
</merge>
================================================
FILE: res/layout/navigation_drawer.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/navigation_drawer"
android:layout_width="240dp"
android:layout_height="match_parent"
android:layout_gravity="left|bottom"
android:layout_marginTop="?android:attr/actionBarSize"
android:fitsSystemWindows="false"
android:background="#ff333333" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:orientation="vertical" >
<TextView
style="?android:attr/listSeparatorTextViewStyle"
android:text="@string/navdraw_category_server" />
<Switch
style="@style/NavigationDrawerItem"
android:id="@+id/navdraw_server_switch"
android:text="@string/navdraw_item_server_switch"
android:background="@null" />
<TextView
style="@style/NavigationDrawerItem"
android:id="@+id/navdraw_item_status"
android:text="@string/navdraw_item_status"
android:onClick="onNavDrawevItemClicked" />
<TextView
style="@style/NavigationDrawerItem"
android:id="@+id/navdraw_item_map"
android:text="@string/navdraw_item_map"
android:onClick="onNavDrawevItemClicked" />
<TextView
style="?android:attr/listSeparatorTextViewStyle"
android:layout_marginTop="10dp"
android:text="@string/navdraw_category_streams" />
<TextView
style="@style/NavigationDrawerItem"
android:id="@+id/navdraw_item_input_streams"
android:text="@string/navdraw_item_input_streams"
android:onClick="onNavDrawevItemClicked" />
<TextView
style="@style/NavigationDrawerItem"
android:id="@+id/navdraw_item_output_streams"
android:text="@string/navdraw_item_output_streams"
android:onClick="onNavDrawevItemClicked" />
<TextView
style="@style/NavigationDrawerItem"
android:id="@+id/navdraw_item_log_streams"
android:text="@string/navdraw_item_log_streams"
android:onClick="onNavDrawevItemClicked" />
<TextView
style="?android:attr/listSeparatorTextViewStyle"
android:layout_marginTop="10dp"
android:text="@string/navdraw_category_settings" />
<TextView
style="@style/NavigationDrawerItem"
android:id="@+id/navdraw_item_processing_options"
android:text="@string/navdraw_item_processing_options"
android:onClick="onNavDrawevItemClicked" />
<TextView
style="@style/NavigationDrawerItem"
android:id="@+id/navdraw_item_solution_options"
android:text="@string/navdraw_item_solution_options"
android:onClick="onNavDrawevItemClicked" />
</LinearLayout>
</ScrollView>
================================================
FILE: res/layout/select_solution_view_item.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
style="?android:attr/spinnerDropDownItemStyle"
android:layout_width="match_parent"
android:layout_height="32dip"
android:singleLine="true"
android:ellipsize="marquee" />
================================================
FILE: res/layout/view_solution.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<TableLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TableRow
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingBottom="16dp" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_span="2"
android:orientation="horizontal" >
<TextView
android:id="@+id/solution_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="10dp"
android:text="@string/solution_view_solution"
/>
<TextView
android:id="@+id/solution_status"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_weight="1" />
<view class="ru0xdc.rtkgps.view.SolutionView$SolutionIndicatorView"
android:id="@+id/solution_indicator_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
/>
</LinearLayout>
</TableRow>
<TableRow
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/coord1_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minEms="3"
/>
<TextView
android:id="@+id/coord1_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="right"
android:minEms="7"
/>
</TableRow>
<TableRow
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/coord2_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minEms="3"
/>
<TextView
android:id="@+id/coord2_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="right"
android:minEms="7"
/>
</TableRow>
<TableRow
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/coord3_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minEms="3"
/>
<TextView
android:id="@+id/coord3_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="right"
android:minEms="7"
/>
</TableRow>
</TableLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="18dp"
android:layout_marginTop="2dp"
android:measureWithLargestChild="false"
android:orientation="vertical" >
<TextView
android:id="@+id/covariance_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@android:color/secondary_text_dark"
android:textSize="12sp" />
<TextView
android:id="@+id/age_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@android:color/secondary_text_dark"
android:textSize="12sp" />
</LinearLayout>
</LinearLayout>
================================================
FILE: res/layout-land/fragment_status.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:custom="http://schemas.android.com/apk/res/ru0xdc.rtkgps"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="1dp"
android:orientation="vertical"
android:layout_marginTop="?android:attr/actionBarSize"
tools:context=".MainActivity"
tools:ignore="SmallSp" >
<ru0xdc.rtkgps.view.StreamIndicatorsView
android:id="@+id/streamIndicatorsView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_marginRight="3dp"
android:layout_marginTop="2dp" />
<ru0xdc.rtkgps.view.GTimeView
android:id="@+id/gtimeView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:ellipsize="end"
android:maxLines="1"
custom:time_format="gps_tow" />
<ru0xdc.rtkgps.view.SolutionView
android:id="@+id/solutionView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@id/gtimeView"
android:layout_gravity="left"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_marginTop="10dp"
android:minWidth="255dp" />
<TextView
android:id="@+id/streamStatus"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@id/solutionView"
android:layout_marginBottom="5dp"
android:layout_marginLeft="3dp"
android:layout_marginRight="5dp"
android:layout_marginTop="5dp"
android:layout_toLeftOf="@+id/status_main_view"
android:minEms="10"
android:minLines="3"
android:textColor="@android:color/darker_gray"
android:textIsSelectable="true"
android:textSize="10sp" />
<LinearLayout
android:id="@id/status_main_view"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_toRightOf="@id/solutionView"
android:orientation="vertical" >
<include
layout="@layout/include_status_view_widget" />
</LinearLayout>
</RelativeLayout>
================================================
FILE: res/menu/activity_main.xml
================================================
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/menu_start_service"
android:showAsAction="never"
android:title="@string/menu_start_service"
android:orderInCategory="100" />
<item
android:id="@+id/menu_stop_service"
android:showAsAction="never"
android:title="@string/menu_stop_service"
android:orderInCategory="100" />
<item
android:id="@+id/menu_settings"
android:showAsAction="never"
android:title="@string/menu_settings"
android:orderInCategory="200" />
<item
android:id="@+id/menu_about"
android:showAsAction="never"
android:title="@string/menu_about"
android:orderInCategory="200" />
</menu>
================================================
FILE: res/menu/fragment_map.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/menu_map_mode"
android:showAsAction="never"
android:title="@string/menu_map_mode"
android:orderInCategory="150" >
<item
android:title="@string/menu_map_mode">
<menu>
<group
android:title="@string/menu_map_mode"
android:checkableBehavior="single">
<item
android:id="@+id/menu_map_mode_osm"
android:title="@string/menu_map_mode_osm" />
<item
android:id="@+id/menu_map_mode_bing_road"
android:title="@string/menu_map_mode_bing_road" />
<item
android:id="@+id/menu_map_mode_bing_aerial"
android:title="@string/menu_map_mode_bing_aerial" />
</group>
</menu>
</item>
</item>
</menu>
================================================
FILE: res/menu/fragment_status.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/menu_select_gtime_format"
android:showAsAction="never"
android:title="@string/menu_select_gtime_format"
android:orderInCategory="150" />
<item
android:id="@+id/menu_select_solution_format"
android:showAsAction="never"
android:title="@string/menu_select_solution_format"
android:orderInCategory="150"
/>
</menu>
================================================
FILE: res/values/attrs.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="GTimeView">
<attr name="time_format" format="enum">
<enum name="gps" value="0" />
<enum name="utc" value="1"/>
<enum name="local" value="2"/>
<enum name="gps_tow" value="3"/>
</attr>
<attr name="time_template" format="string"/>
</declare-styleable>
<declare-styleable name="SnrView">
<attr name="grid_text_size" format="integer"/>
<attr name="grid_text_color" format="color"/>
</declare-styleable>
<declare-styleable name="SolutionView">
<attr name="format" format="enum">
<enum name="wgs84" value="0" />
<enum name="wgs84_float" value="1"/>
<enum name="ecef" value="2"/>
<enum name="baseline_enu" value="3"/>
<enum name="baseline_pyl" value="4"/>
</attr>
<attr name="textColor" format="color" />
</declare-styleable>
<declare-styleable name="StreamSettings">
<attr name="key_prefix" format="string" />
<attr name="title_enable_stream" format="reference" />
<attr name="stream_type_preference_class" format="string"/>
</declare-styleable>
</resources>
================================================
FILE: res/values/strings.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">RtkGps</string>
<string name="app_url">http://github.com/illarionov/RtkGps</string>
<string name="app_version_label">Version</string>
<string name="app_legacy_info_label">Legacy info</string>
<string name="about_licenses">Legacy info</string>
<string name="about_activity_label">About</string>
<string name="crash_toast_text">Ooooops! I crashed, but a report has been sent to my developer to help fix the issue!</string>
<string name="title_activity_input_stream_settings">Input stream settings</string>
<string name="title_activity_output_stream_settings">Output stream settings</string>
<string name="title_activity_log_stream_settings">Log stream settings</string>
<string name="menu_settings">Settings</string>
<string name="menu_start_service">Start service</string>
<string name="menu_stop_service">Stop service</string>
<string name="menu_select_solution_format">Select solution format</string>
<string name="menu_select_gtime_format">Select time format</string>
<string name="menu_about">About</string>
<string name="menu_map_mode">Map mode</string>
<string name="menu_map_mode_osm">OpenStreetMap</string>
<string name="menu_map_mode_bing_aerial">Bing Aerial</string>
<string name="menu_map_mode_bing_road">Bing Road</string>
<string name="local_service_started">Local service started</string>
<string name="local_service_stopped">Local service stopped</string>
<string name="local_service_label">RtkGps</string>
<string name="sky_plot_north">N</string>
<string name="sky_plot_west">W</string>
<string name="sky_plot_south">S</string>
<string name="sky_plot_east">E</string>
<string name="sky_plot_num_of_sat"># of Sat: %d</string>
<string name="drawer_open">Open navigation drawer</string>
<string name="drawer_close">Close navigation drawer</string>
<!-- Navigation drawer -->
<string name="navdraw_category_server">Server</string>
<string name="navdraw_category_streams">Streams</string>
<string name="navdraw_category_settings">Settings</string>
<string name="navdraw_item_server_switch">Server</string>
<string name="navdraw_item_status">Status</string>
<string name="navdraw_item_map">Map</string>
<string name="navdraw_item_input_streams">Input streams</string>
<string name="navdraw_item_output_streams">Output streams</string>
<string name="navdraw_item_log_streams">Log streams</string>
<string name="navdraw_item_processing_options">Processing options</string>
<string name="navdraw_item_solution_options">Solution options</string>
<string-array name="rtk_server_receiver">
<item>Rover</item>
<item>Base</item>
<item>Emphem</item>
</string-array>
<string name="gtime_format_gps">GPS</string>
<string name="gtime_format_utc">UTC</string>
<string name="gtime_format_local">Local</string>
<string name="gtime_format_gps_tow">GPS TOW</string>
<!-- Solution view -->
<string name="solution_view_solution">Solution:</string>
<string name="solution_view_age_text_format">Age: %1$.1fs\nRatio: %2$.1f\n#Of sat: %3$d</string>
<string name="solution_view_format_wgs84">Lat/Lon/Height</string>
<string name="solution_view_format_wgs84_float">Lat/Lon/Height — Float</string>
<string name="solution_view_format_ecef">X/Y/Z — ECEF</string>
<string name="solution_view_format_enu_baseline">E/N/U — Baseline</string>
<string name="solution_view_format_pyl_baseline">Pitch/Yaw/Length — Baseline</string>
<string-array name="solution_view_coordinates_wgs84">
<item>Lat:</item>
<item>Lon:</item>
<item>Height:</item>
</string-array>
<string-array name="solution_view_coordinates_ecef">
<item>X:</item>
<item>Y:</item>
<item>Z:</item>
</string-array>
<string-array name="solution_view_coordinates_baseline_enu">
<item>E:</item>
<item>N:</item>
<item>U:</item>
</string-array>
<string-array name="solution_view_coordinates_baseline_pyl">
<item>Pitch:</item>
<item>Yaw:</item>
<item>Length:</item>
</string-array>
<!-- PMODE_XXX positioning mode -->
<string name="pmode_single">Single</string>
<string name="pmode_dgps">DGPS/DGNSS</string>
<string name="pmode_kinema">Kinematic</string>
<string name="pmode_static">Static</string>
<string name="pmode_moveb">Moving — base</string>
<string name="pmode_fixed">Fixed</string>
<string name="pmode_ppp_kinema">PPP — Kinemaric</string>
<string name="pmode_ppp_static">PPP — Static</string>
<string name="pmode_ppp_fixed">PPP — Fixed</string>
<!-- SYS_XXX Navigation system -->
<string name="navsys_none">None</string>
<string name="navsys_gps">GPS</string>
<string name="navsys_sbs">SBAS</string>
<string name="navsys_glo">GLONASS</string>
<string name="navsys_gal">Galileo</string>
<string name="navsys_qzs">QZSS</string>
<string name="navsys_cmp">BeiDou</string>
<string name="navsys_all">All</string>
<!-- TIMES_XXX Time system -->
<string name="times_gpst">GPS time</string>
<string name="times_utc">UTC</string>
<string name="times_jst">JST</string>
<!-- SOLQ_XXX Solution status -->
<string name="solq_none">None</string>
<string name="solq_fix">Fixed</string>
<string name="solq_float">Float</string>
<string name="solq_sbas">SBAS</string>
<string name="solq_dgps">DGPS/DGNSS</string>
<string name="solq_single">Single</string>
<string name="solq_ppp">PPP</string>
<string name="solq_dr">Dead reconing</string>
<!-- SOLF_XXX Solution Format -->
<string name="solf_llh">Lat/Long/Height</string>
<string name="solf_xyz">X/Y/Z — ECEF</string>
<string name="solf_enu">E/N/U — Baseline</string>
<string name="solf_nmea">NMEA 0183</string>
<string name="solf_gsif">GSI-F1/2/3</string>
<!-- STRFMT_XXX Stream format -->
<string name="strfmt_rtcm2">RTCM 2</string>
<string name="strfmt_rtcm3">RTCM 3</string>
<string name="strfmt_oem4">NovAtel OEMV/4</string>
<string name="strfmt_oem3">NovAtel OEMV/3</string>
<string name="strfmt_ubx">u-blox LEA-*T</string>
<string name="strfmt_ss2">NovAtel Superstar II</string>
<string name="strfmt_cres">Hemisphere</string>
<string name="strfmt_stq">SkyTraq S1315F</string>
<string name="strfmt_gw10">Furuno GW10</string>
<string name="strfmt_javad">JAVAD GRIL/GREIS</string>
<string name="strfmt_nvs">NVS NVC08C</string>
<string name="strfmt_binex">BINEX</string>
<string name="strfmt_lexr">Furuno LPY-10000</string>
<string name="strfmt_sirf">SiRF</string>
<string name="strfmt_rinex">RINEX</string>
<string name="strfmt_sp3">SP3</string>
<string name="strfmt_rnxclk">RINEX CLK</string>
<string name="strfmt_sbas">SBAS messages</string>
<string name="strfmt_nmea">NMEA 0183</string>
<!-- STR_XXX Stream type -->
<string name="str_none">None</string>
<string name="str_serial">Serial</string>
<string name="str_file">File</string>
<string name="str_tcpsvr">TCP Server</string>
<string name="str_tcpcli">TCP Client</string>
<string name="str_udp">UDP</string>
<string name="str_ntripsvr">NTRIP server</string>
<string name="str_ntripcli">NTRIP client</string>
<string name="str_ftp">FTP</string>
<string name="str_http">HTTP</string>
<string name="str_unixsvr">Unix domain socket server</string>
<string name="str_bluetooth">Bluetooth</string>
<string name="str_usb">USB</string>
<!-- IONOOPT_XXX Ionosphere option -->
<string name="ionoopt_off">Off</string>
<string name="ionoopt_brdc">Broadcast model</string>
<string name="ionoopt_sbas">SBAS model</string>
<string name="ionoopt_iflc">L1/L2 or L1/L5 iono-free LC</string>
<string name="ionoopt_est">Estimate STEC</string>
<string name="ionoopt_tec">IONEX TEC model</string>
<string name="ionoopt_qzs">QZSS broadcast model</string>
<string name="ionoopt_lex">QZSS LEX ionospehre</string>
<string name="ionoopt_stec">SLANT TEC model</string>
<!-- TROPOPT_XXX Troposphere option -->
<string name="tropopt_off">Off</string>
<string name="tropopt_saas">Saastamoinen model</string>
<string name="tropopt_sbas">SBAS model</string>
<string name="tropopt_est">ZTD estimation</string>
<string name="tropopt_estg">ZTD+grad estimation</string>
<string name="tropopt_cor">ZTD correction</string>
<string name="tropopt_corg">ZTD+grad correction</string>
<!-- GEOID_XXX geoid model -->
<string name="geoid_embedded">Embedded</string>
<string name="geoid_egm96_m150">EGM96 15x15\'</string>
<string name="geoid_egm2008_m25">EGM2008 2.5x2.5\'</string>
<string name="geoid_egm2008_m10">EGM2008 1.0x1.0\'</string>
<string name="geoid_gsi2000_m15">GSI geoid 2000 1.0x1.5\'</string>
<!-- EPHOPT_XXX Exhemeris Options -->
<string name="ephopt_brdc">Broadcast ephemeris</string>
<string name="ephopt_prec">Precise ephemeris</string>
<string name="ephopt_sbas">Broadcast + SBAS</string>
<string name="ephopt_ssrapc">Broadcast + SSR APC</string>
<string name="ephopt_ssrcom">Broadcast + SSR CoM</string>
<string name="ephopt_lex">QZSS LEX ephemeris</string>
<!-- Station position type -->
<string name="stapos_in_prcopt">Specified position</string>
<string name="stapos_avg_of_single">Average of single position</string>
<string name="stapos_read_from_file">Read from file</string>
<string name="stapos_rinex_hdr">Rinex header</string>
<string name="stapos_rtcm_pos">RTCM Antenna position</string>
<!-- Procession options -->
<string name="procopt_category_processing_options_1">Processing options 1</string>
<string name="procopt_category_solution_options">Solution options</string>
<!-- Positionong mode -->
<string name="procopt_positioning_mode_title">Positioning mode</string>
<string name="procopt_positioning_mode_dialog_title">Select positioning mode</string>
<!-- Number of frequencies -->
<string name="procopt_number_of_freqencies_title">Frequencies</string>
<string name="procopt_number_of_freqencies_dialog_title">Select number of frequencies</string>
<string-array name="procopt_number_of_frequencies_entries">
<item>L1</item>
<item>L1 + L2</item>
<item>L1 + L2 + L5</item>
</string-array>
<string-array name="procopt_number_of_frequencies_values">
<item>1</item>
<item>2</item>
<item>3</item>
</string-array>
<!-- Navigation system -->
<string name="procopt_navigation_system_title">Navigation system</string>
<string name="procopt_navigation_system_dialog_title">Select navigation system</string>
<!-- Elevation mask -->
<string name="procopt_elevation_mask_title">Elevation mask (°)</string>
<string name="procopt_elevation_mask_dialog_title">Select elevation mask (°)</string>
<string-array name="procopt_elevation_mask_entries">
<item>0</item>
<item>5</item>
<item>10</item>
<item>15</item>
<item>20</item>
<item>25</item>
<item>30</item>
<item>35</item>
<item>40</item>
<item>45</item>
<item>50</item>
<item>55</item>
<item>60</item>
<item>65</item>
<item>70</item>
</string-array>
<!-- SNR mask -->
<string name="procopt_snr_mask_title">SNR mask (dbHz)</string>
<string name="procopt_snr_mask_dialog_title">Select SNR mask (dbHz)</string>
<string-array name="procopt_snr_entries">
<item>0</item>
<item>5</item>
<item>10</item>
<item>15</item>
<item>20</item>
<item>25</item>
<item>30</item>
<item>35</item>
<item>40</item>
</string-array>
<!-- Rec dynamics / Earth tides correction -->
<string name="procopt_rec_dynamics_title">Rec dynamics</string>
<string name="procopt_rec_dynamics_summary">Estimate receiver velocity and acceleration</string>
<string name="procopt_rec_earth_tides_correction_title">Earth tides correction</string>
<!-- Ionosphere correction -->
<string name="procopt_ionosphere_correction_title">Ionosphere correction</string>
<string name="procopt_ionosphere_correction_dialog_title">Select ionosphere correction method</string>
<!-- Troposphere correcton -->
<string name="procopt_troposphere_correction_title">Troposphere correction</string>
<string name="procopt_troposphere_correction_dialog_title">Select troposphere correction method</string>
<!-- Satellite Ephemeris/Clock -->
<string name="procopt_satellite_ephemeris_clock_title">Satellite Ephemeris/Clock</string>
<string name="procopt_satellite_ephemeris_clock_dialog_title">Satellite Ephemeris/Clock</string>
<!-- Sat PCV -->
<string name="procopt_sat_antenna_pcv_title">Satellite PCV</string>
<string name="procopt_sat_antenna_pcv_summary">Use satellite antenna phase center variation</string>
<!-- Receiver PCV -->
<string name="procopt_receiver_antenna_pcv_title">Receiver PCV</string>
<string name="procopt_receiver_antenna_pcv_summary">Use receiver antenna phase center variation</string>
<!-- Phase windup correction -->
<string name="procopt_phase_windup_correction_title">Phase windup correction</string>
<string name="procopt_phase_windup_correction_summary">Apply phase windup correction</string>
<!-- Exclude eclipsing sat measurements -->
<string name="procopt_exclude_eclipsing_sat_measurements_title">Reject eclipsing satellite</string>
<string name="procopt_exclude_eclipsing_sat_measurements_summary">Exclude measurements of eclipsing satellite</string>
<!-- RAIM FDE -->
<string name="procopt_raim_fde_title">RAIM FDE</string>
<string name="procopt_raim_fde_summary">Enable RAIM failure detection and exclusion</string>
<!-- Output header -->
<string name="solopt_output_header_title">Output header</string>
<string name="solopt_output_header_summary">Set whether the header is output or not</string>
<!-- Time format -->
<string name="solopt_time_format_title">Time format</string>
<string name="solopt_time_format_dialog_title">Set the format of time</string>
<!-- Latitude/Longitude Format -->
<string name="solopt_lat_lon_format_title">Latitude/Longitude Format</string>
<string name="solopt_lat_lon_format_dialog_title">Latitude/Longitude Format</string>
<!-- Earth tide correction -->
<string name="earth_tide_correction_off">OFF</string>
<string name="earth_tide_correction_solid">Solid</string>
<string name="earth_tide_correction_solid_otl_pole">Solid, ocean, pole</string>
<string-array name="solopt_lat_lon_format_entries">
<item>ddd.dddddddd : Degree</item>
<item>ddd mm ss.sss : Degree minute second</item>
</string-array>
<string-array name="solopt_lat_lon_format_entry_values">
<item>degree</item>
<item>dms</item>
</string-array>
<!-- Field Separator -->
<string name="solopt_field_separator_title">Field Separator</string>
<!-- Height -->
<string name="solopt_height_title">Height</string>
<string name="solopt_height_dialog_title">Set the type of height</string>
<string-array name="solopt_height_entries">
<item>Ellipsoidal</item>
<item>Geodetic</item>
</string-array>
<string-array name="solopt_height_entry_values">
<item>Ellipsoidal</item>
<item>Geodetic</item>
</string-array>
<!-- Geoid model -->
<string name="solopt_geoid_model_title">Geoid Model</string>
<string name="solopt_geoid_model_dialog_title">Select geoid Model</string>
<!-- Nmea interval -->
<string name="solopt_nmea_interval_rmc_gga_title">Nmea interval (s) for RMC/GGA messages</string>
<string name="solopt_nmea_interval_gsa_gsv_title">Nmea interval (s) for GSA/GSV messages</string>
<!-- Output solution status -->
<string name="solopt_output_solution_status_title">Output solution status</string>
<string name="solopt_output_solution_status_dialog_title">Set the output level of the solution status file</string>
<string-array name="solopt_output_solution_status_entries">
<item>OFF</item>
<item>States</item>
<item>Residuals</item>
</string-array>
<string-array name="solopt_output_solution_status_entry_values">
<item>0</item>
<item>1</item>
<item>2</item>
</string-array>
<!-- Debug trace -->
<string name="solopt_debug_trace_title">Debug trace</string>
<string name="solopt_debug_trace_dialog_title">Set the output level of debug trace file</string>
<string-array name="solopt_debug_trace_entries">
<item>OFF</item>
<item>Level 1</item>
<item>Level 2</item>
<item>Level 3</item>
<item>Level 4</item>
<item>Level 5</item>
</string-array>
<string-array name="solopt_debug_trace_entry_values">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
<item>5</item>
</string-array>
<!-- Input streams settings -->
<string name="streams_settings_type_title">Type</string>
<string name="streams_settings_format_title">Format</string>
<string name="streams_settings_button_title">Stream settings…</string>
<string name="streams_settings_commands_at_startup_shutdown_title">Commands at startup/shutdown…</string>
<string name="streams_settings_base_station_position_title">Base station position</string>
<string name="streams_settings_rover_position_title">Rover position</string>
<string name="input_streams_settings_enable_rover_title">Enable rover</string>
<string name="input_streams_settings_enable_base_title">Enable base</string>
<string name="input_streams_settings_enable_correction_title">Enable correction</string>
<string name="input_streams_settings_rover_tab_title">Input Rover</string>
<string name="input_streams_settings_base_tab_title">Input Base</string>
<string name="input_streams_settings_correction_tab_title">Input Correction</string>
<string name="input_streams_settings_receiver_option_title">Receiver option</string>
<string name="input_streams_settings_transmit_gpgga_to_base_title">Transmit GPGGA to Base Station</string>
<string name="input_streams_settings_transmit_gpgga_lat_title">Latitude</string>
<string name="input_streams_settings_transmit_gpgga_lon_title">Longitude</string>
<string-array name="input_streams_settings_transmit_gpgga_entries">
<item>OFF</item>
<item>Latitude/Longitude</item>
<item>Single solution</item>
</string-array>
<string-array name="input_streams_settings_transmit_gpgga_vaues">
<item>0</item>
<item>1</item>
<item>2</item>
</string-array>
<!-- Output stream settings -->
<string name="output_streams_settings_enable_solution1_title">Enable Solution 1</string>
<string name="output_streams_settings_enable_solution2_title">Enable Solution 2</string>
<string name="output_streams_settings_solution1_tab_title">Solution 1</string>
<string name="output_streams_settings_solution2_tab_title">Solution 2</string>
<!-- Log stream settings -->
<string name="log_streams_settings_enable_rover_title">Log rover</string>
<string name="log_streams_settings_enable_base_title">Log base </string>
<string name="log_streams_settings_enable_correction_title">Log correction</string>
<string name="log_stream_settings_rover_tab_title">Log Rover</string>
<string name="log_stream_settings_base_tab_title">Log Base</string>
<string name="log_stream_settings_correction_tab_title">Log Correction</string>
<!-- NTRIP client stream preferences -->
<string name="ntrip_client_dialog_title">NTRIP client settings</string>
<string name="ntrip_client_host_title">Host</string>
<string name="ntrip_client_port_title">Port</string>
<string name="ntrip_client_mountpoint_title">NTRIP Mountpoint</string>
<string name="ntrip_client_user_title">NTRIP user</string>
<string name="ntrip_client_password_title">NTRIP password</string>
<string name="file_filename_title">Filename</string>
<!-- TCP client stream preferences -->
<string name="tcp_client_dialog_title">TCP client settings</string>
<string name="tcp_client_host_title">Host</string>
<string name="tcp_client_port_title">Port</string>
<!-- File stream preferences -->
<string name="file_dialog_title">File settings</string>
<!-- Bluetooth stream preferences -->
<string name="bluetooth_dialog_title">Bluetooth receiver settings</string>
<string name="bluetooth_device_not_selected">device not selected</string>
<string name="bluetooth_disabled_summary">Turn on Bluetooth and select the receiver</string>
<string name="bluetooth_device_address_title">Bluetooth device</string>
<string name="bluetooth_system_settings_title">Bluetooth system settings</string>
<string name="bluetooth_system_settings_summary">Display system Bluetooth settings screen</string>
<string name="bluetooth_connected">Bluetooth connected</string>
<string name="bluetooth_connection_lost">Bluetooth connection lost</string>
<!-- USB stream preferences -->
<string name="usb_connected">USB connected</string>
<string name="usb_connection_lost">USB connection lost</string>
<string name="usb_dialog_title">USB receiver settings</string>
<string name="usb_device_baudrate_title">Baudrate</string>
<string-array name="usb_device_baudrate_entries">
<item>300</item>
<item>1200</item>
<item>1800</item>
<item>2400</item>
<item>3600</item>
<item>4800</item>
<item>7200</item>
<item>9600</item>
<item>14400</item>
<item>19200</item>
<item>28800</item>
<item>38400</item>
<item>57600</item>
<item>115200</item>
<item>230400</item>
</string-array>
<string name="usb_device_data_bits_title">Data bits</string>
<string-array name="usb_device_data_bits_entries">
<item>5</item>
<item>6</item>
<item>7</item>
<item>8</item>
</string-array>
<string name="usb_device_parity_title">Parity</string>
<string-array name="usb_device_parity_entries">
<item>None</item>
<item>Odd</item>
<item>Even</item>
<item>Mark</item>
<item>Space</item>
</string-array>
<string-array name="usb_device_parity_values">
<item>N</item>
<item>O</item>
<item>E</item>
<item>M</item>
<item>S</item>
</string-array>
<string name="usb_device_stop_bits_title">Stop bits</string>
<string-array name="usb_device_stop_bits_entries">
<item>1</item>
<item>2</item>
</string-array>
<!-- Startup/shutdown commands preference widget -->
<string name="send_commands_at_startup">Send commands at startup</string>
<string name="send_commands_at_shutdown">Send commands at shutdown</string>
<string name="commands_at_startup">Commands at startup</string>
<string name="commands_at_shutdown">Commands at shutdown</string>
<string name="load_startup_shutdown_commands">Load</string>
<string name="load_startup_shutdown_dialog_title">Select file</string>
<!-- Rover/base position -->
<string name="station_position_format_llh">Lat/Lon/Height (deg/m)</string>
<string name="station_position_format_llh_dms">Lat/Lon/Height (dms/m)</string>
<string name="station_position_format_ecef">X/Y/Z — ECEF</string>
<string name="station_position_for_fixed_mode">For fixed mode</string>
<string name="station_position_for_relative_mode">For relative mode</string>
<!-- StatusView -->
<string name="status_view_snr">SNR Rover/Base</string>
<string name="status_view_snr_l1">SNR Rover/Base L1</string>
<string name="status_view_snr_l2">SNR Rover/Base L2</string>
<string name="status_view_snr_l5">SNR Rover/Base L5</string>
<string name="status_view_skyplot_rover_l1">Skyplot Rover L1</string>
<string name="status_view_skyplot_rover_l2">Skyplot Rover L2</string>
<string name="status_view_skyplot_rover_l5">Skyplot Rover L5</string>
<string name="
gitextract_a_utxn8r/
├── .classpath
├── .factorypath
├── .gitignore
├── .gitmodules
├── .project
├── .settings/
│ ├── org.eclipse.jdt.apt.core.prefs
│ ├── org.eclipse.jdt.core.prefs
│ ├── org.eclipse.jdt.ui.prefs
│ ├── org.eclipse.ltk.core.refactoring.prefs
│ ├── org.eclipse.wst.validation.prefs
│ └── org.eclipse.wst.xml.core.prefs
├── AndroidManifest.xml
├── LICENSE.txt
├── README.md
├── assets/
│ ├── commands/
│ │ ├── cres_raw_10hz.cmd
│ │ ├── cres_raw_1hz.cmd
│ │ ├── javad_raw_10hz.cmd
│ │ ├── javad_raw_1hz.cmd
│ │ ├── javad_raw_5hz.cmd
│ │ ├── lexr_inittime.cmd
│ │ ├── oem3_com1setup.cmd
│ │ ├── oem3_com2setup.cmd
│ │ ├── oem3_raw_10hz.cmd
│ │ ├── oem3_raw_1hz.cmd
│ │ ├── oem3_rtcm2_10hz.cmd
│ │ ├── oem3_rtcm2_1hz.cmd
│ │ ├── oem3_rtk_10hz.cmd
│ │ ├── oem3_rtk_1hz.cmd
│ │ ├── oem4_raw_10hz.cmd
│ │ ├── oem4_raw_1hz.cmd
│ │ ├── oem4_raw_20hz.cmd
│ │ ├── oem4_raw_5hz.cmd
│ │ ├── oem4_rtcm2_10hz.cmd
│ │ ├── oem4_rtcm2_1hz.cmd
│ │ ├── oem4_rtcm3_10hz.cmd
│ │ ├── oem4_rtcm3_1hz.cmd
│ │ ├── oem4_setcom115200.cmd
│ │ ├── oem6_raw_1hz.cmd
│ │ ├── sirf_raw_1hz.cmd
│ │ ├── skytraq_raw_10hz.cmd
│ │ ├── skytraq_raw_1hz.cmd
│ │ ├── skytraq_raw_20hz.cmd
│ │ ├── skytraq_raw_5hz.cmd
│ │ ├── ubx_raw_10hz.cmd
│ │ ├── ubx_raw_1hz.cmd
│ │ └── ubx_raw_5hz.cmd
│ └── licenses.html
├── build.gradle
├── build.xml
├── jni/
│ ├── Android.mk
│ ├── Application.mk
│ ├── gtime.c
│ ├── log.c
│ ├── prcopt.c
│ ├── rtkcommon.c
│ ├── rtkjni.c
│ ├── rtkjni.h
│ ├── rtklib.mk
│ ├── rtkserver.c
│ └── solopt.c
├── libs/
│ ├── acra-4.5.0.jar
│ ├── android-support-v13.jar
│ ├── butterknife-1.4.0.jar
│ ├── jsr305-2.0.1.jar
│ ├── osmdroid-android-3.0.11-SNAPSHOT.jar
│ ├── osmdroid-android-3.0.11-SNAPSHOT.jar.properties
│ ├── osmdroid-third-party-3.0.10.jar
│ ├── osmdroid-third-party-3.0.10.jar.properties
│ ├── proguardannotations.jar
│ └── slf4j-android-1.6.1-RC1.jar
├── proguard-annotations.txt
├── proguard-project.txt
├── project.properties
├── res/
│ ├── drawable/
│ │ └── map_point_marker.xml
│ ├── layout/
│ │ ├── activity_about.xml
│ │ ├── activity_input_stream_settings.xml
│ │ ├── activity_main.xml
│ │ ├── activity_settings.xml
│ │ ├── activity_startup_shutdown_commands.xml
│ │ ├── activity_station_position.xml
│ │ ├── activity_stream_settings_dialog.xml
│ │ ├── fragment_map.xml
│ │ ├── fragment_status.xml
│ │ ├── include_status_view_widget.xml
│ │ ├── navigation_drawer.xml
│ │ ├── select_solution_view_item.xml
│ │ └── view_solution.xml
│ ├── layout-land/
│ │ └── fragment_status.xml
│ ├── menu/
│ │ ├── activity_main.xml
│ │ ├── fragment_map.xml
│ │ └── fragment_status.xml
│ ├── values/
│ │ ├── attrs.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ ├── values-sw600dp/
│ │ └── dimens.xml
│ └── xml/
│ ├── input_stream_settings_base.xml
│ ├── input_stream_settings_correction.xml
│ ├── input_stream_settings_rover.xml
│ ├── log_stream_settings.xml
│ ├── output_stream_settings.xml
│ ├── preference_headers.xml
│ ├── processing_options1.xml
│ ├── solution_output_settings.xml
│ ├── stream_bluetooth_settings.xml
│ ├── stream_file_settings.xml
│ ├── stream_ntrip_client_settings.xml
│ ├── stream_tcp_client_settings.xml
│ ├── stream_usb_settings.xml
│ └── usb_device_filter.xml
└── src/
└── ru0xdc/
├── rtkgps/
│ ├── AboutActivity.java
│ ├── BluetoothToRtklib.java
│ ├── MainActivity.java
│ ├── MapFragment.java
│ ├── ResourceProxyImpl.java
│ ├── RtkGps.java
│ ├── RtkNaviService.java
│ ├── RtklibLocalSocketThread.java
│ ├── SolutionPathOverlay.java
│ ├── StatusFragment.java
│ ├── UsbToRtklib.java
│ ├── settings/
│ │ ├── InputBaseFragment.java
│ │ ├── InputCorrectionFragment.java
│ │ ├── InputRoverFragment.java
│ │ ├── LogBaseFragment.java
│ │ ├── LogCorrectionFragment.java
│ │ ├── LogRoverFragment.java
│ │ ├── OutputSolution1Fragment.java
│ │ ├── OutputSolution2Fragment.java
│ │ ├── ProcessingOptions1Fragment.java
│ │ ├── SettingsActivity.java
│ │ ├── SettingsHelper.java
│ │ ├── SolutionOutputSettingsFragment.java
│ │ ├── StartupShutdownSettingsActivity.java
│ │ ├── StationPositionActivity.java
│ │ ├── StreamBluetoothFragment.java
│ │ ├── StreamDialogActivity.java
│ │ ├── StreamFileClientFragment.java
│ │ ├── StreamNtripClientFragment.java
│ │ ├── StreamSettingsActivity.java
│ │ ├── StreamTcpClientFragment.java
│ │ ├── StreamUsbFragment.java
│ │ └── widget/
│ │ ├── EarthTideCorrectionPreference.java
│ │ ├── EnumListPreference.java
│ │ ├── EphemerisOptionPreference.java
│ │ ├── IonosphereCorrectionPreference.java
│ │ ├── MultiSelectListPreferenceWorkaround.java
│ │ ├── PositioningModePreference.java
│ │ ├── SolutionFormatPreference.java
│ │ ├── StartupShutdownCommandsPreference.java
│ │ ├── StreamFormatPreference.java
│ │ ├── StreamTypePreference.java
│ │ └── TroposphereCorrectionPreference.java
│ ├── usb/
│ │ ├── SerialLineConfiguration.java
│ │ ├── UsbAcmController.java
│ │ ├── UsbPl2303Controller.java
│ │ └── UsbSerialController.java
│ └── view/
│ ├── GTimeView.java
│ ├── GpsSkyView.java
│ ├── SnrView.java
│ ├── SolutionView.java
│ └── StreamIndicatorsView.java
└── rtklib/
├── GTime.java
├── ProcessingOptions.java
├── RtkCommon.java
├── RtkControlResult.java
├── RtkServer.java
├── RtkServerObservationStatus.java
├── RtkServerSettings.java
├── RtkServerStreamStatus.java
├── Solution.java
├── SolutionOptions.java
└── constants/
├── Constants.java
├── EarthTideCorrectionType.java
├── EphemerisOption.java
├── GeoidModel.java
├── IHasRtklibId.java
├── IonosphereOption.java
├── NavigationSystem.java
├── PositioningMode.java
├── SolutionFormat.java
├── SolutionStatus.java
├── StationPositionType.java
├── StreamFormat.java
├── StreamType.java
├── TimeSystem.java
└── TroposphereOption.java
Condensed preview — 178 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (693K chars).
[
{
"path": ".classpath",
"chars": 612,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<classpath>\n\t<classpathentry kind=\"src\" path=\"src\"/>\n\t<classpathentry kind=\"src\"..."
},
{
"path": ".factorypath",
"chars": 263,
"preview": "<factorypath>\n <factorypathentry kind=\"PLUGIN\" id=\"org.eclipse.jst.ws.annotations.core\" enabled=\"true\" runInBatchMode..."
},
{
"path": ".gitignore",
"chars": 185,
"preview": "*~\n*.swp\n\n/bin\n/trash\n/gen\n/local.properties\n\n/.apt_generated/\n/.lint4jprefs\n/lint.xml\n/proguard/\n/projectSet.psf\n\n/obj/..."
},
{
"path": ".gitmodules",
"chars": 320,
"preview": "[submodule \"jni/RTKLIB\"]\n\tpath = jni/RTKLIB\n\turl = git@github.com:littlesavage/RTKLIB.git\n[submodule \"jni/simonlynen_and..."
},
{
"path": ".project",
"chars": 809,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<projectDescription>\n\t<name>RtkGps</name>\n\t<comment></comment>\n\t<projects>\n\t</pro..."
},
{
"path": ".settings/org.eclipse.jdt.apt.core.prefs",
"chars": 153,
"preview": "eclipse.preferences.version=1\norg.eclipse.jdt.apt.aptEnabled=true\norg.eclipse.jdt.apt.genSrcDir=.apt_generated\norg.eclip..."
},
{
"path": ".settings/org.eclipse.jdt.core.prefs",
"chars": 24132,
"preview": "eclipse.preferences.version=1\norg.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled\norg.eclipse.jdt.core.compi..."
},
{
"path": ".settings/org.eclipse.jdt.ui.prefs",
"chars": 2967,
"preview": "cleanup_settings_version=2\neclipse.preferences.version=1\neditor_save_participant_org.eclipse.jdt.ui.postsavelistener.cle..."
},
{
"path": ".settings/org.eclipse.ltk.core.refactoring.prefs",
"chars": 104,
"preview": "eclipse.preferences.version=1\norg.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false\n"
},
{
"path": ".settings/org.eclipse.wst.validation.prefs",
"chars": 974,
"preview": "DELEGATES_PREFERENCE=delegateValidatorList\nUSER_BUILD_PREFERENCE=enabledBuildValidatorListorg.eclipse.wst.wsi.ui.interna..."
},
{
"path": ".settings/org.eclipse.wst.xml.core.prefs",
"chars": 400,
"preview": "attributeHasNoValue=2\neclipse.preferences.version=1\nendTagWithAttributes=2\nhonourAllSchemaLocations=true\nindicateNoGramm..."
},
{
"path": "AndroidManifest.xml",
"chars": 3539,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n package=..."
},
{
"path": "LICENSE.txt",
"chars": 1287,
"preview": "Copyright (c) 2013, Alexey Illarionov. All rights reserved.\n\nRedistribution and use in source and binary forms, with or..."
},
{
"path": "README.md",
"chars": 1197,
"preview": "RtkGps\n======\n\nRTKLIB rtknavi port on android.\n\n\n### Features\n\n#### [rtklib][rtklib] features:\n\n* GPS, GLONASS, Galileo,..."
},
{
"path": "assets/commands/cres_raw_10hz.cmd",
"chars": 128,
"preview": "$JRESET\r\n$JWAASPRN,129,137\r\n$JBIN,94,1\r\n$JBIN,95,1\r\n$JBIN,96,10\r\n$JBIN,80,1\r\n\n@\n$JBIN,94,0\r\n$JBIN,95,0\r\n$JBIN,96,0\r\n$JBI..."
},
{
"path": "assets/commands/cres_raw_1hz.cmd",
"chars": 127,
"preview": "$JRESET\r\n$JWAASPRN,129,137\r\n$JBIN,94,1\r\n$JBIN,95,1\r\n$JBIN,96,1\r\n$JBIN,80,1\r\n\n@\n$JBIN,94,0\r\n$JBIN,95,0\r\n$JBIN,96,0\r\n$JBIN..."
},
{
"path": "assets/commands/javad_raw_10hz.cmd",
"chars": 78,
"preview": "em,,def:{0.1,,}\r\nem,,jps/gd\r\nem,,jps/qd\r\nem,,jps/WD\r\nem,,jps/ET\r\n\r\n\r\n\r\n\n@\ndm\r\n"
},
{
"path": "assets/commands/javad_raw_1hz.cmd",
"chars": 76,
"preview": "em,,def:{1,,}\r\nem,,jps/gd\r\nem,,jps/qd\r\nem,,jps/WD\r\nem,,jps/ET\r\n\r\n\r\n\r\n\n@\ndm\r\n"
},
{
"path": "assets/commands/javad_raw_5hz.cmd",
"chars": 78,
"preview": "em,,def:{0.2,,}\r\nem,,jps/gd\r\nem,,jps/qd\r\nem,,jps/WD\r\nem,,jps/ET\r\n\r\n\r\n\r\n\n@\ndm\r\n"
},
{
"path": "assets/commands/lexr_inittime.cmd",
"chars": 25,
"preview": "!LEXR CMD-TIME\r\n\r\n\r\n\r\n\n@\n"
},
{
"path": "assets/commands/oem3_com1setup.cmd",
"chars": 33,
"preview": "com1 115200,n,8,1,n,off,on\r\n\n@\n\r\n"
},
{
"path": "assets/commands/oem3_com2setup.cmd",
"chars": 33,
"preview": "com2 115200,n,8,1,n,off,on\r\n\n@\n\r\n"
},
{
"path": "assets/commands/oem3_raw_10hz.cmd",
"chars": 122,
"preview": "log rgeb ontime 0.1\r\nlog repb onnew\r\nlog almb onnew\r\nlog frmb onnew\r\n\n@\nunlog rgeb\r\nunlog repb\r\nunlog almb\r\nunlog frmb..."
},
{
"path": "assets/commands/oem3_raw_1hz.cmd",
"chars": 120,
"preview": "log rgeb ontime 1\r\nlog repb onnew\r\nlog almb onnew\r\nlog frmb onnew\r\n\n@\nunlog rgeb\r\nunlog repb\r\nunlog almb\r\nunlog frmb\r\n\r\n"
},
{
"path": "assets/commands/oem3_rtcm2_10hz.cmd",
"chars": 220,
"preview": "undulation user 0\r\nfix position 35.872988846 138.389665470 1003.8599log rtcm1 ontime 1\r\nlog rtcm3 ontime 10\r\nlog rtcm1..."
},
{
"path": "assets/commands/oem3_rtcm2_1hz.cmd",
"chars": 195,
"preview": "fix position 35.872988846 138.389665470 964\r\nlog rtcm1 ontime 1\r\nlog rtcm3 ontime 10\r\nlog rtcm1819 ontime 1\r\nlog rtcm..."
},
{
"path": "assets/commands/oem3_rtk_10hz.cmd",
"chars": 75,
"preview": "accept com2 rtcm\r\nrtkmode kinematic\r\nlog prtka ontime 0.1\r\n\n@\nunlog prtka\r\n"
},
{
"path": "assets/commands/oem3_rtk_1hz.cmd",
"chars": 73,
"preview": "accept com2 rtcm\r\nrtkmode kinematic\r\nlog prtka ontime 1\r\n\n@\nunlog prtka\r\n"
},
{
"path": "assets/commands/oem4_raw_10hz.cmd",
"chars": 214,
"preview": "log rangecmpb ontime 0.1\r\nlog rawephemb onnew\r\nlog ionutcb onnew\r\nlog rawwaasframeb onnew\r\nlog gloephemerisb onnew\r\n\r\n\n@..."
},
{
"path": "assets/commands/oem4_raw_1hz.cmd",
"chars": 214,
"preview": "log rangecmpb ontime 1\r\nlog rawephemb onnew\r\nlog ionutcb onnew\r\nlog rawwaasframeb onnew\r\nlog gloephemerisb onnew\r\n\r\n\r\n\n@..."
},
{
"path": "assets/commands/oem4_raw_20hz.cmd",
"chars": 217,
"preview": "log rangecmpb ontime 0.05\r\nlog rawephemb onnew\r\nlog ionutcb onnew\r\nlog rawwaasframeb onnew\r\nlog gloephemerisb onnew..."
},
{
"path": "assets/commands/oem4_raw_5hz.cmd",
"chars": 216,
"preview": "log rangecmpb ontime 0.2\r\nlog rawephemb onnew\r\nlog ionutcb onnew\r\nlog rawwaasframeb onnew\r\nlog gloephemerisb onnew..."
},
{
"path": "assets/commands/oem4_rtcm2_10hz.cmd",
"chars": 278,
"preview": "interfacemode novatel rtcm\r\nundulation user 0\r\nfix position 35.872988846 138.389665470 1003.8599\r\nlog rtcm1 ontime 1\r\nlo..."
},
{
"path": "assets/commands/oem4_rtcm2_1hz.cmd",
"chars": 274,
"preview": "interfacemode novatel rtcm\r\nundulation user 0\r\nfix position 35.872988846 138.389665470 1003.8599\r\nlog rtcm1 ontime 1\r\nlo..."
},
{
"path": "assets/commands/oem4_rtcm3_10hz.cmd",
"chars": 255,
"preview": "interfacemode novatel rtcmv3\r\nundulation user 0\r\nfix position 35.872988846 138.389665470 1003.8599\r\nlog rtcm1004 ontime..."
},
{
"path": "assets/commands/oem4_rtcm3_1hz.cmd",
"chars": 338,
"preview": "interfacemode novatel rtcmv3\r\nundulation user 0\r\nfix position 35.872988846 138.389665470 1003.8599\r\nlog rtcm1004 ontime..."
},
{
"path": "assets/commands/oem4_setcom115200.cmd",
"chars": 110,
"preview": "com com1 115200 n 8 1 n off on\r\ncom com2 115200 n 8 1 n off on\r\ncom com3 115200 n 8 1 n off on\r\nsaveconfig\r\n@\n"
},
{
"path": "assets/commands/oem6_raw_1hz.cmd",
"chars": 319,
"preview": "unlog all\r\nlog rangecmpb ontime 1\r\nlog rawephemb onnew\r\nlog ionutcb onnew\r\nlog rawwaasframeb onnew\r\nlog gloephemerisb on..."
},
{
"path": "assets/commands/sirf_raw_1hz.cmd",
"chars": 444,
"preview": "; Switch to SiRF 57600\n$PSRF100,0,57600,8,1,0*37\n!WAIT 100\n\n; Enable navlib\n!HEX a0a20019 80 00000000 00000000 00000000..."
},
{
"path": "assets/commands/skytraq_raw_10hz.cmd",
"chars": 84,
"preview": "!STQ CFG-FMT 2 0\r\n!WAIT 100\r\n!STQ CFG-RATE 10Hz 1 1 0 0 1 0\r\n\r\n\n@\n!STQ CFG-FMT 0 0\r\n"
},
{
"path": "assets/commands/skytraq_raw_1hz.cmd",
"chars": 83,
"preview": "!STQ CFG-FMT 2 0\r\n!WAIT 100\r\n!STQ CFG-RATE 1Hz 1 1 0 0 1 0\r\n\r\n\n@\n!STQ CFG-FMT 0 0\r\n"
},
{
"path": "assets/commands/skytraq_raw_20hz.cmd",
"chars": 84,
"preview": "!STQ CFG-FMT 2 0\r\n!WAIT 100\r\n!STQ CFG-RATE 20Hz 1 1 0 0 1 0\r\n\r\n\n@\n!STQ CFG-FMT 0 0\r\n"
},
{
"path": "assets/commands/skytraq_raw_5hz.cmd",
"chars": 83,
"preview": "!STQ CFG-FMT 2 0\r\n!WAIT 100\r\n!STQ CFG-RATE 5Hz 1 1 0 0 1 0\r\n\r\n\n@\n!STQ CFG-FMT 0 0\r\n"
},
{
"path": "assets/commands/ubx_raw_10hz.cmd",
"chars": 54,
"preview": "!UBX CFG-RATE 100 1 1\r\n\r\n\n@\n!UBX CFG-RATE 1000 1 1\r\n\r\n"
},
{
"path": "assets/commands/ubx_raw_1hz.cmd",
"chars": 55,
"preview": "!UBX CFG-RATE 1000 1 1\r\n\r\n\n@\n!UBX CFG-RATE 1000 1 1\r\n\r\n"
},
{
"path": "assets/commands/ubx_raw_5hz.cmd",
"chars": 54,
"preview": "!UBX CFG-RATE 200 1 1\r\n\r\n\n@\n!UBX CFG-RATE 1000 1 1\r\n\r\n"
},
{
"path": "assets/licenses.html",
"chars": 15439,
"preview": "<html>\n <head>\n <style>\n body { font-family: sans-serif; }\n pre {\n backgr..."
},
{
"path": "build.gradle",
"chars": 1015,
"preview": "buildscript {\n repositories {\n mavenCentral()\n }\n dependencies {\n classpath 'com.android.tools.bu..."
},
{
"path": "build.xml",
"chars": 3924,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project name=\"MainActivity\" default=\"help\">\n\n <!-- The local.properties file..."
},
{
"path": "jni/Android.mk",
"chars": 379,
"preview": "LOCAL_PATH := $(call my-dir)\n\ninclude $(LOCAL_PATH)/rtklib.mk\n\ninclude $(CLEAR_VARS)\n\nLOCAL_MODULE := rtkgps\n\nLOCAL_C..."
},
{
"path": "jni/Application.mk",
"chars": 339,
"preview": "APP_PROJECT_PATH := $(shell pwd)\nAPP_ABI := armeabi-v7a x86\n#APP_BUILD_SCRIPT := $(APP_PROJECT_PATH)/Android.mk\n\nAPP_PLA..."
},
{
"path": "jni/gtime.c",
"chars": 2668,
"preview": "\n#include <android/log.h>\n#include <jni.h>\n#include <strings.h>\n\n#include \"rtklib.h\"\n\n#define TAG \"nativeGTime\"\n#define..."
},
{
"path": "jni/log.c",
"chars": 371,
"preview": "#include <android/log.h>\n#include <stdarg.h>\n\n#include \"rtklib.h\"\n\n#define LOG_TAG \"rtklib\"\n\nextern int showmsg(char *fo..."
},
{
"path": "jni/prcopt.c",
"chars": 16696,
"preview": "\n#include <android/log.h>\n#include <jni.h>\n#include <strings.h>\n\n#include \"rtklib.h\"\n#include \"rtkjni.h\"\n\n#define TAG \"n..."
},
{
"path": "jni/rtkcommon.c",
"chars": 4068,
"preview": "\n#include <android/log.h>\n#include <jni.h>\n#include <strings.h>\n\n#include \"rtklib.h\"\n\n#define TAG \"nativeRtkCommion\"\n#de..."
},
{
"path": "jni/rtkjni.c",
"chars": 1417,
"preview": "\n#include <android/log.h>\n#include <jni.h>\n#include <strings.h>\n\n#include \"rtkjni.h\"\n\n#define TAG \"nativeRtk\"\n#define LO..."
},
{
"path": "jni/rtkjni.h",
"chars": 614,
"preview": "\n#ifndef _RTKJNI_H\n#define _RTKJNI_H\n\n#include \"rtklib.h\"\n\nint registerRtkServerNatives(JNIEnv* env);\nint registerRtkCom..."
},
{
"path": "jni/rtklib.mk",
"chars": 2248,
"preview": "include $(CLEAR_VARS)\n\nRTKLIB_PATH := RTKLIB\nRTKLIB_CFLAGS := -DENAGLO -DENAGAL -DENAQZS -DENACMP -DNFREQ=3 -DTRACE\n\nLOC..."
},
{
"path": "jni/rtkserver.c",
"chars": 22281,
"preview": "\n#include <android/log.h>\n#include <jni.h>\n#include <strings.h>\n\n#include \"rtklib.h\"\n#include \"rtkjni.h\"\n\n#define TAG \"n..."
},
{
"path": "jni/solopt.c",
"chars": 4829,
"preview": "\n#include <android/log.h>\n#include <jni.h>\n#include <strings.h>\n\n#include \"rtklib.h\"\n#include \"rtkjni.h\"\n\n#define TAG \"n..."
},
{
"path": "libs/osmdroid-android-3.0.11-SNAPSHOT.jar.properties",
"chars": 54,
"preview": "src=../vendor/OsmDroid/osmdroid-android/src/main/java\n"
},
{
"path": "libs/osmdroid-third-party-3.0.10.jar.properties",
"chars": 58,
"preview": "src=../vendor/OsmDroid/osmdroid-third-party/src/main/java\n"
},
{
"path": "proguard-annotations.txt",
"chars": 3726,
"preview": "#\n# This ProGuard configuration file specifies how annotations can be used\n# to configure the processing of other code...."
},
{
"path": "proguard-project.txt",
"chars": 1695,
"preview": "# To enable ProGuard in your project, edit project.properties\n# to define the proguard.config property as described in t..."
},
{
"path": "project.properties",
"chars": 587,
"preview": "# This file is automatically generated by Android Tools.\n# Do not modify this file -- YOUR CHANGES WILL BE ERASED!\n#\n# T..."
},
{
"path": "res/drawable/map_point_marker.xml",
"chars": 277,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<shape xmlns:android=\"http://schemas.android.com/apk/res/android\" \n android:sh..."
},
{
"path": "res/layout/activity_about.xml",
"chars": 2227,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n an..."
},
{
"path": "res/layout/activity_input_stream_settings.xml",
"chars": 257,
"preview": "<android.support.v4.view.ViewPager xmlns:android=\"http://schemas.android.com/apk/res/android\"\n xmlns:tools=\"http://sc..."
},
{
"path": "res/layout/activity_main.xml",
"chars": 535,
"preview": "<android.support.v4.widget.DrawerLayout\n xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:id=\"@..."
},
{
"path": "res/layout/activity_settings.xml",
"chars": 795,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ScrollView xmlns:android=\"http://schemas.android.com/apk/res/android\"\n androi..."
},
{
"path": "res/layout/activity_startup_shutdown_commands.xml",
"chars": 3917,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout\n xmlns:android=\"http://schemas.android.com/apk/res/android\"\n\tand..."
},
{
"path": "res/layout/activity_station_position.xml",
"chars": 5005,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n andr..."
},
{
"path": "res/layout/activity_stream_settings_dialog.xml",
"chars": 1012,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n <LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"..."
},
{
"path": "res/layout/fragment_map.xml",
"chars": 1559,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FrameLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n xmlns..."
},
{
"path": "res/layout/fragment_status.xml",
"chars": 2038,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n xmln..."
},
{
"path": "res/layout/include_status_view_widget.xml",
"chars": 1429,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<merge\n xmlns:android=\"http://schemas.android.com/apk/res/android\">\n \n\t<Spi..."
},
{
"path": "res/layout/navigation_drawer.xml",
"chars": 3179,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ScrollView\n xmlns:android=\"http://schemas.android.com/apk/res/android\"..."
},
{
"path": "res/layout/select_solution_view_item.xml",
"chars": 303,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<TextView xmlns:android=\"http://schemas.android.com/apk/res/android\"\n style=\"?..."
},
{
"path": "res/layout/view_solution.xml",
"chars": 4060,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout\n xmlns:android=\"http://schemas.android.com/apk/res/android\"\n\tand..."
},
{
"path": "res/layout-land/fragment_status.xml",
"chars": 2569,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n xm..."
},
{
"path": "res/menu/activity_main.xml",
"chars": 682,
"preview": "<menu xmlns:android=\"http://schemas.android.com/apk/res/android\" >\n\t<item\n\t\tandroid:id=\"@+id/menu_start_service\"\n\t\tandro..."
},
{
"path": "res/menu/fragment_map.xml",
"chars": 928,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<menu xmlns:android=\"http://schemas.android.com/apk/res/android\" >\n\n <item..."
},
{
"path": "res/menu/fragment_status.xml",
"chars": 460,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<menu xmlns:android=\"http://schemas.android.com/apk/res/android\" >\n\t<item\n\t\tandro..."
},
{
"path": "res/values/attrs.xml",
"chars": 1214,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n <declare-styleable name=\"GTimeView\">\n <attr name=\"time_for..."
},
{
"path": "res/values/strings.xml",
"chars": 24886,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <string name=\"app_name\">RtkGps</string>\n <string name=\"app_ur..."
},
{
"path": "res/values/styles.xml",
"chars": 1545,
"preview": "<resources xmlns:android=\"http://schemas.android.com/apk/res/android\">\n\n <!-- Application theme. -->\n <style name=..."
},
{
"path": "res/values-sw600dp/dimens.xml",
"chars": 195,
"preview": "<resources>\n\n <!--\n Customize dimensions originally defined in res/values/dimens.xml (such as\n screen..."
},
{
"path": "res/xml/input_stream_settings_base.xml",
"chars": 2246,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<PreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\" >..."
},
{
"path": "res/xml/input_stream_settings_correction.xml",
"chars": 1257,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<PreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\" >..."
},
{
"path": "res/xml/input_stream_settings_rover.xml",
"chars": 1466,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<PreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\" >..."
},
{
"path": "res/xml/log_stream_settings.xml",
"chars": 648,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<PreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\" >..."
},
{
"path": "res/xml/output_stream_settings.xml",
"chars": 850,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<PreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\" >..."
},
{
"path": "res/xml/preference_headers.xml",
"chars": 484,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<preference-headers xmlns:android=\"http://schemas.android.com/apk/res/android\">..."
},
{
"path": "res/xml/processing_options1.xml",
"chars": 3823,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<PreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\" >..."
},
{
"path": "res/xml/solution_output_settings.xml",
"chars": 2398,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<PreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\" >..."
},
{
"path": "res/xml/stream_bluetooth_settings.xml",
"chars": 666,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<PreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\" >..."
},
{
"path": "res/xml/stream_file_settings.xml",
"chars": 309,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<PreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\" >..."
},
{
"path": "res/xml/stream_ntrip_client_settings.xml",
"chars": 992,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<PreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\" >..."
},
{
"path": "res/xml/stream_tcp_client_settings.xml",
"chars": 492,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<PreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\" >..."
},
{
"path": "res/xml/stream_usb_settings.xml",
"chars": 1267,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<PreferenceScreen xmlns:android=\"http://schemas.android.com/apk/res/android\" >..."
},
{
"path": "res/xml/usb_device_filter.xml",
"chars": 507,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n <!-- Prolific -->\n <usb-device vendor-id=\"1659\" product-id=\"8..."
},
{
"path": "src/ru0xdc/rtkgps/AboutActivity.java",
"chars": 1892,
"preview": "package ru0xdc.rtkgps;\n\nimport android.app.Activity;\nimport android.app.AlertDialog;\nimport android.app.Dialog;\nimport a..."
},
{
"path": "src/ru0xdc/rtkgps/BluetoothToRtklib.java",
"chars": 9891,
"preview": "package ru0xdc.rtkgps;\n\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStream;\n\nimport jav..."
},
{
"path": "src/ru0xdc/rtkgps/MainActivity.java",
"chars": 12147,
"preview": "package ru0xdc.rtkgps;\n\nimport android.app.Activity;\nimport android.app.Fragment;\nimport android.content.ComponentName;..."
},
{
"path": "src/ru0xdc/rtkgps/MapFragment.java",
"chars": 13795,
"preview": "package ru0xdc.rtkgps;\n\nimport static junit.framework.Assert.assertNotNull;\n\nimport android.app.Activity;\nimport android..."
},
{
"path": "src/ru0xdc/rtkgps/ResourceProxyImpl.java",
"chars": 1469,
"preview": "package ru0xdc.rtkgps;\n\nimport org.osmdroid.DefaultResourceProxyImpl;\n\nimport android.content.Context;\nimport android.co..."
},
{
"path": "src/ru0xdc/rtkgps/RtkGps.java",
"chars": 643,
"preview": "package ru0xdc.rtkgps;\n\nimport org.acra.ReportingInteractionMode;\nimport org.acra.annotation.ReportsCrashes;\n\nimport and..."
},
{
"path": "src/ru0xdc/rtkgps/RtkNaviService.java",
"chars": 11018,
"preview": "package ru0xdc.rtkgps;\n\nimport android.app.Notification;\nimport android.app.PendingIntent;\nimport android.app.Service;\ni..."
},
{
"path": "src/ru0xdc/rtkgps/RtklibLocalSocketThread.java",
"chars": 7648,
"preview": "package ru0xdc.rtkgps;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStream;\n\nimport java..."
},
{
"path": "src/ru0xdc/rtkgps/SolutionPathOverlay.java",
"chars": 7764,
"preview": "package ru0xdc.rtkgps;\n\nimport microsoft.mappoint.TileSystem;\n\nimport org.osmdroid.ResourceProxy;\nimport org.osmdroid.vi..."
},
{
"path": "src/ru0xdc/rtkgps/StatusFragment.java",
"chars": 18683,
"preview": "package ru0xdc.rtkgps;\n\nimport static junit.framework.Assert.assertNotNull;\n\nimport java.util.Timer;\nimport java.util.Ti..."
},
{
"path": "src/ru0xdc/rtkgps/UsbToRtklib.java",
"chars": 16516,
"preview": "package ru0xdc.rtkgps;\n\nimport android.app.PendingIntent;\nimport android.content.BroadcastReceiver;\nimport android.conte..."
},
{
"path": "src/ru0xdc/rtkgps/settings/InputBaseFragment.java",
"chars": 5315,
"preview": "package ru0xdc.rtkgps.settings;\n\nimport javax.annotation.Nonnull;\n\nimport ru0xdc.rtkgps.BuildConfig;\nimport ru0xdc.rtkgp..."
},
{
"path": "src/ru0xdc/rtkgps/settings/InputCorrectionFragment.java",
"chars": 3180,
"preview": "package ru0xdc.rtkgps.settings;\n\nimport javax.annotation.Nonnull;\n\nimport ru0xdc.rtkgps.BuildConfig;\nimport ru0xdc.rtkgp..."
},
{
"path": "src/ru0xdc/rtkgps/settings/InputRoverFragment.java",
"chars": 10012,
"preview": "package ru0xdc.rtkgps.settings;\n\nimport java.util.ArrayList;\nimport java.util.Arrays;\n\nimport javax.annotation.Nonnull;..."
},
{
"path": "src/ru0xdc/rtkgps/settings/LogBaseFragment.java",
"chars": 1306,
"preview": "package ru0xdc.rtkgps.settings;\n\nimport javax.annotation.Nonnull;\n\nimport ru0xdc.rtkgps.R;\nimport ru0xdc.rtklib.RtkServe..."
},
{
"path": "src/ru0xdc/rtkgps/settings/LogCorrectionFragment.java",
"chars": 1335,
"preview": "package ru0xdc.rtkgps.settings;\n\nimport javax.annotation.Nonnull;\n\nimport ru0xdc.rtkgps.R;\nimport ru0xdc.rtklib.RtkServe..."
},
{
"path": "src/ru0xdc/rtkgps/settings/LogRoverFragment.java",
"chars": 5133,
"preview": "package ru0xdc.rtkgps.settings;\n\nimport javax.annotation.Nonnull;\n\nimport ru0xdc.rtkgps.BuildConfig;\nimport ru0xdc.rtkgp..."
},
{
"path": "src/ru0xdc/rtkgps/settings/OutputSolution1Fragment.java",
"chars": 6832,
"preview": "package ru0xdc.rtkgps.settings;\n\nimport javax.annotation.Nonnull;\n\nimport ru0xdc.rtkgps.BuildConfig;\nimport ru0xdc.rtkgp..."
},
{
"path": "src/ru0xdc/rtkgps/settings/OutputSolution2Fragment.java",
"chars": 1428,
"preview": "package ru0xdc.rtkgps.settings;\n\nimport javax.annotation.Nonnull;\n\nimport ru0xdc.rtkgps.R;\nimport ru0xdc.rtklib.RtkServe..."
},
{
"path": "src/ru0xdc/rtkgps/settings/ProcessingOptions1Fragment.java",
"chars": 12569,
"preview": "package ru0xdc.rtkgps.settings;\n\nimport java.util.ArrayList;\nimport java.util.EnumSet;\nimport java.util.HashSet;\nimport..."
},
{
"path": "src/ru0xdc/rtkgps/settings/SettingsActivity.java",
"chars": 332,
"preview": "package ru0xdc.rtkgps.settings;\n\nimport java.util.List;\n\nimport ru0xdc.rtkgps.R;\nimport android.preference.PreferenceAct..."
},
{
"path": "src/ru0xdc/rtkgps/settings/SettingsHelper.java",
"chars": 16473,
"preview": "package ru0xdc.rtkgps.settings;\n\nimport android.content.Context;\nimport android.content.SharedPreferences;\nimport androi..."
},
{
"path": "src/ru0xdc/rtkgps/settings/SolutionOutputSettingsFragment.java",
"chars": 12798,
"preview": "package ru0xdc.rtkgps.settings;\n\nimport ru0xdc.rtkgps.BuildConfig;\nimport ru0xdc.rtkgps.R;\nimport ru0xdc.rtklib.Solution..."
},
{
"path": "src/ru0xdc/rtkgps/settings/StartupShutdownSettingsActivity.java",
"chars": 8127,
"preview": "package ru0xdc.rtkgps.settings;\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamRe..."
},
{
"path": "src/ru0xdc/rtkgps/settings/StationPositionActivity.java",
"chars": 15916,
"preview": "package ru0xdc.rtkgps.settings;\n\nimport java.util.Locale;\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern..."
},
{
"path": "src/ru0xdc/rtkgps/settings/StreamBluetoothFragment.java",
"chars": 9817,
"preview": "package ru0xdc.rtkgps.settings;\n\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Comparator;..."
},
{
"path": "src/ru0xdc/rtkgps/settings/StreamDialogActivity.java",
"chars": 2693,
"preview": "package ru0xdc.rtkgps.settings;\n\nimport ru0xdc.rtkgps.R;\nimport ru0xdc.rtklib.constants.StreamType;\nimport android.app.A..."
},
{
"path": "src/ru0xdc/rtkgps/settings/StreamFileClientFragment.java",
"chars": 4543,
"preview": "package ru0xdc.rtkgps.settings;\n\nimport java.io.File;\n\nimport javax.annotation.Nonnull;\n\nimport ru0xdc.rtkgps.BuildConfi..."
},
{
"path": "src/ru0xdc/rtkgps/settings/StreamNtripClientFragment.java",
"chars": 7291,
"preview": "package ru0xdc.rtkgps.settings;\nimport javax.annotation.Nonnull;\n\nimport ru0xdc.rtkgps.BuildConfig;\nimport ru0xdc.rtkgps..."
},
{
"path": "src/ru0xdc/rtkgps/settings/StreamSettingsActivity.java",
"chars": 8979,
"preview": "package ru0xdc.rtkgps.settings;\n\nimport ru0xdc.rtkgps.R;\nimport android.app.ActionBar;\nimport android.app.Activity;\nimpo..."
},
{
"path": "src/ru0xdc/rtkgps/settings/StreamTcpClientFragment.java",
"chars": 5178,
"preview": "package ru0xdc.rtkgps.settings;\n\nimport javax.annotation.Nonnull;\n\nimport ru0xdc.rtkgps.BuildConfig;\nimport ru0xdc.rtkgp..."
},
{
"path": "src/ru0xdc/rtkgps/settings/StreamUsbFragment.java",
"chars": 6988,
"preview": "package ru0xdc.rtkgps.settings;\n\nimport android.content.Context;\nimport android.content.SharedPreferences;\nimport androi..."
},
{
"path": "src/ru0xdc/rtkgps/settings/widget/EarthTideCorrectionPreference.java",
"chars": 665,
"preview": "package ru0xdc.rtkgps.settings.widget;\n\nimport ru0xdc.rtklib.constants.EarthTideCorrectionType;\nimport android.content.C..."
},
{
"path": "src/ru0xdc/rtkgps/settings/widget/EnumListPreference.java",
"chars": 2075,
"preview": "package ru0xdc.rtkgps.settings.widget;\n\nimport ru0xdc.rtklib.constants.IHasRtklibId;\nimport android.content.Context;\nimp..."
},
{
"path": "src/ru0xdc/rtkgps/settings/widget/EphemerisOptionPreference.java",
"chars": 622,
"preview": "package ru0xdc.rtkgps.settings.widget;\n\nimport ru0xdc.rtklib.constants.EphemerisOption;\nimport android.content.Context;..."
},
{
"path": "src/ru0xdc/rtkgps/settings/widget/IonosphereCorrectionPreference.java",
"chars": 640,
"preview": "package ru0xdc.rtkgps.settings.widget;\n\nimport ru0xdc.rtklib.constants.IonosphereOption;\nimport android.content.Context;..."
},
{
"path": "src/ru0xdc/rtkgps/settings/widget/MultiSelectListPreferenceWorkaround.java",
"chars": 1229,
"preview": "package ru0xdc.rtkgps.settings.widget;\n\nimport java.util.Set;\n\nimport android.content.Context;\nimport android.os.Build;..."
},
{
"path": "src/ru0xdc/rtkgps/settings/widget/PositioningModePreference.java",
"chars": 624,
"preview": "package ru0xdc.rtkgps.settings.widget;\n\nimport ru0xdc.rtklib.constants.PositioningMode;\nimport android.content.Context;..."
},
{
"path": "src/ru0xdc/rtkgps/settings/widget/SolutionFormatPreference.java",
"chars": 440,
"preview": "package ru0xdc.rtkgps.settings.widget;\n\nimport ru0xdc.rtklib.constants.SolutionFormat;\nimport android.content.Context;\ni..."
},
{
"path": "src/ru0xdc/rtkgps/settings/widget/StartupShutdownCommandsPreference.java",
"chars": 1351,
"preview": "package ru0xdc.rtkgps.settings.widget;\n\n\nimport ru0xdc.rtkgps.R;\nimport android.content.Context;\nimport android.preferen..."
},
{
"path": "src/ru0xdc/rtkgps/settings/widget/StreamFormatPreference.java",
"chars": 429,
"preview": "package ru0xdc.rtkgps.settings.widget;\n\nimport ru0xdc.rtklib.constants.StreamFormat;\nimport android.content.Context;\nimp..."
},
{
"path": "src/ru0xdc/rtkgps/settings/widget/StreamTypePreference.java",
"chars": 419,
"preview": "package ru0xdc.rtkgps.settings.widget;\n\nimport ru0xdc.rtklib.constants.StreamType;\nimport android.content.Context;\nimpor..."
},
{
"path": "src/ru0xdc/rtkgps/settings/widget/TroposphereCorrectionPreference.java",
"chars": 647,
"preview": "package ru0xdc.rtkgps.settings.widget;\n\nimport ru0xdc.rtklib.constants.TroposphereOption;\nimport android.content.Context..."
},
{
"path": "src/ru0xdc/rtkgps/usb/SerialLineConfiguration.java",
"chars": 7650,
"preview": "package ru0xdc.rtkgps.usb;\n\nimport android.text.TextUtils;\n\nimport java.util.Locale;\nimport java.util.regex.Matcher;\nimp..."
},
{
"path": "src/ru0xdc/rtkgps/usb/UsbAcmController.java",
"chars": 13976,
"preview": "package ru0xdc.rtkgps.usb;\n\nimport android.hardware.usb.UsbConstants;\nimport android.hardware.usb.UsbDevice;\nimport andr..."
},
{
"path": "src/ru0xdc/rtkgps/usb/UsbPl2303Controller.java",
"chars": 9317,
"preview": "package ru0xdc.rtkgps.usb;\n\nimport android.annotation.TargetApi;\nimport android.hardware.usb.UsbConstants;\nimport androi..."
},
{
"path": "src/ru0xdc/rtkgps/usb/UsbSerialController.java",
"chars": 8135,
"preview": "package ru0xdc.rtkgps.usb;\n\nimport android.annotation.TargetApi;\nimport android.app.PendingIntent;\nimport android.conten..."
},
{
"path": "src/ru0xdc/rtkgps/view/GTimeView.java",
"chars": 5697,
"preview": "package ru0xdc.rtkgps.view;\n\nimport java.text.SimpleDateFormat;\nimport java.util.Date;\nimport java.util.Locale;\nimport j..."
},
{
"path": "src/ru0xdc/rtkgps/view/GpsSkyView.java",
"chars": 9353,
"preview": "package ru0xdc.rtkgps.view;\n\nimport java.text.DecimalFormat;\n\nimport ru0xdc.rtkgps.BuildConfig;\nimport ru0xdc.rtkgps.R;..."
},
{
"path": "src/ru0xdc/rtkgps/view/SnrView.java",
"chars": 10918,
"preview": "package ru0xdc.rtkgps.view;\n\nimport ru0xdc.rtkgps.BuildConfig;\nimport ru0xdc.rtkgps.R;\nimport ru0xdc.rtklib.RtkServerObs..."
},
{
"path": "src/ru0xdc/rtkgps/view/SolutionView.java",
"chars": 16339,
"preview": "package ru0xdc.rtkgps.view;\n\nimport android.content.Context;\nimport android.content.res.TypedArray;\nimport android.graph..."
},
{
"path": "src/ru0xdc/rtkgps/view/StreamIndicatorsView.java",
"chars": 7573,
"preview": "package ru0xdc.rtkgps.view;\n\nimport ru0xdc.rtkgps.BuildConfig;\nimport ru0xdc.rtklib.RtkServerStreamStatus;\nimport androi..."
},
{
"path": "src/ru0xdc/rtklib/GTime.java",
"chars": 1347,
"preview": "package ru0xdc.rtklib;\n\nimport proguard.annotation.Keep;\n\npublic class GTime {\n\n /**\n * time (s) expressed by sta..."
},
{
"path": "src/ru0xdc/rtklib/ProcessingOptions.java",
"chars": 17108,
"preview": "package ru0xdc.rtklib;\n\nimport java.util.Arrays;\nimport java.util.EnumSet;\nimport java.util.Set;\n\nimport ru0xdc.rtkgps.B..."
},
{
"path": "src/ru0xdc/rtklib/RtkCommon.java",
"chars": 11613,
"preview": "package ru0xdc.rtklib;\n\nimport java.util.Arrays;\nimport java.util.Locale;\n\nimport javax.annotation.Nullable;\n\nimport pro..."
},
{
"path": "src/ru0xdc/rtklib/RtkControlResult.java",
"chars": 2362,
"preview": "package ru0xdc.rtklib;\n\nimport proguard.annotation.Keep;\nimport ru0xdc.rtklib.RtkCommon.Position3d;\n\npublic class RtkCon..."
},
{
"path": "src/ru0xdc/rtklib/RtkServer.java",
"chars": 7694,
"preview": "package ru0xdc.rtklib;\n\nimport java.io.File;\n\nimport javax.annotation.Nonnull;\n\nimport proguard.annotation.Keep;\nimport..."
},
{
"path": "src/ru0xdc/rtklib/RtkServerObservationStatus.java",
"chars": 11218,
"preview": "package ru0xdc.rtklib;\n\nimport java.text.DecimalFormat;\nimport java.util.Arrays;\n\nimport javax.annotation.Nonnegative;\ni..."
},
{
"path": "src/ru0xdc/rtklib/RtkServerSettings.java",
"chars": 15924,
"preview": "package ru0xdc.rtklib;\n\nimport static junit.framework.Assert.assertNotNull;\n\nimport javax.annotation.Nonnull;\n\nimport ru..."
},
{
"path": "src/ru0xdc/rtklib/RtkServerStreamStatus.java",
"chars": 4946,
"preview": "package ru0xdc.rtklib;\n\nimport proguard.annotation.Keep;\nimport android.annotation.SuppressLint;\n\npublic class RtkServer..."
},
{
"path": "src/ru0xdc/rtklib/Solution.java",
"chars": 6775,
"preview": "package ru0xdc.rtklib;\n\nimport java.util.Arrays;\nimport java.util.Locale;\n\nimport proguard.annotation.Keep;\nimport ru0xd..."
},
{
"path": "src/ru0xdc/rtklib/SolutionOptions.java",
"chars": 7260,
"preview": "package ru0xdc.rtklib;\n\nimport javax.annotation.Nonnegative;\nimport javax.annotation.Nonnull;\n\nimport proguard.annotatio..."
},
{
"path": "src/ru0xdc/rtklib/constants/Constants.java",
"chars": 2184,
"preview": "package ru0xdc.rtklib.constants;\n\n\npublic class Constants {\n\n /** number of carrier frequencies */\n public final s..."
},
{
"path": "src/ru0xdc/rtklib/constants/EarthTideCorrectionType.java",
"chars": 1054,
"preview": "package ru0xdc.rtklib.constants;\n\nimport ru0xdc.rtkgps.R;\n\n/**\n * earth tide correction (0:off,1:solid,2:solid+otl+pole)..."
},
{
"path": "src/ru0xdc/rtklib/constants/EphemerisOption.java",
"chars": 1341,
"preview": "package ru0xdc.rtklib.constants;\n\nimport ru0xdc.rtkgps.R;\n\n/**\n * Satellite ephemeris / clock option (EPHOPT_XXX)\n *\n */..."
},
{
"path": "src/ru0xdc/rtklib/constants/GeoidModel.java",
"chars": 1734,
"preview": "package ru0xdc.rtklib.constants;\n\nimport ru0xdc.rtkgps.R;\nimport android.content.res.Resources;\n\n/** Geoid model GEOID_X..."
},
{
"path": "src/ru0xdc/rtklib/constants/IHasRtklibId.java",
"chars": 236,
"preview": "package ru0xdc.rtklib.constants;\n\n\npublic interface IHasRtklibId {\n\n /**\n * @return rtklib.h ID\n */\n publi..."
},
{
"path": "src/ru0xdc/rtklib/constants/IonosphereOption.java",
"chars": 1305,
"preview": "package ru0xdc.rtklib.constants;\n\nimport ru0xdc.rtkgps.R;\n\n/**\n * Ionosphere option (IONOOPT_XXX)\n */\npublic enum Ionosp..."
},
{
"path": "src/ru0xdc/rtklib/constants/NavigationSystem.java",
"chars": 1782,
"preview": "package ru0xdc.rtklib.constants;\n\nimport ru0xdc.rtkgps.R;\nimport android.content.res.Resources;\n\n\n/**\n *\n * Navigation S..."
},
{
"path": "src/ru0xdc/rtklib/constants/PositioningMode.java",
"chars": 2129,
"preview": "package ru0xdc.rtklib.constants;\n\nimport ru0xdc.rtkgps.R;\n\n/**\n * Positioning mode PMODE_XXX\n *\n */\npublic enum Position..."
},
{
"path": "src/ru0xdc/rtklib/constants/SolutionFormat.java",
"chars": 1359,
"preview": "package ru0xdc.rtklib.constants;\n\nimport ru0xdc.rtkgps.R;\n\n/**\n * Solution format (SOLF_XXX):\n * {@link #LLH},\n * {@link..."
},
{
"path": "src/ru0xdc/rtklib/constants/SolutionStatus.java",
"chars": 1154,
"preview": "package ru0xdc.rtklib.constants;\n\nimport ru0xdc.rtkgps.R;\n\n/**\n * Solution status SOLQ_XXX: {@link #NONE},\n * {@link #F..."
},
{
"path": "src/ru0xdc/rtklib/constants/StationPositionType.java",
"chars": 1004,
"preview": "package ru0xdc.rtklib.constants;\n\nimport ru0xdc.rtkgps.R;\n\npublic enum StationPositionType implements IHasRtklibId {..."
},
{
"path": "src/ru0xdc/rtklib/constants/StreamFormat.java",
"chars": 2117,
"preview": "package ru0xdc.rtklib.constants;\n\nimport ru0xdc.rtkgps.R;\n\n/**\n * Stream format STRFMT_XXX\n */\npublic enum StreamFormat..."
},
{
"path": "src/ru0xdc/rtklib/constants/StreamType.java",
"chars": 1534,
"preview": "package ru0xdc.rtklib.constants;\n\nimport ru0xdc.rtkgps.R;\n\n\n/** Stream type STR_XXX */\npublic enum StreamType implements..."
},
{
"path": "src/ru0xdc/rtklib/constants/TimeSystem.java",
"chars": 1482,
"preview": "package ru0xdc.rtklib.constants;\n\nimport ru0xdc.rtkgps.R;\nimport android.content.res.Resources;\n\n/** Time system (TIMES_..."
},
{
"path": "src/ru0xdc/rtklib/constants/TroposphereOption.java",
"chars": 1181,
"preview": "package ru0xdc.rtklib.constants;\n\nimport ru0xdc.rtkgps.R;\n\n/**\n * Troposphere option (TROPOPT_XXX)\n */\npublic enum Tropo..."
}
]
About this extraction
This page contains the full source code of the illarionov/RtkGps GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 186 files (638.9 KB), approximately 160.2k tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.