Changeset 3322dad in orbit


Ignore:
Timestamp:
11/28/12 09:39:43 (7 years ago)
Author:
AzureViolin <zhanghaotz@…>
Branches:
master, RawEEG, Raw_EEG_Plot, Servo, Tab_Interface, pyramid
Children:
a0b523e
Parents:
0edc9d8
Message:

iOS working code. Run flyOrbit.m

Location:
octave/GenerateAudioCommand
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • octave/GenerateAudioCommand/bitGenHDMI.m

    r0edc9d8 r3322dad  
    1 function wave = bitGenHDMI(bit,num,sps)  
     1function wave = bitGenHDMI(bit,num,sps,longHIGH_s,longLOW_s,shortHIGH_s,shortLOW_s)  
    22 
    33% bit: 1 means bit "1", 0 means bit "0". 
     
    1515wave = []; 
    1616if bit==1 
    17         wave = [halfSineGen('u',longHIGH,0,1,sps);zeros(floor(longLOW*sps/1e6),1)]; 
     17        wave = [halfSineGenDirect('u',longHIGH_s,0,1,sps);zeros(longLOW_s,1)]; 
    1818elseif bit==0 
    19         wave = [halfSineGen('u',shortHIGH,0,1,sps);zeros(floor(shortLOW*sps/1e6),1)]; 
     19        wave = [halfSineGenDirect('u',shortHIGH_s,0,1,sps);zeros(shortLOW_s,1)]; 
    2020endif 
    2121 
  • octave/GenerateAudioCommand/initCodeGen.m

    r0edc9d8 r3322dad  
    1212_4to9HIGH=12; 
    1313_4to9LOW=3; 
    14 space=4104-55; 
     14space=4049; 
    1515 
    1616initWave=[halfSineGenDirect('u',_1stHIGH,0,1,sps);zeros(_1stLOW,1);halfSineGenDirect('u',_1stHIGH,0,1,sps);zeros(_1stLOW,1);halfSineGenDirect('u',_1stHIGH,0,1,sps);zeros(_3rdLOW,1)]; 
Note: See TracChangeset for help on using the changeset viewer.