Ignore:
Timestamp:
11/29/12 15:14:27 (8 years ago)
Author:
AzureViolin <zhanghaotz@…>
Branches:
master, RawEEG, Raw_EEG_Plot, Servo, Tab_Interface, pyramid
Children:
a2d894c
Parents:
2cd475f
Message:

flyOrbit Works should for EVERY Android (not tested)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • octave/GenerateAudioCommand/flyOrbit.m

    r2cd475f rf22b7ab  
    33% code: array of 1s and 0s. 1 means bit "1", 0 means bit "0". 
    44% audioFileName: like 'audio.wav'. 
    5 % space: space between codes [samples] 
     5% space: space between codes [us] 
    66bps = 16;       % bits per sample 
    77%sps = 96000;     % sample rate [samples/s] 
     8 
     9space=floor(space*48000/1e6); 
     10 
    811if length(AndroidOriOS)==3 %iOS 
    912fullCodeWave=[flyCommand(code,space,'temp1.wav',sps,2,AndroidOriOS,flipOrNot);initCodeGen('temp2.wav');flyCommand(code,space,'temp3.wav',sps,repeatTime,AndroidOriOS,flipOrNot)]; 
     
    1215 
    1316        if AndroidOriOS=='Android' 
    14         fullCodeWave=[flyCommand(code,space,'temp1,wav',sps,20,AndroidOriOS,flipOrNot);initCodeGenAndroid('temp2.wav');zeros(1,1);flyCommand(code,space,'temp3.wav',sps,repeatTime,AndroidOriOS,flipOrNot)]; 
     17        fullCodeWave=[flyCommand(code,space,'temp1,wav',sps,4,AndroidOriOS,flipOrNot);initCodeGenAndroid('temp2.wav',sps);zeros(1,1);flyCommand(code,space,'temp3.wav',sps,repeatTime,AndroidOriOS,flipOrNot)]; 
    1518        elseif AndroidOriOS=='Command' 
    1619        fullCodeWave=[flyCommand(code,space,'temp3.wav',sps,repeatTime,AndroidOriOS,flipOrNot)]; 
Note: See TracChangeset for help on using the changeset viewer.