Coder Social home page Coder Social logo

kotobuki / funnel Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 2.0 25.73 MB

Automatically exported from code.google.com/p/funnel

License: Other

TeX 5.46% Processing 3.45% Prolog 0.09% JavaScript 1.10% HTML 76.88% CSS 0.41% Shell 0.05% ActionScript 5.33% C++ 0.35% Java 5.07% Ruby 1.81% Batchfile 0.01%

funnel's People

Contributors

kotobuki avatar soundanalogous avatar tzikis avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

funnel's Issues

fio_simple_scope.rb won't run

What steps will reproduce the problem?
1. launch a Funnel Server
2. open fio_simple_scope.rb in TextMate
3. execute the code

What is the expected output? What do you see instead?
This example should run, but got error messages. Here is an example of
error messages:

ScriptMate r8136 running jruby 1.1.3 (ruby 1.8.6 patchlevel 114)
(2008-07-20 rev 7243) [i386-java]
(/Users/kotobuki/Documents/jruby-1.1.3/bin/jruby)
>>> fio_simple_scope.rb

INFO: Ready to use the action-coding environment
command port: localhost, 53227
Rebooted successfully
TimeoutError occurred at configuration: Got no reply for /configure
TimeoutError occurred at start polling: Got no reply for /polling


If I comment the following line, the same code runs without errors.

config.set_digital_pin_mode 12, IN


Please use labels and text to provide additional information.
r515
Mac OS X 10.5.5

Original issue reported on code.google.com by [email protected] on 15 Nov 2008 at 1:59

The way to calcurate a sine wave in Osc is a little bit wrong (Processing)

What steps will reproduce the problem?
1. 
波形にSINを選んで回数を1回にしたOscのインスタンスを生成
2. startメソッドを呼んでスタート
3. 1周期が終わった後の値が0にならない

What is the expected output? What do you see instead?
OscFunctionSINの実装が以下のようになっているが、

return 0.5f * (float)(1 + Math.sin(2*Math.PI * val-0.25f));

正しくは

return 0.5f * (float)(1 + Math.sin(2*Math.PI * (val-0.25f)));

だと思われる(位相が1/4だけずれて1周期が-0.5ではじまって
0.5で終わるsin波に
するため)。


Please use labels and text to provide additional information.
r381

Original issue reported on code.google.com by [email protected] on 17 Jul 2008 at 1:28

Arduino Processing analogIn example always reports values of 0.0

What steps will reproduce the problem?
1. Upload firmware to the Arduino board (I tried a Diecimila and an ancient 
Arduino w/ an 
ATmega8)
2. Copy the funnel processing library into PROCESSING/libraries/funnel.
3. Edit the funnel server settings.yaml file changing the type: of the io: to 
Arduino
4. Run the funnel server.
5. Run the analogIn sketch.

What is the expected output? What do you see instead?

I saw 0.0 for each analog input value.  I thought it should change when I 
connected an input to 5 
volts.

What version of the product are you using? On what operating system?
Build: e.g. 003
OS: e.g. Mac OS X 10.5
Language: Processing

Please provide any additional information below.

The digitalOut example works fine with both boards, which makes me think I've 
got the server 
configured correctly.  I love the automatic serial port detection, btw.

Original issue reported on code.google.com by [email protected] on 15 Nov 2007 at 10:55

bug in Potentiometer.as

in the Potentiometer.as class, line 43 is incorrect. 

Please change:

 _value = e.target.number; 

to:

 _value = e.target.value;


Original issue reported on code.google.com by [email protected] on 30 Jan 2011 at 8:20

The endianness issue occurs with old FlashPlayes

What steps will reproduce the problem?
1. funnel_server.jarをダブルクリックして起動する
2. GainerTest.asをコンパイルしたGainerTest.swfをFlashPlayer 
9.0.28.0で開く

What is the expected output? What do you see instead?
正常に動作するはずのサンプルが動作せず、かわりにサー��
�側のstderrに例外がプ
リントされる。

Please use labels and text to provide additional information.
r377
Mac OS X 10.4.11
iMac 2.16GHz Intel Core 2 Duo

FlashPlayer 9.0.115.0および9.0.124.0では問題なく動作する。

Original issue reported on code.google.com by [email protected] on 15 Jul 2008 at 5:23

Processing Llibrary broken with funnel release 801

What steps will reproduce the problem?
1. Update funnel to rev 801 or greater.
2. Copy the processing library to Documents/Processing/libraries
3. Upload StandardFirmata (Firmata 2.3) from Arduino 1.0.
3. Run a few funnel processing examples

What is the expected output? What do you see instead?
Analog input is not working.
i2c is not working.
Digital input and output work.

Funnel revision 787 (with Arduino 2.2 / StandardFirmata) does not have these 
issues. I'm assuming the problem was introduced when Funnel server was upgraded 
to be Firmata 2.3 compatible. The processing library may also need updates to 
be compatible.




Original issue reported on code.google.com by [email protected] on 14 Jan 2012 at 7:14

A service interval for an Osc is doubled?

以下のコードを実行すると、Oscのサービス間隔がプリント��
�れるが、その数字を見
ている限りではOsc.serviceIntervalで指定した間隔の倍(例:30��
�指定すると60)
になっているように思われる。

import processing.funnel.*;

Gainer gainer;
Osc osc;

float last;

void setup()
{
  size(200, 200);
  frameRate(30);

  gainer= new Gainer(this, Gainer.MODE1);
  gainer.autoUpdate = true;

  osc = new Osc(this, Osc.SIN, 1.0, 0);
  osc.serviceInterval = 30;
  osc.addEventListener(Osc.UPDATE, "oscUpdated");
  osc.reset();
  osc.start();

  last = millis();
}

void draw()
{
  background(100);
}

void oscUpdated(Osc osc)
{
  float now = millis();
  gainer.analogOutput(0).value = osc.value;
  println("interval: " + (now - last));
  last = now;
}

Original issue reported on code.google.com by [email protected] on 8 Jul 2008 at 7:40

Some I2C devices have register addresses > 0xFF

Some I2C devices (e.g. QT4160) have register addresses > 0xFF. Current
protocol can't handle register addresses > 0xFF.

What version of the product are you using? On what operating system?
Build: Funnel 009 beta/4

Original issue reported on code.google.com by [email protected] on 31 Mar 2009 at 9:24

The order of arguments does not match the specifications

According to the specifications, the order of arguments for the constructor
of Funnel class is:
Funnel(hostname:String, portNumber:int, config:Array, samplingInterval:int)

But actual implementation in build 000 is as follows:
public Funnel(PApplet parent, String hostName, int commandPortNumber, int
notifyPortNumber, int samplingInterval, Configuration config)

public Funnel(PApplet parent, int samplingInterval, Configuration config)

public Funnel(PApplet parent, int commandPortNumber, int
notifyPortNumber,int samplingInterval, Configuration config)

Original issue reported on code.google.com by [email protected] on 29 Sep 2007 at 11:58

HI ! I have a big problem with my photoresistor ... Help me please !

Hello, I am a young French student, my English crowns. It has been two days 
that I spend my time trying to retrieve the value of a photoresistor with my 
Arduino Uno and perfect your workflow (x Funnel AS3).

We started, me and my team on the development of a coffee machine (web article) 
led by the Internet. The photoresistor we should be able to indicate the 
presence of a cup in the machine.

I'm lost at this event.

I have to present this project in 7 hours and is the final step ...

Can you sent me an example of the use of a photoresistor with Funnel and AS3 so 
I can understand how it works and adapt this methodology to our algorithm.

Please, save us ...

__ Forestier Nicolas _______________________________
  - @ :    [email protected]
  - tel :    06.83.13 .92.08
  - site :  http://www.nicolasforestier.net/

Original issue reported on code.google.com by [email protected] on 3 Jun 2011 at 5:08

trying to connect a picaxe08m2 controller ....

What steps will reproduce the problem?
opening any of the examples, trying to use them with a picaxe 08M2 
microcontroler

What is the expected output? What do you see instead?
- using any of the funnel modules with a picaxe 08M2 microcontroler 
- funnel recognises the usb port but the (.fla etc) modules won't 
work with the picaxe chip ... (probably it's baude rate of 4800 ? )

What version of the product are you using? On what operating system?
Build: funnel-1.0-r801
OS: MacOsX 10.5.8
Language: ActionScript 3, java

Please provide any additional information below.
... in case it matters -
ai guess picaxe is using the ftdi software & i do have it installed
... i assume even it's hardware is provided by ftdichip - 


Original issue reported on code.google.com by [email protected] on 29 Sep 2011 at 9:41

Want to know the RSSI for an end device

Regarding XBee and FIO, want to know the RSSI for an end device. How about
adding "rssi()" method to IOModule?

{{{
var fio:Fio = new Fio([1, 2], Fio.FIRMATA);

var rssi:int = fio.ioModule(1).rssi();
}}}

Original issue reported on code.google.com by [email protected] on 7 Dec 2009 at 12:42

Osc.SQUARE stops at 1.0 instead of 0.0

What steps will reproduce the problem?
r373
以下のコードをProcessingのスケッチとして実行し、ウィンド�
��上でマウスをク
リックする。

import processing.funnel.*;

Gainer gainer;
Osc osc;

void setup()
{
  size(200, 200);
  frameRate(30);

  gainer= new Gainer(this, Gainer.MODE1);
  gainer.autoUpdate = true;

  osc = new Osc(this, Osc.SQUARE, 1.0, 1);
  osc.serviceInterval = 50;
  osc.addEventListener(Osc.UPDATE, "oscUpdated");
}

void draw()
{
  background(100);
}

void oscUpdated(Osc osc)
{
  gainer.led().value = osc.value;
  println("osc: " + osc.value);
}

void mousePressed()
{
  gainer.led().value = 0;
  osc.reset();
  osc.start();
}


What is the expected output? What do you see instead?
期待する動作はLEDが1回点灯して終了だが、実際には最後にL
EDが点灯したままに
なって終了する。printlnの値を確認しても1.0→0.0に変化した�
��最後が1.0になって
終了している。サービス間隔を変更しても結果は同じ。

Original issue reported on code.google.com by [email protected] on 9 Jul 2008 at 1:19

長さが256以上のパケットを受け取れない

CommandPortClient.javaの156行目以降(下に転記)が間違ってるので��
�256以上のサ
イズのパケットを取れません。
<<で左に24ビットずらしてるのに、&0xFFで下1バイト(8ビット)�
��外を0にしたら、
結果は絶対0です。
16ビット、8ビットでも同じです。
int packetSizeは、最終的には「buffer[processedSize + 3] & 
0xFF」になります。
                    int packetSize = ((buffer[processedSize + 0] << 24) & 0xFF)
                            + ((buffer[processedSize + 1] << 16) & 0xFF)
                            + ((buffer[processedSize + 2] << 8) & 0xFF)
                            + (buffer[processedSize + 3] & 0xFF);



Original issue reported on code.google.com by [email protected] on 2 Dec 2008 at 4:23

action-coding stops responding a typo

What steps will reproduce the problem?
1. run the following code (including a typo: aio)
2. a NoMethodError occurs (this is correct)
3. fix the typo (aio -> ain)
4. press command + 4 to reload

require "funnel"
include Funnel

def setup
  size 400, 400
  @gio = Gainer.new
end

def draw
  background @gio.aio(0).value * 255  # should be 'ain'
end


INFO: Ready to use the action-coding environment
command port: localhost, 54289
Rebooted successfully
Configured successfully
...
Error while running applet.
(eval):10:in `draw': #<NameError::Message:0xae8bac> (NoMethodError)
    from :1
    ...internal jruby stack elided...
(eval):10:in `draw': #<NameError::Message:0xae8bac> (NoMethodError)
    from :1
    ...internal jruby stack elided...
command port: localhost, 54293


What is the expected output? What do you see instead?
The error should be fixed at step 4, but the applet stops responding.
ステップ4でエラーは修正されるはずだが、アプレットの反�
��が停止してしまう。場
合によってはメニューやcommand + 
qでの終了ができず、強制終了が必要になる。


Please use labels and text to provide additional information.
r419
action-coding: r91
Mac OS X 10.5.4
JRuby 1.1.3
Processing 0135

Original issue reported on code.google.com by [email protected] on 9 Aug 2008 at 1:51

Processing library won't work with XBee modems

What steps will reproduce the problem?
1. 
hardware/xbee/multipointにあるcoordinator.proとenddevice.proをそれぞれ1
台のXBee 802.15.4に書き込む
2. Funnel Serverの設定をXBee用に変更してから起動する
3. Processingで添付のスケッチを開いて実行する

What is the expected output? What do you see instead?
エンドデバイス側のXBeeのDIO0の値が表示されるはずが、ずっ
と0のまま変化しない。

Please use labels and text to provide additional information.
r456
Windows XP SP3
Processing 0148

Original issue reported on code.google.com by [email protected] on 12 Sep 2008 at 1:29

Attachments:

Don't try to open a Bluetooth port when the last serial port was not found

What steps will reproduce the problem?
1. Connect an Arduino board
2. Launch a Funnel Server and configure
3. Quit the Funnel Server
4. Disconnect the Arduino board
5. Launch a Funnel Server again
6. The Funnel Server tries to connect the first one of available serial ports 
(e.g. a Bluetooth port on Mac OS X)

What is the expected output? What do you see instead?
Don't try to open if the last serial port is not found

Original issue reported on code.google.com by [email protected] on 9 Sep 2011 at 1:08

Osc doesn't work if specify times other than 0

What steps will reproduce the problem?
以下のスケッチを実行する。

require 'funnel'
include Funnel

def setup
  size 200, 200

  @gio = Gainer.new :applet => self

  Osc.service_interval = 33
  @blinker = Osc.new(Osc::SIN, 1.0, 1)
  @gio.aout(0).filters = [@blinker]
end

def draw
  background 100
end

def mousePressed
  @blinker.reset
  @blinker.start
end

What is the expected output? What do you see instead?
1回目のマウスクリックでは想定通り1回分だけOscが動作する
。しかし、2回目以降
はマウスクリックしても変化がない(初期値を指定するデ��
�タが1回だけ送信されて
いるように見える)。

Please use labels and text to provide additional information.
r374
action-coding
JRuby 1.1.2
Mac OS X 10.5.4

Original issue reported on code.google.com by [email protected] on 12 Jul 2008 at 7:06

digital pin reporting in Firmata v2 won't work as expected

What steps will reproduce the problem?
1. upload Standard_Firmata sketch to an Arduino Nano
2. run Funnel Server
3. run a sketch in Ruby


What is the expected output? What do you see instead?
If digital pins are enabled (default), the responce on the input side goes
very slow. The output side looks fine. As a workaround, modifiy as follows
to surpress digital input reports:

void loop() 
{
//    checkDigitalInputs();  


Please use labels and text to provide additional information.
r399
Arduino 0011
Firmata-2.0beta1

Original issue reported on code.google.com by [email protected] on 1 Aug 2008 at 1:39

Won't update outputs from the second run

What steps will reproduce the problem?
1. run the following code under an action-coding environment
require 'funnel'
include Funnel

R = 11
G = 18
B = 19

def setup
  size 360, 480

  config = Fio.FIRMATA
  config.set_digital_pin_mode(3, PWM)
  config.set_digital_pin_mode(10, PWM)
  config.set_digital_pin_mode(11, PWM)
  @nodes = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
  @fio = Fio.new :applet => self, :config => config, :nodes => @nodes
  @osc = Osc.new Osc::SIN, 0.5, 0

  @fio.io_module(ALL).port(G).filters = [@osc]
  @osc.start
end

What is the expected output? What do you see instead?
Works fine at first run, but won't update outputs from the 2nd run

Please use labels and text to provide additional information.
r390
action-coding: r91
JRuby 1.1.2
Mac OS X 10.5.4

Original issue reported on code.google.com by [email protected] on 20 Jul 2008 at 1:06

Ruby library crushes on JRuby!?

Funnel: r293
action-coding: r87
Java: 1.5.0_13
JRuby: 1.1.1
Mac OS X 10.5.2


require "funnel"
include Funnel

def setup
  size 320, 240
  @fc = 0
  @gio = Gainer.new
  @gio.button.on RISING_EDGE do
    @fc = 255
  end

  @gio.button.on FALLING_EDGE do
    @fc = 0
  end
end

def draw
  fill @fc
  rect 25, 25, 50, 50
end

def mousePressed
  @fc = 255
end

def mouseReleased
  @fc = 0
end


Exception in thread "Ruby Thread2381144" java.lang.ClassCastException:
org.jruby.RubyFloat
    at org.jruby.RubyFixnumInvoker$op_equal_method_1_0.call(Unknown Source)
    at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:299)
    at
ruby.jit.ruby.Users.kotobuki.Documents.development.funnel.libraries.ruby.funnel.
port.detect_edge3882028_11444861.__file__(/Users/kotobuki/Documents/development/
funnel/libraries/ruby/./funnel/port.rb:86)
    at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:298)
    at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:331)
    at
ruby.jit.ruby.Users.kotobuki.Documents.development.funnel.libraries.ruby.funnel.
port.update16609162_11444861.__file__(/Users/kotobuki/Documents/development/funn
el/libraries/ruby/./funnel/port.rb:55)
    at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:256)
    at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:299)
    at
ruby.jit.ruby.Users.kotobuki.Documents.development.funnel.libraries.ruby.funnel.
port.value_equal_15396425_11444861.__file__(/Users/kotobuki/Documents/developmen
t/funnel/libraries/ruby/./funnel/port.rb:44)
    at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:193)
    at org.jruby.evaluator.ASTInterpreter.attrAssignNode(ASTInterpreter.java:599)
    at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:294)
    at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:150)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:115)
    at org.jruby.runtime.Block.yield(Block.java:109)
    at org.jruby.RubyInteger.times(RubyInteger.java:162)
    at org.jruby.RubyIntegerInvoker$times_method_0_0.call(Unknown Source)
    at
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroBlock.call(JavaMetho
d.java:161)
    at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:248)
    at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:687)
    at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:309)
    at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:632)
    at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:303)
    at org.jruby.evaluator.ASTInterpreter.caseNode(ASTInterpreter.java:754)
    at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:311)
    at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:150)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:115)
    at org.jruby.runtime.Block.yield(Block.java:109)
    at org.jruby.RubyArray.each(RubyArray.java:1230)
    at org.jruby.RubyArrayInvoker$each_method_0_0.call(Unknown Source)
    at
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroBlock.call(JavaMetho
d.java:161)
    at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:248)
    at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:687)
    at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:309)
    at org.jruby.evaluator.ASTInterpreter.rescueNode(ASTInterpreter.java:1567)
    at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:453)
    at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:632)
    at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:303)
    at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:150)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:115)
    at org.jruby.runtime.Block.yield(Block.java:109)
    at org.jruby.RubyKernel.loop(RubyKernel.java:1051)
    at org.jruby.RubyKernelInvoker$loop_s_method_0_0.call(Unknown Source)
    at
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroBlock.call(JavaMetho
d.java:161)
    at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:248)
    at org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1155)
    at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:355)
    at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:150)
    at org.jruby.runtime.InterpretedBlock.call(InterpretedBlock.java:103)
    at org.jruby.runtime.Block.call(Block.java:105)
    at org.jruby.RubyProc.call(RubyProc.java:205)
    at org.jruby.RubyProc.call(RubyProc.java:184)
    at org.jruby.internal.runtime.RubyNativeThread.run(RubyNativeThread.java:73)

Original issue reported on code.google.com by [email protected] on 10 May 2008 at 12:28

Osc.IMPULSE seems to be broken

What steps will reproduce the problem?
r373
Processing 
0135に以下のコードを入力し、スケッチを起動したらウィン�
��ウ上でマ
ウスをクリックする。

import processing.funnel.*;

Gainer gainer;
Osc osc;

void setup()
{
  size(200, 200);
  frameRate(30);

  gainer= new Gainer(this, Gainer.MODE1);
  gainer.autoUpdate = true;

  osc = new Osc(this, Osc.IMPULSE, 1.0, 1);
  osc.serviceInterval = 50;
  osc.addEventListener(Osc.UPDATE, "oscUpdated");
}

void draw()
{
  background(100);
}

void oscUpdated(Osc osc)
{
  gainer.led().value = osc.value;
  println("osc: " + osc.value);
}

void mousePressed()
{
  gainer.led().value = 0;
  osc.reset();
  osc.start();
}

What is the expected output? What do you see instead?
期待した動作としてはLEDが1回点灯→消灯だが、実際には点�
��したままになる。
printlnされる値をみても1.0のままになっている。

Original issue reported on code.google.com by [email protected] on 9 Jul 2008 at 1:14

Gainer.MODE7 on processing

What steps will reproduce the problem?
1. Gainer.Mode7で
2. gainer.analogOutput().valueを何回か更新すると(2回以上)
3. FunnelServerが終了しなくなる
4. withoutServer = trueでサーバーを別に起動していても同様

CLOSEボタンで終了すれば元に戻るので緊急性は低い?
Flashでは問題が起きなかった

Original issue reported on code.google.com by [email protected] on 8 Apr 2011 at 1:22

From a 2nd run, a first pair of button press/release is ignored

What steps will reproduce the problem?
1. run a Funnel Server
2. publish GainerTest.fla
3. press and release the button connected to D12
4. the circle on the screen works as expected
5. close the player window
6. publish GainerTest.fla again
7. press and release the button connected to D12
8. first press/release was ignored

What is the expected output? What do you see instead?
All press/release should produce port events.

Please use labels and text to provide additional information.
r495
Mac OS X 10.5.5
Flash CS3

Original issue reported on code.google.com by [email protected] on 18 Oct 2008 at 1:41

add analogNumber getter to Pin object

This is a feature request:

It would be helpful to add an analogNumber getter to the Pin object. This 
returns the analog number (from the IOModule) rather than the digital number 
(that Pin.number returns). So for pin A0 on an Arduino Uno, 
pinInstance.analogNumber is 0 and pinInstance.number is 14.

Run an Analog Mapping Query after the Capability Query has been processed in 
order to get the correct analog pin associations (this is important for boards 
like Teensy 2.0). The analogNumber value can be obtained from the Analog 
Mapping results.

Original issue reported on code.google.com by [email protected] on 14 Jan 2012 at 7:31

add maxPWMValue to Pin object

The is a feature request:

With the addition of ExtendedAnalogData in Firmata 2.2, it is possible to send 
PWM values greater than 8 bits (assuming that in the future Arduino, Wiring, 
etc may support PWM values > 255). In funnel, values between 0.0 and 1.0 are 
passed to analogWrite and they are then scaled up to the range of 0 - 255. It 
is not possible to send values greater than 255. My thought it to add a 
'maxPWMValue' property to the Pin class that is default to 255, then in 
analogWrite, use the value of maxPWMValue rather than the literal "255" to 
scale the value. In the future, perhaps the firmata configuration query could 
report the maxPWMValue of a pin.

Original issue reported on code.google.com by [email protected] on 14 Jan 2012 at 7:26

日本語入力のテスト

日本語でも大丈夫かな?

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


Please use labels and text to provide additional information.

これが最後の行

Original issue reported on code.google.com by [email protected] on 14 Sep 2007 at 12:20

"Stream Error" occurs when try to run XBeeTest with Flash CS4

What steps will reproduce the problem?
1. launch Flash CS4
2. open XBeeTest
3. publish

What is the expected output? What do you see instead?
Error #2044: ハンドルされていない IOErrorEvent : text=Error #2032: 
ストリー
ムエラー。
       at XBeeTest()
Error #2044: ハンドルされていない IOErrorEvent : text=Error #2032: 
ストリー
ムエラー。
       at XBeeTest()
interval: 161
[Event type="ready" bubbles=false cancelable=false eventPhase=2]


Please use labels and text to provide additional information.
r550
* Windows Vista
* Flash CS4

Original issue reported on code.google.com by [email protected] on 18 Dec 2008 at 4:20

Gainer.MODE6 won't work as expected

What steps will reproduce the problem?
1. connect LEDs to a Gainer I/O's ports
2. run a Funnel Server
3. run the following sketch in Processing
4. press a mouse button on the applet window
5. release a mouse button on the applet window

import processing.funnel.*;

Gainer gainer;

void setup()
{
  size(200, 200);
  frameRate(30);

  gainer= new Gainer(this, Gainer.MODE6);
  gainer.autoUpdate = true;
}

void draw()
{
  background(100);
}

void mousePressed()
{
  gainer.digitalOutput(8).value = 1;
  gainer.digitalOutput(9).value = 1;
  gainer.digitalOutput(10).value = 1;
  gainer.digitalOutput(11).value = 1;
  gainer.digitalOutput(12).value = 1;
  gainer.digitalOutput(13).value = 1;
  gainer.digitalOutput(14).value = 1;
  gainer.digitalOutput(15).value = 1;
  println("pressed");
}

void mouseReleased()
{
  gainer.digitalOutput(8).value = 0;
  gainer.digitalOutput(9).value = 0;
  gainer.digitalOutput(10).value = 0;
  gainer.digitalOutput(11).value = 0;
  gainer.digitalOutput(12).value = 0;
  gainer.digitalOutput(13).value = 0;
  gainer.digitalOutput(14).value = 0;
  gainer.digitalOutput(15).value = 0;
//  gainer.update();
  println("released");
}


What is the expected output? What do you see instead?
mousePressed()では問題なく指定したポートがhighになり、LEDが��
�灯する。しか
し、mousePressed()では更新されない(funnel_serverにもメッセー��
�がこない)。
update()を呼び出して明示的に更新するとサーバにメッセージ
は来るが、その後ク
ライアント側が無限ループに入ってしまう。


Please use labels and text to provide additional information.
r399

Original issue reported on code.google.com by [email protected] on 31 Jul 2008 at 2:39

Sketches won't exit by hitting a Esc key

What steps will reproduce the problem?
1. Funnelライブラリを使用する適当なスケッチを実行する
2. アプレットウィンドウ上でEscキーを押す

What is the expected output? What do you see instead?
期待するのはEscキーで終了することだが、実際には終了せ��
�、クローズボックスの
クリックやメニュー操作で終了する必要がある。Processingの�
��ィンドウ上に表示
されるログをみると次のようになっている。

(スケッチの起動)
2008-08-26 15:12:31.614 java[921] CFLog (0): CFMessagePort:
bootstrap_register(): failed 1103 (0x44f), port = 0x12c03, name =
'java.ServiceProvider'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2008-08-26 15:12:31.614 java[921] CFLog (99): CFMessagePortCreateLocal():
failed to name Mach port (java.ServiceProvider)

opened host address 127.0.0.1
reboot OK 
configureation OK 
addmodule() Gainer
funnelServiceThread start
notify thread start
(クローズボックスなどでの終了)
reboot OK

本来であれば、この「reboot OK」は「notify thread 
start」のすぐ後に表示され
るべきメッセージではないかと思われる。


Please use labels and text to provide additional information.
Mac OS X 10.5.4
Processing 0148
r434

Original issue reported on code.google.com by [email protected] on 26 Aug 2008 at 7:37

Processing lib crushes

What steps will reproduce the problem?
1. Gainer I/Oを接続する
2. Funnel 008 beta/5(r468)をセットアップする
3. 以下のスケッチを実行する


What is the expected output? What do you see instead?
ただスケッチを走らせているだけなのに、早ければ数秒、��
�くても1時間以内に以下
の例外が発生して停止してしまう。

Exception in thread "NotifyThread"
java.lang.StringIndexOutOfBoundsException: String index out of range: 7
       at java.lang.String.checkBounds(String.java:372)
       at java.lang.String<init>(String.java:457)
       at
com.illposed.osc.utility.OSCByteArrayToJavaConverter.isBundle(Unknown Source)


Please use labels and text to provide additional information.
r468
Mac OS X 10.5.4
Windows XP SP2
Processing 0135/0148

Original issue reported on code.google.com by [email protected] on 19 Sep 2008 at 9:54

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.