control.py
Go to the documentation of this file.
00001 import numpy as np
00002 from generic import get_header_time
00003 
00004 def process_controller_status(bag, topic, output_var):
00005     output_var.t = get_header_time(bag, topic)
00006     output_var.active_mode = bag._data[topic+'/active_mode']
00007     output_var.autoseq_idxs = np.where(np.array([{'autosequence':True}.get(x,False) for x in output_var.active_mode]))[0]
00008     
00009 def process_control_mode_output(bag, topic, output_var):
00010     output_var.t = get_header_time(bag, topic)
00011     output_var.control_mode = bag._data[topic+'/control_mode']
00012     (output_var.alt_cmd, 
00013      output_var.pitch_cmd, 
00014      output_var.roll_cmd, 
00015      output_var.yaw_cmd, 
00016      output_var.yaw_rate_cmd) = \
00017         (bag._data[topic+'/%s_cmd' % ax] for ax in ('alt', 'pitch', 'roll', 'yaw', 'yaw_rate'))
00018         


starmac_tools
Author(s): bouffard
autogenerated on Sun Jan 5 2014 11:38:35