original_docstring: Writes out the constants for a angular system to a file.
  
      Args:
        params: list of AngularSystemParams or AngularSystemParams, the
          parameters defining the system.
        plant_files: list of strings, the cc and h files for the plant.
        controller_files: list of strings, the cc and h files for the integral
          controller.
        year_namespaces: list of strings, the namespace list to use.
      
docstring: Writes out the constants for a angular system to a file.
docstring_tokens: Writes out the constants for a angular system to a file .
code: def WriteAngularSystem(params, plant_files, controller_files, year_namespaces):
      """Writes out the constants for a angular system to a file.
  
      Args:
        params: list of AngularSystemParams or AngularSystemParams, the
          parameters defining the system.
        plant_files: list of strings, the cc and h files for the plant.
        controller_files: list of strings, the cc and h files for the integral
          controller.
        year_namespaces: list of strings, the namespace list to use.
      """
      # Write the generated constants out to a file.
      angular_systems = []
      integral_angular_systems = []
  
      if type(params) is list:
          name = params[0].name
          for index, param in enumerate(params):
              angular_systems.append(
                  AngularSystem(param, param.name + str(index)))
              integral_angular_systems.append(
                  IntegralAngularSystem(param,
                                        'Integral' + param.name + str(index)))
      else:
          name = params.name
          angular_systems.append(AngularSystem(params, params.name))
          integral_angular_systems.append(
              IntegralAngularSystem(params, 'Integral' + params.name))
  
      loop_writer = control_loop.ControlLoopWriter(
          name, angular_systems, namespaces=year_namespaces)
      loop_writer.AddConstant(
          control_loop.Constant('kOutputRatio', '%f', angular_systems[0].G))
      loop_writer.AddConstant(
          control_loop.Constant('kFreeSpeed', '%f',
                                angular_systems[0].motor.free_speed))
      loop_writer.Write(plant_files[0], plant_files[1])
  
      integral_loop_writer = control_loop.ControlLoopWriter(
          'Integral' + name,
          integral_angular_systems,
          namespaces=year_namespaces)
      integral_loop_writer.Write(controller_files[0], controller_files[1])
code_tokens: def WriteAngularSystem ( params , plant_files , controller_files , year_namespaces ) : angular_systems = [ ] integral_angular_systems = [ ] if type ( params ) is list : name = params [ 0 ] . name for index , param in enumerate ( params ) : angular_systems . append ( AngularSystem ( param , param . name + str ( index ) ) ) integral_angular_systems . append ( IntegralAngularSystem ( param , 'Integral' + param . name + str ( index ) ) ) else : name = params . name angular_systems . append ( AngularSystem ( params , params . name ) ) integral_angular_systems . append ( IntegralAngularSystem ( params , 'Integral' + params . name ) ) loop_writer = control_loop . ControlLoopWriter ( name , angular_systems , namespaces = year_namespaces ) loop_writer . AddConstant ( control_loop . Constant ( 'kOutputRatio' , '%f' , angular_systems [ 0 ] . G ) ) loop_writer . AddConstant ( control_loop . Constant ( 'kFreeSpeed' , '%f' , angular_systems [ 0 ] . motor . free_speed ) ) loop_writer . Write ( plant_files [ 0 ] , plant_files [ 1 ] ) integral_loop_writer = control_loop . ControlLoopWriter ( 'Integral' + name , integral_angular_systems , namespaces = year_namespaces ) integral_loop_writer . Write ( controller_files [ 0 ] , controller_files [ 1 ] )
short_docstring: Writes out the constants for a angular system to a file.
short_docstring_tokens: Writes out the constants for a angular system to a file .
comment: """Writes out the constants for a angular system to a file.
  
      Args:
        params: list of AngularSystemParams or AngularSystemParams, the
          parameters defining the system.
        plant_files: list of strings, the cc and h files for the plant.
        controller_files: list of strings, the cc and h files for the integral
          controller.
        year_namespaces: list of strings, the namespace list to use.
      """$SEP$# Write the generated constants out to a file.