Browse files

Deleted warns

  • Loading branch information...
1 parent 065631b commit 4d93ef6f3d84ddb614be9b9d69cdebc911232f78 @flipback committed Mar 8, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −1 examples/simple_example.rb
  2. +0 −2 spec/ranger_spec.rb
View
2 examples/simple_example.rb
@@ -5,7 +5,7 @@
#main loop
robot.loop(0.05) do
puts "Position: x=%{px}, y=%{py}, a=%{pa}" % pos2d.state
- r = ranger.rangers
+ r = ranger.collect { |r| r.range }
puts "Rangers: #{r}"
if r[0] < 2.5
View
2 spec/ranger_spec.rb
@@ -13,8 +13,6 @@
end
it 'should have default values' do
- @ranger.rangers.should eql([])
- @ranger.intensities.should eql([])
@ranger.geom.should eql(px:0.0, py:0.0, pz:0.0, proll:0.0, ppitch:0.0, pyaw:0.0, sw:0.0, sl:0.0, sh:0.0)
@ranger.config.should eql(min_angle: 0.0, max_angle: 0.0, angular_res: 0.0, min_range: 0.0, max_range: 0.0, range_res: 0.0, frequecy: 0.0)
end

0 comments on commit 4d93ef6

Please sign in to comment.