Skip to content

Commit

Permalink
introspect with paramter & regulation in pwm (works)
Browse files Browse the repository at this point in the history
  • Loading branch information
miaoufkirsh committed Apr 18, 2012
1 parent 9442249 commit a705728
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion config/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ component:

- name: regulation
exec: regulation.rb
method: thread
method: thread
config:
type: pwm

mapping:
- /lm335/raw: /virtualplacos/Analog1
Expand Down
3 changes: 2 additions & 1 deletion server/Component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def initialize(component_) # Constructor
@timeout = component_["timeout"] || 5

get_exec_path
generate_command_string

end

def get_exec_path
Expand Down Expand Up @@ -81,7 +83,6 @@ def analyse

@pins = @inputs + @outputs

generate_command_string
end

def expose()
Expand Down
2 changes: 1 addition & 1 deletion server/Launcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
module Launcher

def launch_introspect()
return `#{@exec} --introspect`
return `#{@command_string} --introspect `
end

def launch_component() # TODO TODO TODO launch_component in a thread/fork module TODO TODO TODO
Expand Down

0 comments on commit a705728

Please sign in to comment.