Initial Commit

This commit is contained in:
2012-01-22 13:53:19 -05:00
commit 2b3f9f8954
19 changed files with 1512 additions and 0 deletions

BIN
IOIOTruck/res/drawable/icon.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -0,0 +1,98 @@
<?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" >
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/icon" />
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="@string/app_name"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:text="@string/by"
android:textAppearance="?android:attr/textAppearanceSmall" />
</LinearLayout>
<Button
android:id="@+id/test_activity_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/test_activity" />
<Button
android:id="@+id/nav_activity_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/nav_activity" />
<RelativeLayout
android:id="@+id/relativeLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:text="@string/about"
android:textAppearance="?android:attr/textAppearanceLarge" />
<LinearLayout
android:id="@+id/linearLayout2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="5dip"
android:text="@string/version"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+id/version_textview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall" />
</LinearLayout>
<ScrollView
android:id="@+id/scrollView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/linearLayout2"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_below="@+id/textView3" >
<TextView
android:id="@+id/textView4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/about_msg" />
</ScrollView>
</RelativeLayout>
</LinearLayout>

View File

@@ -0,0 +1,100 @@
<?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" >
<ProgressBar
android:id="@+id/progressBar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<RelativeLayout
android:id="@+id/relativeLayout1"
android:layout_width="match_parent"
android:layout_height="0px"
android:layout_weight="2" >
<fragment
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/map_fragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
class="com.TwentyCodes.android.IOIOTruck.MapFragment" >
<!-- Preview: layout=@layout/map_fragment -->
</fragment>
<TextView
android:id="@+id/accuracy_textview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:textColor="#FF0000" />
<TextView
android:id="@+id/time_textview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_below="@id/accuracy_textview"
android:textColor="#FF0000" />
<ImageButton
android:id="@+id/mark_my_lcoation_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:src="@drawable/mark_my_location_action_bar" />
<ImageButton
android:id="@+id/my_location_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/mark_my_lcoation_button"
android:layout_alignParentRight="true"
android:src="@drawable/my_location_action_bar" />
</RelativeLayout>
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/log"
android:textAppearance="?android:attr/textAppearanceLarge" />
<Switch
android:id="@+id/scrolling_switch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="40dip"
android:checked="true"
android:text="@string/scrolling" />
</LinearLayout>
<ScrollView
android:id="@+id/scrollview"
android:layout_width="match_parent"
android:layout_height="0px"
android:layout_weight="1" >
<TextView
android:id="@+id/log_textView"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</ScrollView>
<Button
android:id="@+id/go_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/go" />
</LinearLayout>

View File

@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/icon" />
<Switch
android:id="@+id/led_switch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="@string/led" />
</LinearLayout>
<SeekBar
android:id="@+id/skeekbar1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="20dip"
android:layout_marginRight="20dip"
android:max="1000"
android:progress="500" />
<com.MobileAnarchy.Android.Widgets.Joystick.JoystickView
android:id="@+id/joystick"
android:layout_width="300dip"
android:layout_height="300dip"
android:layout_gravity="center_horizontal"
android:layout_marginTop="20dip" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="horizontal" >
<TextView
android:id="@+id/tv_drive"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dip"
android:text="@string/drive"
android:textAppearance="?android:attr/textAppearanceSmall" />
<TextView
android:id="@+id/tv_steer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dip"
android:text="@string/steer"
android:textAppearance="?android:attr/textAppearanceSmall" />
<TextView
android:id="@+id/tv_shifter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dip"
android:text="@string/shifter"
android:textAppearance="?android:attr/textAppearanceSmall" />
</LinearLayout>
</LinearLayout>

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hello">Hello World, Main!</string>
<string name="app_name">IOIOTruck</string>
<string name="wait_ioio">Waiting for IOIO to connect…</string>
<string name="ioio_connected">IOIO connected!</string>
<string name="led">Led</string>
<string name="drive">Drive: </string>
<string name="steer">Steer: </string>
<string name="shifter">Shifter: </string>
<string name="test_activity">Function Test Activity</string>
<string name="nav_activity">Navigation Activity</string>
<string name="log">Log</string>
<string name="go">Go…</string>
<string name="stop">Stop…</string>
<string name="scrolling">Scrolling</string>
<string name="last_update">Last Update: </string>
<string name="ms">ms</string>
<string name="m">m</string>
<string name="by">by Twenty Codes, LLC</string>
<string name="version">Version</string>
<string name="about">About</string>
<string name="about_msg">This application is used to demonstrate the power of an Android phone coupled with the IOIO bord can autonomously drive a remote controlled truck or car to a point selected on a map.\n There is two parts of this application, the first is a Funtion Test activity and the second is the Navigation activity. The Function Test activity allows you to test all the featuers of your rc truck and the IOIO. The Navigation activity allows you to select a point on the map and hit Go. The truck will drive to the point selected on the map and stop once it is there. \n\nSpeed controller Port: 3 \nSteering servo Port: 5 \nShifter servo Port: 4</string>
<string name="build">build</string>
<string name="no_gps_signal">No GPS signal at this time, please try agian</string>
<string name="point_selected">Location Selected: </string>
<string name="dest_reached">Destination reached</string>
</resources>