mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-21 11:54:15 +01:00
Hopefully we can programmatically link them to the StabilizationSettings and create a smart Apply/Save button similarly to the GCS implementation.
78 lines
2.8 KiB
XML
78 lines
2.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:setting_attributes="http://schemas.android.com/apk/res/org.openpilot.androidgcs"
|
|
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"
|
|
android:orientation="vertical" >
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical" >
|
|
|
|
<org.openpilot.androidgcs.views.ScrollBarView
|
|
android:id="@+id/rollRateKp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
setting_attributes:setting_name="Roll Rate Kp" />
|
|
|
|
<org.openpilot.androidgcs.views.ScrollBarView
|
|
android:id="@+id/pitchRateKp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
setting_attributes:setting_name="Pitch Rate Kp" />
|
|
|
|
<org.openpilot.androidgcs.views.ScrollBarView
|
|
android:id="@+id/rollRateKi"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
setting_attributes:setting_name="Roll Rate Ki" />
|
|
|
|
<org.openpilot.androidgcs.views.ScrollBarView
|
|
android:id="@+id/pitchRateKi"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
setting_attributes:setting_name="Pitch Rate Ki" />
|
|
|
|
<org.openpilot.androidgcs.views.ScrollBarView
|
|
android:id="@+id/rollKp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
setting_attributes:setting_name="Roll Kp" />
|
|
|
|
<org.openpilot.androidgcs.views.ScrollBarView
|
|
android:id="@+id/pitchKp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
setting_attributes:setting_name="Pitch Kp" />
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="right" >
|
|
|
|
<Button
|
|
android:id="@+id/applyBtn"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/apply" />
|
|
|
|
<Button
|
|
android:id="@+id/saveBtn"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/save" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|