Skip to content

Commit ffc9be8

Browse files
committed
Removed compass calibration for final release.
1 parent 8eb75f0 commit ffc9be8

File tree

4 files changed

+24
-25
lines changed

4 files changed

+24
-25
lines changed

Android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ android {
2828
applicationId 'org.droidplanner.android'
2929
minSdkVersion 14
3030
targetSdkVersion 21
31-
versionCode 30017
31+
versionCode 30100
3232
versionName getGitVersion()
3333
}
3434

Android/src/org/droidplanner/android/fragments/SensorSetupFragment.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@
2121
public class SensorSetupFragment extends Fragment {
2222

2323
@Override
24-
public View onCreateView(LayoutInflater inflater, ViewGroup container,
25-
Bundle savedInstanceState){
24+
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
2625
return inflater.inflate(R.layout.fragment_sensor_setup, container, false);
2726
}
2827

2928
@Override
30-
public void onViewCreated(View view, Bundle savedInstanceState){
29+
public void onViewCreated(View view, Bundle savedInstanceState) {
3130
super.onViewCreated(view, savedInstanceState);
3231

3332
final SensorPagerAdapter pagerAdapter = new SensorPagerAdapter(getActivity()
@@ -36,8 +35,7 @@ public void onViewCreated(View view, Bundle savedInstanceState){
3635
final ViewPager viewPager = (ViewPager) view.findViewById(R.id.configuration_pager);
3736
viewPager.setAdapter(pagerAdapter);
3837

39-
final TabPageIndicator tabIndicator = (TabPageIndicator) view.findViewById(R.id
40-
.configuration_tab_strip);
38+
final TabPageIndicator tabIndicator = (TabPageIndicator) view.findViewById(R.id.configuration_tab_strip);
4139
tabIndicator.setViewPager(viewPager);
4240
}
4341

@@ -52,28 +50,30 @@ public SensorPagerAdapter(Context context, FragmentManager fm) {
5250

5351
@Override
5452
public Fragment getItem(int i) {
55-
switch(i){
53+
switch (i) {
5654
case 0:
5755
default:
58-
return new FragmentSetupMAG();
56+
return new FragmentSetupIMU();
5957
case 1:
60-
return new FragmentSetupIMU();
58+
return new FragmentSetupMAG();
6159
}
6260
}
6361

6462
@Override
6563
public int getCount() {
66-
return 2;
64+
//Enable mag calibration when it's fully working.
65+
// return 2;
66+
return 1;
6767
}
6868

6969
@Override
70-
public CharSequence getPageTitle(int position){
71-
switch(position){
70+
public CharSequence getPageTitle(int position) {
71+
switch (position) {
7272
case 0:
7373
default:
74-
return FragmentSetupMAG.getTitle(context);
74+
return FragmentSetupIMU.getTitle(context);
7575
case 1:
76-
return FragmentSetupIMU.getTitle(context);
76+
return FragmentSetupMAG.getTitle(context);
7777
}
7878
}
7979
}

Android/src/org/droidplanner/android/utils/prefs/DroidPlannerPrefs.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515

1616
/**
1717
* Provides structured access to Droidplanner preferences
18-
*
18+
*
1919
* Over time it might be good to move the various places that are doing
2020
* prefs.getFoo(blah, default) here - to collect prefs in one place and avoid
2121
* duplicating string constants (which tend to become stale as code evolves).
2222
* This is called the DRY (don't repeat yourself) principle of software
2323
* development.
24-
*
25-
*
24+
*
25+
*
2626
*/
2727
public class DroidPlannerPrefs {
2828

@@ -270,7 +270,7 @@ public AutoPanMode getAutoPanMode() {
270270

271271
/**
272272
* Updates the map auto panning target.
273-
*
273+
*
274274
* @param target
275275
*/
276276
public void setAutoPanMode(AutoPanMode target) {

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
[![Issue Stats](http://issuestats.com/github/DroidPlanner/droidplanner/badge/pr)](http://issuestats.com/github/DroidPlanner/droidplanner)
33
[![Issue Stats](http://issuestats.com/github/DroidPlanner/droidplanner/badge/issue)](http://issuestats.com/github/DroidPlanner/droidplanner)
44

5-
# DroidPlanner
5+
# Tower
66

7-
Droidplanner is a Ground Control Station (GCS) Android app built atop [3DR Services](https://github.com/DroidPlanner/3DRServices), for UAVs
7+
Tower is a Ground Control Station (GCS) Android app built atop [3DR Services](https://github.com/DroidPlanner/3DRServices), for UAVs
88
running Ardupilot software.
99

10-
[![Google Play Store](https://developer.android.com/images/brand/en_app_rgb_wo_45.png)](https://play.google.com/store/apps/details?id=org.droidplanner)
10+
[![Google Play Store](https://developer.android.com/images/brand/en_app_rgb_wo_45.png)](https://play.google.com/store/apps/details?id=org.droidplanner.android)
1111

1212
### Usage Guide
1313

1414
The [wiki](https://github.com/DroidPlanner/droidplanner/wiki) has some basic documentation (Help us by making it better!)
1515

1616
For help, visit the [Droidplanner mailing list](https://groups.google.com/forum/#!forum/droidplanner) or the [DroidPlanner Google+ Commnunity](https://plus.google.com/communities/109498440846585781402).
1717

18-
### Droidplanner v3 beta
18+
### Tower beta
1919

2020
![Droidplanner 3.0 beta screenshot](https://cloud.githubusercontent.com/assets/914968/5420988/c11105e0-8211-11e4-9f07-92727d7c78ab.png)
2121

@@ -28,13 +28,12 @@ The next version of Droidplanner is under development, and we would love your he
2828
3. Send feedback: Post your feedback in the [Droidplanner Google+ community](https://plus.google.com/communities/109498440846585781402) or the [Droidplanner mailing list](https://groups.google.com/forum/#!forum/droidplanner). We want to hear what you think!
2929

3030
#### Requirement
31-
In order to run **DroidPlanner v3** on your device, the latest version of **3DR Services** must
32-
be installed.
31+
In order to run **Tower** on your device, the latest version of **3DR Services** must be installed.
3332
To do so, follow the instructions on the [3DR Services github page](https://github.com/DroidPlanner/3DRServices).
3433

3534
### Contributing
3635

37-
Droidplanner v3 is in active development. If you would like to contribute to the project,
36+
Tower is in active development. If you would like to contribute to the project,
3837
see the [Build Setup wiki page](https://github.com/DroidPlanner/droidplanner/wiki).
3938

4039
If you aren't a developer but want to help out, you can do so by improving the documentation in the Wiki or by writing user guides.

0 commit comments

Comments
 (0)