Changeset 570ab65 in orbit for android


Ignore:
Timestamp:
12/27/13 23:20:26 (7 years ago)
Author:
Steve Castellotti <sc@…>
Branches:
master, Servo
Children:
1d46203
Parents:
a314cf9
Message:
  • Fine-tuning for Controlled Descent
Location:
android/src/info/puzzlebox/orbit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • android/src/info/puzzlebox/orbit/FragmentTabAdvanced.java

    ra314cf9 r570ab65  
    10341034                private int throttleStepDefault = 1; 
    10351035                private int throttleStepSleepDefault = 100; 
    1036                 private double throttleStepAccelerateThreshold = 0.5; // 0.667 = 2/3rds between current Throttle and point where blades stop spinning 
     1036                private double throttleStepAccelerateThreshold = 0.667; // 0.667 = 2/3rds between current Throttle and point where blades stop spinning 
    10371037                private double throttleStepAccelerateMultiplyer = 2; 
    1038                 private double throttleStepAccelerateValue = 0.333; // 0.5 = divide sleep time in half 
     1038                private double throttleStepAccelerateValue = 0.2; // 0.5 = divide sleep time in half (example: from 100ms to 50ms) 
    10391039 
    10401040                public int throttlePrevious; 
  • android/src/info/puzzlebox/orbit/OrbitTabActivity.java

    ra314cf9 r570ab65  
    885885 
    886886                if ((generateAudio) && 
    887                                 ((currentCommand != "neutral") || (demoFlightMode)) && 
     887                                (currentCommand != "neutral") && 
    888888                                (fragmentAdvanced != null) && 
    889889                                (fragmentAdvanced.checkBoxControlledDescent.isChecked()) && 
     
    891891                        fragmentAdvanced.registerControlledDescent(); 
    892892                } else { 
    893                         //                      Log.v(TAG, "generateAudio: " + generateAudio); 
    894                         //                      Log.v(TAG, "currentCommand: " + currentCommand); 
    895                         //                      Log.v(TAG, "demoFlightMode: " + demoFlightMode); 
    896                         //                      Log.v(TAG, "((currentCommand != \"neutral\") || (demoFlightMode)):" + ((currentCommand != "neutral") || (demoFlightMode))); 
    897                         //                      Log.v(TAG, "fragmentAdvanced: " + (fragmentAdvanced != null)); 
    898                         //                      if (fragmentAdvanced != null) 
    899                         //                              Log.v(TAG, "checkBoxControlledDescent: " + fragmentAdvanced.checkBoxControlledDescent.isChecked()); 
    900                         //                      Log.v(TAG, "audioHandler: " + (audioHandler != null)); 
     893 
    901894                        stopAudio(); 
    902895                } 
Note: See TracChangeset for help on using the changeset viewer.