1. 18 Jul, 2014 2 commits
    • Pietro Fezzardi's avatar
      standard servo: store accumulator in scaled nsecs · 67258e3b
      Pietro Fezzardi authored
      The integral accumulator of the PI servo is now a 64bit integer.
      The stored values are bit shifted by 10, so we have a finer
      granularity on the control.
      With the previous implementation the integral part stopped working
      when ofm was under the value of OPTS(ppi)->ai. This problem has
      been solved with this changes.
      I had to use __div64_32() from lib/div64.c, because dividing for
      a long long is not allowed in arch-wrpc (it takes too much RAM).
      67258e3b
    • Pietro Fezzardi's avatar
      arch-sim: new simulator diagnostics and config · 717a8f5e
      Pietro Fezzardi authored
      diagnostics:
      
      For testing purposes we can't just read the ofm value
      printed out by the slave, because that's only the offset
      perceived by the slave and can be wrong. We need instead to
      print out the offset obtained subtracting the real time of
      the master from the real time of the slave.
      To print out the ofm we use the "ext" flag of pp_diag.
      The ofm is printed only when the slave gets a
      DelayResp message from the master.
      A new tool to strip ofm out of simulator log is provided
      
      config:
      
      now the max number of simulated ptp iterations can be configured.
      previously one could set the number of seconds to simulate.
      this is not possible anymore.
      717a8f5e
  2. 09 Jul, 2014 1 commit
  3. 26 Mar, 2014 6 commits
  4. 21 Mar, 2014 31 commits