Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagepy
titleRGB
linenumberstrue
collapsetrue

Java

Code Block
languagepy
titleImageType
linenumberstrue
collapsetrue
#Sending --- Img (list of int[0-255]) to string (OctetSeq mapping)
img = [2,3,12,...]
octseq = str(bytearray(img))

#Receiving --- OctetSeq mapping to Img (list of int[0-255])
octseq = takeImage(...)
b = bytearray()
b.extend(octseq)
img = list(b)
Code Block
languagepy
titleImageList
linenumberstrue
collapsetrue
#Sending
img = [2,3,12,...]
octseq = str(bytearray(img))
imgList = [octseq, octseq, octseq]


#Receiving
imgList = ...
imgs = []
for octseq in imgList
    b = bytearray()
    b.extend(octseq)
    img = list(b)
    imgs.append(img)
Code Block
languagepy
titlePosition
linenumberstrue
collapsetrue
from TYPES import Position


#Sending
pos = Position(az, el)


#Receiving
pos = ...
az = pos.az
el = pos.el
Code Block
languagepy
titleTarget
linenumberstrue
collapsetrue
from TYPES import Target
from TYPES import Position


#Sending
pos = Position(az, el)
tar = Target(tid, pos, expTime)


#Receiving
tar = ...
tid = tar.tid
pos = tar.pos
eTime = tar.expTime
Code Block
languagepy
titleTargetList
linenumberstrue
collapsetrue
from TYPES import Target
from TYPES import Position

#Sending
pos = Position(az, el)
tar = Target(tid, pos, expTime)
tList = [tar, tar, tar]

#Receiving
tarList = ...
for tar in tarList:
    tid = tar.tid
    pos = tar.pos
    eTime = tar.expTime
    ...
Code Block
languagepy
titleProposal
linenumberstrue
collapsetrue
Code Block
languagepy
titleProposalList
linenumberstrue
collapsetrue
Code Block
languagepy
titleRGB
linenumberstrue
collapsetrue

C++

Code Block
languagepy
titleImageType
linenumberstrue
collapsetrue
Code Block
languagepy
titleImageList
linenumberstrue
collapsetrue
Code Block
languagepy
titlePosition
linenumberstrue
collapsetrue
Code Block
languagepy
titleTarget
linenumberstrue
collapsetrue
Code Block
languagepy
titleTargetList
linenumberstrue
collapsetrue
Code Block
languagepy
titleProposal
linenumberstrue
collapsetrue
Code Block
languagepy
titleProposalList
linenumberstrue
collapsetrue
Code Block
languagepy
titleRGB
linenumberstrue
collapsetrue