Changeset 33cfd5c in orbit


Ignore:
Timestamp:
12/12/12 11:01:37 (7 years ago)
Author:
dorabot <dorabot@…>
Branches:
master, RawEEG, Raw_EEG_Plot, Servo, Tab_Interface, pyramid
Children:
42379ae
Parents:
8f2c1b2
Message:

fix bug and update read.me

Location:
octave/GenerateAudioCommand
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • octave/GenerateAudioCommand/read.me

    ra0b523e r33cfd5c  
    994) type these commands: 
    1010 
    11 for laptop (not android yet) 
    12         flyOrbit('demo4',4049,'flyOrbitlaptop.wav',48000,100,'Android','flip'); 
    13 for iPad 
    14         flyOrbit('demo4',4049,'flyOrbitiPad.wav',48000,100,'iOS','notF'); 
     11for android: 
     12 flyOrbit(throttleYawPitch(85,78,31,'A'),84354,'ASUS_Ubuntu_441_Flip_auto.wav',44100,400,'Android','flip'); 
    1513 
    16  
    17 5) 
    18 note that 'demo4' can be replaced with any code arrya like [1  0        1       1       0       1       1       1       0       1       0       0       1       1       0       0       1       0       0       1       1       1       1       1       0       1       1       0       1] 
    19          
    20 5 first parameter is the code you want to produce as an audio file. 
    21   second parameter is the space between two command codes [unit:samples]. 
    22   3rd is the output file name. 
    23   4th is the sample rate (sample per second) 
    24   5th is how many times you want to repeat the code. 100 will generate a signal about 13 seconds long. 
    25   6th is option between iOS style code or Android style code. 
    26   7th when you use Android sytle code you need to flip the code that generated. This parameter will soon be obsolete in later version. 
     14Parameter explaination: 
     1585 means throttle level, with a range of [30,127] 
     1678 means yaw level, with a range of [0,127] 
     1731 means pitch level, with a range of [0,63] 
     1884354 is the space between two commands, in samples. Normally you don't need to change it. 
     19the next parameter is output file name. 
     2044100 is sampling rate 
     21400 is how long you want the wav file to be. every 50 will give a 6 second wav file. 
     22'Android' don't change this. 
     23'flip' on some android device or PC, if this wav doesn't work for you, then you need to replace 'flip' with 'notF'  
  • octave/GenerateAudioCommand/throttleYawPitch.m

    r389c84b r33cfd5c  
    88 mainCode=0; 
    99 
     10mainCode=bitset(mainCode,29,1); 
    1011  %throttle 
    1112for n=1:7 
     
    4748  codeString=dec2bin(mainCode); 
    4849code=[]; 
    49 for n=1:28 
     50for n=2:29 
    5051code=[code str2num(codeString(n))]; 
    5152endfor 
     53 
Note: See TracChangeset for help on using the changeset viewer.