lib/sgs/mission_status.rb in sgslib-1.5.0 vs lib/sgs/mission_status.rb in sgslib-1.5.1

- old
+ new

@@ -71,11 +71,10 @@ # the boat is on. def initialize @state = STATE_AWAITING @current_waypoint = 0 @start_time = @end_time = nil - @logger = Logger.new(STDOUT) end # # Print a user-friendly label for the state def state_name @@ -89,11 +88,11 @@ end # # Commence a mission... def start_test!(time = nil) - @logger.warn "***** Starting test phase *****" + puts "***** Starting test phase *****" @start_time = time || Time.now @state = STATE_START_TEST @current_waypoint = 0 save_and_publish end @@ -102,27 +101,27 @@ # Terminate a mission. def completed!(time = nil) @end_time = time || Time.now @state = STATE_COMPLETE save_and_publish - @logger.warn "***** Mission completed! *****" + puts "***** Mission completed! *****" end # # Terminate a mission. def terminate!(time = nil) @end_time = time || Time.now @state = STATE_TERMINATED save_and_publish - @logger.warn "***** Mission terminated! *****" + puts "***** Mission terminated! *****" end # # Terminate a mission. def failure!(time = nil) @end_time = time || Time.now @state = STATE_FAILURE save_and_publish - @logger.warn "***** Mission failure! *****" + puts "***** Mission failure! *****" end end end