original_docstring: 
      This is the takeoff sequence. It commands takeoff.
      
docstring: This is the takeoff sequence. It commands takeoff.
docstring_tokens: This is the takeoff sequence . It commands takeoff .
code: def takeoff_sequence(scf: SyncCrazyflie):
      """
      This is the takeoff sequence. It commands takeoff.
      """
      try:
          cf = scf.cf  # type: Crazyflie
          commander = cf.high_level_commander  # type: cflib.HighLevelCOmmander
          cf.param.set_value('commander.enHighLevel', '1')
          cf.param.set_value('ring.effect', '7')
          cf.param.set_value('ring.solidRed', str(0))
          cf.param.set_value('ring.solidGreen', str(255))
          cf.param.set_value('ring.solidBlue', str(0))
          commander.takeoff(1.5, 3.0)
          sleep_while_checking_stable(scf, tf_sec=15)
  
      except UnstableException as e:
          print(e)
          kill_motor_sequence(scf)
          # raising here since we want to kill entire show if one fails early
          raise(e)
      
      except LowBatteryException as e:
          print(e)
          land_sequence(scf)
  
      except Exception as e:
          print(e)
          land_sequence(scf)
          raise(e)
code_tokens: def takeoff_sequence ( scf : SyncCrazyflie ) : try : cf = scf . cf commander = cf . high_level_commander cf . param . set_value ( 'commander.enHighLevel' , '1' ) cf . param . set_value ( 'ring.effect' , '7' ) cf . param . set_value ( 'ring.solidRed' , str ( 0 ) ) cf . param . set_value ( 'ring.solidGreen' , str ( 255 ) ) cf . param . set_value ( 'ring.solidBlue' , str ( 0 ) ) commander . takeoff ( 1.5 , 3.0 ) sleep_while_checking_stable ( scf , tf_sec = 15 ) except UnstableException as e : print ( e ) kill_motor_sequence ( scf ) raise ( e ) except LowBatteryException as e : print ( e ) land_sequence ( scf ) except Exception as e : print ( e ) land_sequence ( scf ) raise ( e )
short_docstring: This is the takeoff sequence.
short_docstring_tokens: This is the takeoff sequence .
comment: """
      This is the takeoff sequence. It commands takeoff.
      """$SEP$# type: Crazyflie$SEP$# type: cflib.HighLevelCOmmander$SEP$# raising here since we want to kill entire show if one fails early