Ignore:
Timestamp:
10/22/13 12:23:31 (6 years ago)
Author:
Steve Castellotti <sc@…>
Branches:
master, Servo
Children:
f1b6f6e
Parents:
86f2f30
Message:
  • tweak to Power setting to light up when either threshold is reached
File:
1 edited

Legend:

Unmodified
Added
Removed
  • iOS/Orbit/Orbit/SignalConverter.m

    r37ca4e8 re59da66  
    255255#pragma mark internal processing methods 
    256256 
    257 // calculate the total power level to output through the headphones, a value between zero and 1. 
    258 // this is the attention signal level and meditation signal level added together 
     257// Calculate power for throttle. In theory this can be tied to the amount of throttle 
     258// to set based on how far based the trigger thresholds attention and meditation are 
     259// currently measured 
    259260- (float) currentPowerLevel 
    260261{ 
     
    272273     
    273274    float powerLevel = attentionScore + meditationScore; 
    274     if (powerLevel > 1) { 
     275     
     276    // For now just set Power to 100% if helicopter should be flying 
     277//    if (powerLevel > 1) { 
     278    if (powerLevel > 0) { 
    275279        return 1.0; 
    276280    } 
Note: See TracChangeset for help on using the changeset viewer.