Skip to content
Snippets Groups Projects
  1. Apr 03, 2019
  2. Apr 02, 2019
  3. Mar 30, 2019
  4. Mar 29, 2019
  5. Mar 28, 2019
  6. Mar 27, 2019
    • Julian Oes's avatar
      px_uploader.py: write timeout workaround · be8ad46f
      Julian Oes authored
      This is a workaround for the write timeout that we have seen for some
      host computers trying to flash the firmware.
      
      We don't know the root cause of the problem but we do observed the
      following:
      
      - For blocking writes with timeout (Pyserial write_timeout=0.5):
        write() throws SerialTimeoutException. In systrace we see that the
        select() call after write waiting for the write to be finished hangs
        and finally times out.
      - For blocking writes without timeout (Pyserial write_timeout=None):
        write() hangs indefinitely. In systrace we see that the
        select() call after write waiting for the write to be finished hangs.
      - For non-blocking writes:
        write() works but flush() hangs. In systrace we see that
        ioctl(fd, TCSBRK, 1) which is (correctly) triggered by termios tcdrain
        hangs.
      
      Inspecting USB traffic using usbmon, we can see that the data which is
      written actually seems to be sent and looking at responses from the
      Pixhawk bootloader and the timings it looks like all the data has
      arrived.
      
      This workaround uses non-blocking writes without flushing and this
      seemed to prevent the issue from happening so far.
      
      Debugging was done in collaboration with Beat Küng and David Sidrane.
      be8ad46f
    • Julian Oes's avatar
      SITL: interim fix for replay · 187f3f28
      Julian Oes authored
      The replay functionality was broken with lockstep. This is an interim
      fix for the replay functionality.
      
      In the longer term it would be nice to leverage the lockstep speedup
      for the replay.
      187f3f28
    • Matthias Grob's avatar
      mc_att_control: only adapt yaw rate limit on control mode change · 463d5512
      Matthias Grob authored
      Put adaption into a method because it needs to be called when
      the control mode or the parameter changes.
      463d5512
    • Matthias Grob's avatar
      mc_att_control: parameter processing refactor · 3375ae2c
      Matthias Grob authored
      - Remove unnecessary in between rate limits member vectors.
      - Only switch the yaw rate limit in auto modes,
      other values stay the same anyways.
      - Fill gain vectors with parameters in one line.
      3375ae2c
Loading