@@ -168,10 +168,10 @@ <h1 class="title">Module <code>rot2prog.rot2prog</code></h1>
168168
169169 if el > self.max_el:
170170 el = self.max_el
171- self._log.warning('Elevation corrected to: ' + str(round(float(az ), 2)))
171+ self._log.warning('Elevation corrected to: ' + str(round(float(el ), 2)))
172172 if el < self.min_el:
173173 el = self.min_el
174- self._log.warning('Elevation corrected to: ' + str(round(float(az ), 2)))
174+ self._log.warning('Elevation corrected to: ' + str(round(float(el ), 2)))
175175
176176 self._log.debug('Set command to be sent')
177177 self._log.debug('-> Azimuth: ' + str(round(float(az), 2)))
@@ -182,8 +182,8 @@ <h1 class="title">Module <code>rot2prog.rot2prog</code></h1>
182182 V = int(self._resolution * (float(el) + 360))
183183
184184 # convert to ascii characters
185- H = "000 " + str(H)
186- V = "000 " + str(V)
185+ H = "0000 " + str(H)
186+ V = "0000 " + str(V)
187187
188188 # build command
189189 cmd = [
@@ -255,8 +255,8 @@ <h1 class="title">Module <code>rot2prog.rot2prog</code></h1>
255255 self._log.info('Status command received')
256256
257257 # convert to byte values
258- H = "000 " + str(round(float(self.az + 360), 1))
259- V = "000 " + str(round(float(self.el + 360), 1))
258+ H = "00000 " + str(round(float(self.az + 360), 1))
259+ V = "00000 " + str(round(float(self.el + 360), 1))
260260
261261 rsp = [
262262 0x57,
@@ -469,10 +469,10 @@ <h2 id="args">Args</h2>
469469
470470 if el > self.max_el:
471471 el = self.max_el
472- self._log.warning('Elevation corrected to: ' + str(round(float(az ), 2)))
472+ self._log.warning('Elevation corrected to: ' + str(round(float(el ), 2)))
473473 if el < self.min_el:
474474 el = self.min_el
475- self._log.warning('Elevation corrected to: ' + str(round(float(az ), 2)))
475+ self._log.warning('Elevation corrected to: ' + str(round(float(el ), 2)))
476476
477477 self._log.debug('Set command to be sent')
478478 self._log.debug('-> Azimuth: ' + str(round(float(az), 2)))
@@ -483,8 +483,8 @@ <h2 id="args">Args</h2>
483483 V = int(self._resolution * (float(el) + 360))
484484
485485 # convert to ascii characters
486- H = "000 " + str(H)
487- V = "000 " + str(V)
486+ H = "0000 " + str(H)
487+ V = "0000 " + str(V)
488488
489489 # build command
490490 cmd = [
@@ -554,10 +554,10 @@ <h2 id="args">Args</h2>
554554
555555 if el > self.max_el:
556556 el = self.max_el
557- self._log.warning('Elevation corrected to: ' + str(round(float(az ), 2)))
557+ self._log.warning('Elevation corrected to: ' + str(round(float(el ), 2)))
558558 if el < self.min_el:
559559 el = self.min_el
560- self._log.warning('Elevation corrected to: ' + str(round(float(az ), 2)))
560+ self._log.warning('Elevation corrected to: ' + str(round(float(el ), 2)))
561561
562562 self._log.debug('Set command to be sent')
563563 self._log.debug('-> Azimuth: ' + str(round(float(az), 2)))
@@ -568,8 +568,8 @@ <h2 id="args">Args</h2>
568568 V = int(self._resolution * (float(el) + 360))
569569
570570 # convert to ascii characters
571- H = "000 " + str(H)
572- V = "000 " + str(V)
571+ H = "0000 " + str(H)
572+ V = "0000 " + str(V)
573573
574574 # build command
575575 cmd = [
@@ -723,8 +723,8 @@ <h2 id="args">Args</h2>
723723 self._log.info('Status command received')
724724
725725 # convert to byte values
726- H = "000 " + str(round(float(self.az + 360), 1))
727- V = "000 " + str(round(float(self.el + 360), 1))
726+ H = "00000 " + str(round(float(self.az + 360), 1))
727+ V = "00000 " + str(round(float(self.el + 360), 1))
728728
729729 rsp = [
730730 0x57,
@@ -802,8 +802,8 @@ <h3>Methods</h3>
802802 self._log.info('Status command received')
803803
804804 # convert to byte values
805- H = "000 " + str(round(float(self.az + 360), 1))
806- V = "000 " + str(round(float(self.el + 360), 1))
805+ H = "00000 " + str(round(float(self.az + 360), 1))
806+ V = "00000 " + str(round(float(self.el + 360), 1))
807807
808808 rsp = [
809809 0x57,
0 commit comments