parameters: (self)
docstring: load firmware from a json apj or px4 file
docstring_summary: load firmware from a json apj or px4 file
docstring_tokens: load firmware from a json apj or px4 file
function: def load_apj(self):
          '''load firmware from a json apj or px4 file'''
          f = open(self.filename,'r')
          self.fw_json = json.load(f)
          f.close()
          self.firmware = zlib.decompress(base64.b64decode(self.fw_json['image']))
          print("Loaded apj file of length %u" % len(self.firmware))
function_tokens: def load_apj ( self ) : f = open ( self . filename , 'r' ) self . fw_json = json . load ( f ) f . close ( ) self . firmware = zlib . decompress ( base64 . b64decode ( self . fw_json [ 'image' ] ) ) print ( "Loaded apj file of length %u" % len ( self . firmware ) )