Thursday, November 19, 2009

Re: Error in EventGhost plugin (Line 400)

0 comments
In my CF plugin I added line 171 (serial return values were not being
parsed)

170 def __call__(self, joinNum, Value):
171 Value = eg.ParseString(Value)
172 self.plugin.Push("s%s=%s\x03" % (joinNum, Value))


On Nov 17, 10:36 pm, Fiasco <dgvoll...@gmail.com> wrote:
> Error @ line 129
>
> current line        val = str(round(float(65535 / float(maxVal) - float
> (minVal)) * float(val)))
> correct line        val = int(float(65535) / (float(maxVal) - float
> (minVal)) * float(val))
>
> maxVal-minVal isn't in paranthesis which causes 65535 to be divided by
> maxVal before subtracting MinVal.   Also, the final value being passed
> on to the command fusion remote contained a decimal.
>
> On Nov 17, 10:05 pm, Jarrod Bell <jar...@guilink.com> wrote:
>
>
>
> > Updated the code to fix that above bug
>
> > Jarrod
>
> > On Nov 18, 2:00 pm, Fiasco <dgvoll...@gmail.com> wrote:
>
> > > Also,
>
> > > On the event ghost plugin.  When you setup a command fusion macro for
> > > Analog, you now have the Min/Max (as requested) and the conversion to
> > > the values necessary to send to a guage/slider .   However, when you
> > > use the slider to send a value to eventghost the min/max values are
> > > not used to convert the number.- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

--

You received this message because you are subscribed to the Google Groups "CommandFusion" group.
To post to this group, send email to commandfusion@googlegroups.com.
To unsubscribe from this group, send email to commandfusion+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/commandfusion?hl=.

Comments

0 comments to "Re: Error in EventGhost plugin (Line 400)"

Post a Comment

 

Copyright 2008 All Rights Reserved Revolution Two Church theme by Brian Gardner Converted into Blogger Template by Bloganol dot com