Ignore:
Timestamp:
11/29/12 08:17:10 (7 years ago)
Author:
AzureViolin <zhanghaotz@…>
Branches:
master, RawEEG, Raw_EEG_Plot, Servo, Tab_Interface, pyramid
Children:
0401409, 655a816
Parents:
3322dad
Message:

flyOrbit.m can now generate arbitry control code for play from laptop. update read.me

File:
1 edited

Legend:

Unmodified
Added
Removed
  • octave/GenerateAudioCommand/read.me

    r0edc9d8 ra0b523e  
    11This script suppose to generate Audio wave to talk to UPRtek's IR dongle and produce IR signal to control helicopter. 
    22this is an unfinished script, without complete documentation. 
     3Author:hz@puzzlbox.info, Puzzlebox LLC 
    34Released under GPLv2. 
    45================= 
    5 1 open terminal; 
    6 2 switch to this path; 
    7 3 run octave; 
    8 4 type these commands: 
    9         code=[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]; 
    10         finalCodeAudioGen(code,'audioCommand.wav',44100,10); 
     61) open terminal; 
     72) switch to this path; 
     83) run octave; 
     94) type these commands: 
     10 
     11for laptop (not android yet) 
     12        flyOrbit('demo4',4049,'flyOrbitlaptop.wav',48000,100,'Android','flip'); 
     13for iPad 
     14        flyOrbit('demo4',4049,'flyOrbitiPad.wav',48000,100,'iOS','notF'); 
     15 
     16 
     175) 
     18note 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         
    11205 first parameter is the code you want to produce as an audio file. 
    12   second parameter is the output file name. 
    13   3rd parameter is the sample rate (sample per second) 
    14   4th parameter is how many times you want to repeat the code. Since this script is not optimised at all, set this parameter higher than 20 is not recomanded, unless you have a lot time to wait or your computer is super super fast. Otherwise you need to copy and paste the sound wave in Audacity several times to get a long enough 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. 
Note: See TracChangeset for help on using the changeset viewer.