<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Mark, Tom,<br>
    <br>
    cool stuff, I don't think this conversion can be done with any more
    accuracy than that :-)<br>
    <br>
    In the area of 0..100 km it tends to give smaller roundtrip results
    than the old one, but I consider this to be OK, as this typically is
    the "range" area and it should be better to be -2 km off for some
    values than to be +1 km for more values.<br>
    <br>
    Updated & checked in.<br>
    <br>
    Regards,<br>
    Michael<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Am 13.05.2013 15:11, schrieb Mark
      Webb-Johnson:<br>
    </div>
    <blockquote
      cite="mid:255B4F22-E7C5-4D58-8972-A000D55D5AC2@webb-johnson.net"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div><br>
      </div>
      I've committed Tom's functions for this, as well as changes to
      net_msg and vehicle_voltampera to use the new functions.
      <div><br>
      </div>
      <div>Michael: I haven't changed vehicle_twizy, as I didn't want to
        mess with your module. The change is very simple:</div>
      <div><br>
      </div>
      <div>
        <ol class="MailOutline">
          <li><font face="Andale Mono">s/KM2MI/MiFromKm/</font></li>
          <li><font face="Andale Mono">s/MI2KM/KmFromMi/</font></li>
        </ol>
      </div>
      <div><br>
      </div>
      <div>Once done, please remove the KM2MI and MI2KM macros from
        utils.h, as they shouldn't be required any more.</div>
      <div><br>
      </div>
      <div>The STAT command is a good way of testing. I tried in DIAG
        mode, and it seemed ok.</div>
      <div><br>
      </div>
      <div>Regards, Mark.</div>
      <div><br>
      </div>
      <div>P.S. Now the Android App is back in the store, I'll start the
        process of working out a better solution for this.</div>
      <div><br>
        <div>
          <div>On 13 May, 2013, at 9:02 AM, Mark Webb-Johnson <<a
              moz-do-not-send="true" href="mailto:mark@webb-johnson.net">mark@webb-johnson.net</a>>
            wrote:</div>
          <br class="Apple-interchange-newline">
          <blockquote type="cite">
            <div style="word-wrap: break-word; -webkit-nbsp-mode: space;
              -webkit-line-break: after-white-space; ">Michael,
              <div><br>
              </div>
              <div>Sorry, I've been lax about this.</div>
              <div><br>
              </div>
              <div>I did some work with Tom, a while ago, but haven't
                had a chance to put it in.</div>
              <div><br>
              </div>
              <div>Here is the final result (of me improving, then Tom
                improving my improvements, then me improving Tom's
                improvements to my improvements, then Tom nailing it
                with a last set of improvements). In the end, we decided
                it was more important to be as accurate as we can than
                to try to match the car exactly. As he put it, it was an
                interesting problem, and I think the solution of
                dividing the problem into two is quite elegant - leading
                to extraordinary accuracy on an 8bit processor while
                still supporting a large range of values. I'm
                particularly happy about the round-trip
                (miles->kilometers->miles) values shown.</div>
              <div><br>
              </div>
              <blockquote class="webkit-indent-blockquote"
                style="margin: 0 0 0 40px; border: none; padding: 0px;"><span
                  class="Apple-style-span" style="font-family:
                  monospace; ">Below is an improved version of the
                  miles-to-kilometers function with</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">rounding to get a bit
                  more precision, and a corresponding</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">kilometers-to-miles
                  function.</span><span class="Apple-style-span"
                  style="font-family: monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">I tested both the
                  functions with a bunch of values, converting miles to</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">kilometers and back,
                  using 32-bit ints representing 1/10's. It matches the</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">odometer values you
                  gave for your car and successfully roundtrips until</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">300,000 miles.</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">Xcode Test results:</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">0.1 miles -> 0.2
                  km -> 0.1 miles</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">1.0 miles -> 1.6
                  km -> 1.0 miles</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">10.0 miles -> 16.1
                  km -> 10.0 miles</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">100.0 miles ->
                  160.9 km -> 100.0 miles</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">100,000.0 miles ->
                  160,934.4 km -> 100,000.0 miles</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">150,000.0 miles ->
                  241,401.7 km -> 150,000.0 miles</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">200,000.0 miles ->
                  321,868.9 km -> 200,000.0 miles</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">299,999.9 miles ->
                  482,803.2 km -> 299,999.9 miles</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">300,000.0 miles ->
                  482,803.3 km -> 299,999.9 miles</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">1,000,000.0 miles
                  -> 1,609,344.5 km -> 999,999.9 miles</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">10,000,000.0 miles
                  -> 16,093,444.8 km -> 9,999,999.1 miles</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">200,000,000.0 miles
                  -> 321,868,896.5 km -> 199,999,982.4 miles</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">32,255.6 miles ->
                  51,910.4 km -> 32,255.6 miles</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">32,285.8 miles ->
                  51,959.0 km -> 32,285.8 miles</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">13,421.3 miles ->
                  21,599.5 km -> 13,421.3 miles</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">Code:</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">// convert miles to
                  kilometers by multiplying by ~1.609344</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">unsigned long
                  KmFromMi(unsigned long miles)</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">{</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "> unsigned long high =
                  miles >> 16;</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "> unsigned long low =
                  miles & 0xFFFF;</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "> // approximate
                  0.609344 with 39934/2^16</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "> // do the multiply
                  and divide for the high and low 16 bits to</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "> // preserve
                  precision and avoid overflow</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "> // this yields six
                  significant digits of accuracy and doesn't</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "> // overflow until
                  the results no longer fit in 32 bits</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "> return miles + (high
                  * 39934) + ((low * 39934 + 0x7FFF) >> 16);</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">}</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">// convert kilometers
                  to miles by multiplying by ~1/1.609344</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">unsigned long
                  MiFromKm(unsigned long km)</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">{</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "> unsigned long high =
                  km >> 16;</span><span class="Apple-style-span"
                  style="font-family: monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "> unsigned long low =
                  km & 0xFFFF;</span><span class="Apple-style-span"
                  style="font-family: monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "> // approximate
                  1/1.609344 with (40722 + 1/6)/2^16</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "> // do the multiply
                  and divide for the high and low 16 bits to</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "> // preserve
                  precision and avoid overflow</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "> // this yields six
                  significant digits of accuracy and doesn't</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "> // overflow for any
                  32-bit input value.</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "> return (high *
                  40722) + ((low * 40722 + km/6 + 0x7FFF) >> 16);</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">}</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">I hope this is
                  useful. It was an interesting problem.</span><span
                  class="Apple-style-span" style="font-family:
                  monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; "><br>
                </span><span class="Apple-style-span"
                  style="font-family: monospace; ">   Tom</span></blockquote>
              <div><br>
              </div>
              <div>I'll put it in utils.c this evening.</div>
              <div><br>
              </div>
              <div>It is not a _perfect_ solution (which would be to get
                the readings in native format - but that needs
                synchronised changes to the protocol and apps to support
                both new and old formats), but should be a lot more
                accurate than what we have now.</div>
              <div><br>
              </div>
              <div>Regards, Mark.<br>
                <div><br>
                  <div>
                    <div>On 13 May, 2013, at 4:48 AM, Michael Balzer
                      wrote:</div>
                    <br class="Apple-interchange-newline">
                    <blockquote type="cite">
                      <meta content="text/html; charset=ISO-8859-1"
                        http-equiv="Content-Type">
                      <div bgcolor="#FFFFFF" text="#000000"> Nikki,<br>
                        <br>
                        that's no new error, it's due to the Twizy
                        measuring metric vs. the OVMS car model needing
                        miles.<br>
                        <br>
                        The kilometer to miles conversion is optimized
                        to avoid floating point math (the OVMS has no
                        FPU), and the conversion is already fine tuned
                        to produce the least mean error in the range
                        0..100 km.<br>
                        <br>
                        Conversion errors get bigger the bigger the
                        numbers get, and there's not much we can do
                        about this (except enabling metric values in the
                        car model, which is on our list).<br>
                        <br>
                        Here's your current error explained:<br>
                        <br>
                        MP-0
                        c200,0,0040,0000,0000,4,0,0,169252,8430,8430,8774,65,65,41,37,0<br>
                        <br>
                        169252 is the Twizy internal odometer value
                        meaning 1692.52 km.<br>
                        <br>
                        See utils.h for the conversion:<br>
                        <br>
                        // 1 mile = 1.609344 kilometers<br>
                        // smalles error approximation: mi = (km * 10 -
                        5) / 16 + 1<br>
                        <br>
                        So the integer conversion for 1692 results in
                        1058 while the real value is 1051. That's your 7
                        mile offset.<br>
                        <br>
                        Regards,<br>
                        Michael<br>
                        <br>
                        <br>
                        <div class="moz-cite-prefix">Am 12.05.2013
                          21:49, schrieb Nikki Gordon-Bloomfield:<br>
                        </div>
                        <blockquote
                          cite="mid:038EB5DA-B39A-41B4-9468-2ACC58BC2FB8@littlecollie.com"
                          type="cite">
                          <meta http-equiv="content-type"
                            content="text/html; charset=ISO-8859-1">
                          <div>I forgot to mention...</div>
                          <div><br>
                          </div>
                          <div>My Twizy is about 7 miles less on the
                            odometer than the creek OVMS build says.  <br>
                            <br>
                            Sent from my iPhone</div>
                          <div><br>
                            On 12 May 2013, at 17:40, Michael Balzer
                            <<a moz-do-not-send="true"
                              href="mailto:dexter@expeedo.de">dexter@expeedo.de</a>>

                            wrote:<br>
                            <br>
                          </div>
                          <blockquote type="cite">
                            <div>
                              <meta content="text/html;
                                charset=ISO-8859-1"
                                http-equiv="Content-Type">
                              Nikki,<br>
                              <br>
                              I haven't had that special case, but it
                              sounds like the RAM corruption effect. I
                              think you need to do a hard reboot, i.e.
                              switch the module off.<br>
                              <br>
                              Please read out the debug info (cmd 200)
                              and send me all history data if possible,
                              maybe I can find something in there.<br>
                              <br>
                              Thanks,<br>
                              Michael<br>
                              <br>
                              <br>
                              <div class="moz-cite-prefix">Am 12.05.2013
                                13:26, schrieb Nikki Gordon-Bloomfield:<br>
                              </div>
                              <blockquote
                                cite="mid:FF26C68D-3B10-4779-877B-BE630858FB75@littlecollie.com"
                                type="cite">
                                <meta http-equiv="Content-Type"
                                  content="text/html;
                                  charset=ISO-8859-1">
                                HI folks, 
                                <div><br>
                                </div>
                                <div>Just to let you know that my Twizy
                                  is still reporting 0 percent and 0
                                  miles, even though it is now fully
                                  charged! (At least, OVMS is!) I've
                                  rebooted it a few times, and
                                  geolocation works fine. </div>
                                <div><br>
                                </div>
                                <div>Nikki. </div>
                                <div><br>
                                  <div><br>
                                  </div>
                                  <div><br>
                                    <div>
                                      <div>On 12 May 2013, at 12:09,
                                        Michael Jochum <<a
                                          moz-do-not-send="true"
                                          href="mailto:mikeljo@mac.com">mikeljo@mac.com</a>>


                                        wrote:</div>
                                      <br
                                        class="Apple-interchange-newline">
                                      <blockquote type="cite">
                                        <meta http-equiv="Content-Type"
                                          content="text/html;
                                          charset=ISO-8859-1">
                                        <base href="x-msg://273/">
                                        <div style="word-wrap:
                                          break-word; -webkit-nbsp-mode:
                                          space; -webkit-line-break:
                                          after-white-space; ">Hi,
                                          <div><br>
                                          </div>
                                          <div>i think yes.</div>
                                          <div>We have the Voltage(s)
                                            and Amper(s) per Motor and
                                            Battery. But currently not
                                            used in OVMS.</div>
                                          <div>So we can calc the Power
                                            like DashDaq.</div>
                                          <div><br>
                                          </div>
                                          <div>I think these are the
                                            IDs:</div>
                                          <div><br>
                                          </div>
                                          <div>
                                            <div>7EC 432D High Voltage
                                              Battery Voltage</div>
                                            <div>7EC 4356 High Voltage
                                              Battery Current</div>
                                            <div><br>
                                            </div>
                                            <div>7E9<span
                                                class="Apple-tab-span"
                                                style="white-space:pre">
                                              </span>432D High Voltage
                                              Battery Voltage  </div>
                                            <div>7E9<span
                                                class="Apple-tab-span"
                                                style="white-space:pre">
                                              </span>4356 High Voltage
                                              Battery Current</div>
                                            <div><br>
                                            </div>
                                            <div>7E9<span
                                                class="Apple-tab-span"
                                                style="white-space:pre">
                                              </span>2883 Motor A DC
                                              Current</div>
                                            <div>7E9<span
                                                class="Apple-tab-span"
                                                style="white-space:pre">
                                              </span>2884 Motor B DC
                                              Current</div>
                                            <div>7E9<span
                                                class="Apple-tab-span"
                                                style="white-space:pre">
                                              </span>2885 Motor A DC
                                              Voltage</div>
                                            <div>7E9<span
                                                class="Apple-tab-span"
                                                style="white-space:pre">
                                              </span>2886 Motor B DC
                                              Voltage</div>
                                            <div><br>
                                            </div>
                                            <div>7E8<span
                                                class="Apple-tab-span"
                                                style="white-space:pre">
                                              </span>000D Vehicle Speed
                                              Km/Hr</div>
                                          </div>
                                          <div><br>
                                          </div>
                                          <div>You can see the Data for
                                            the Battery are here twice.
                                            For Filter reasons i think
                                            it is better to use 7E9
                                            instead 7EC.</div>
                                          <div><br>
                                          </div>
                                          <div><br>
                                          </div>
                                          <div>Bye</div>
                                          <div>Michael J.</div>
                                          <div><br>
                                          </div>
                                          <div><br>
                                          </div>
                                          <div><br>
                                          </div>
                                          <div><br>
                                          </div>
                                          <div>
                                            <div>
                                              <div>Am 11.05.2013 um
                                                21:05 schrieb Denis
                                                KRAUTH <<a
                                                  moz-do-not-send="true"
href="mailto:denis.krauth@wanadoo.fr">denis.krauth@wanadoo.fr</a>>:</div>
                                              <br
                                                class="Apple-interchange-newline">
                                              <blockquote type="cite">
                                                <div bgcolor="white"
                                                  link="blue"
                                                  vlink="purple"
                                                  style="font-family:
                                                  Helvetica; font-size:
                                                  medium; font-style:
                                                  normal; font-variant:
                                                  normal; font-weight:
                                                  normal;
                                                  letter-spacing:
                                                  normal; line-height:
                                                  normal; orphans: 2;
                                                  text-align:
                                                  -webkit-auto;
                                                  text-indent: 0px;
                                                  text-transform: none;
                                                  white-space: normal;
                                                  widows: 2;
                                                  word-spacing: 0px;
                                                  -webkit-text-size-adjust:
                                                  auto;
                                                  -webkit-text-stroke-width:
                                                  0px; " lang="FR">
                                                  <div class="Section1"
                                                    style="page:
                                                    Section1; ">
                                                    <div style="margin:
                                                      0cm 0cm 0.0001pt;
                                                      font-size: 12pt;
                                                      font-family:
                                                      'Times New Roman',
                                                      serif; "><span
                                                        style="font-size:
                                                        11pt;
                                                        font-family:
                                                        Calibri,
                                                        sans-serif;
                                                        color: rgb(31,
                                                        73, 125); "
                                                        lang="EN-US">Michael

                                                        (J),<o:p></o:p></span></div>
                                                    <div style="margin:
                                                      0cm 0cm 0.0001pt;
                                                      font-size: 12pt;
                                                      font-family:
                                                      'Times New Roman',
                                                      serif; "><span
                                                        style="font-size:
                                                        11pt;
                                                        font-family:
                                                        Calibri,
                                                        sans-serif;
                                                        color: rgb(31,
                                                        73, 125); "
                                                        lang="EN-US"> </span></div>
                                                    <div style="margin:
                                                      0cm 0cm 0.0001pt;
                                                      font-size: 12pt;
                                                      font-family:
                                                      'Times New Roman',
                                                      serif; "><span
                                                        style="font-size:
                                                        11pt;
                                                        font-family:
                                                        Calibri,
                                                        sans-serif;
                                                        color: rgb(31,
                                                        73, 125); "
                                                        lang="EN-US">Is
                                                        this feasible
                                                        for our
                                                        Amperas ?<o:p></o:p></span></div>
                                                    <div style="margin:
                                                      0cm 0cm 0.0001pt;
                                                      font-size: 12pt;
                                                      font-family:
                                                      'Times New Roman',
                                                      serif; "><span
                                                        style="font-size:
                                                        11pt;
                                                        font-family:
                                                        Calibri,
                                                        sans-serif;
                                                        color: rgb(31,
                                                        73, 125); "
                                                        lang="EN-US"> </span></div>
                                                    <div>
                                                      <div
                                                        style="margin:
                                                        0cm 0cm
                                                        0.0001pt;
                                                        font-size: 12pt;
                                                        font-family:
                                                        'Times New
                                                        Roman', serif; "><span
                                                          style="font-size:
                                                          11pt;
                                                          font-family:
                                                          Calibri,
                                                          sans-serif;
                                                          color: rgb(31,
                                                          73, 125); ">Denis

                                                          (aka Kratus).<o:p></o:p></span></div>
                                                    </div>
                                                    <div style="margin:
                                                      0cm 0cm 0.0001pt;
                                                      font-size: 12pt;
                                                      font-family:
                                                      'Times New Roman',
                                                      serif; "><span
                                                        style="font-size:
                                                        11pt;
                                                        font-family:
                                                        Calibri,
                                                        sans-serif;
                                                        color: rgb(31,
                                                        73, 125); "> </span></div>
                                                    <div>
                                                      <div
                                                        style="border-style:
                                                        solid none none;
                                                        border-top-width:
                                                        1pt;
                                                        border-top-color:
                                                        rgb(181, 196,
                                                        223); padding:
                                                        3pt 0cm 0cm; ">
                                                        <div
                                                          style="margin:
                                                          0cm 0cm
                                                          0.0001pt;
                                                          font-size:
                                                          12pt;
                                                          font-family:
                                                          'Times New
                                                          Roman', serif;
                                                          "><b><span
                                                          style="font-size:
                                                          10pt;
                                                          font-family:
                                                          Tahoma,
                                                          sans-serif;
                                                          color:
                                                          windowtext; ">De :</span></b><span
                                                          style="font-size:
                                                          10pt;
                                                          font-family:
                                                          Tahoma,
                                                          sans-serif;
                                                          color:
                                                          windowtext; "><span
class="Apple-converted-space"> </span><a moz-do-not-send="true"
                                                          href="mailto:ovmsdev-bounces@lists.teslaclub.hk"
                                                          style="color:
                                                          purple;
                                                          text-decoration:
                                                          underline; ">ovmsdev-bounces@lists.teslaclub.hk</a><span
class="Apple-converted-space"> </span>[<a moz-do-not-send="true"
                                                          class="moz-txt-link-freetext"
href="mailto:ovmsdev">mailto:ovmsdev</a>-<a moz-do-not-send="true"
                                                          href="mailto:bounces@lists.teslaclub.hk"
                                                          style="color:
                                                          purple;
                                                          text-decoration:
                                                          underline; ">bounces@lists.teslaclub.hk</a>]<span
class="Apple-converted-space"> </span><b>De la part de</b><span
                                                          class="Apple-converted-space"> </span>Michael


                                                          Balzer<br>
                                                          <b>Envoyé :</b><span
class="Apple-converted-space"> </span>samedi 11 mai 2013 16:52<br>
                                                          <b>À :</b><span
class="Apple-converted-space"> </span><a moz-do-not-send="true"
                                                          href="mailto:ovmsdev@lists.teslaclub.hk"
                                                          style="color:
                                                          purple;
                                                          text-decoration:
                                                          underline; ">ovmsdev@lists.teslaclub.hk</a><br>
                                                          <b>Objet :</b><span
class="Apple-converted-space"> </span>Re: [Ovmsdev] Twizy firmware image
                                                          V2.3.6 / 2.6.5<o:p></o:p></span></div>
                                                      </div>
                                                    </div>
                                                    <div style="margin:
                                                      0cm 0cm 0.0001pt;
                                                      font-size: 12pt;
                                                      font-family:
                                                      'Times New Roman',
                                                      serif; "><o:p> </o:p></div>
                                                    <p class="MsoNormal"
                                                      style="margin: 0cm
                                                      0cm 12pt;
                                                      font-size: 12pt;
                                                      font-family:
                                                      'Times New Roman',
                                                      serif; ">Denis,<br>
                                                      <br>
                                                      thanks :-)<br>
                                                      <br>
                                                      The GPS logging
                                                      feature and energy
                                                      usage stats are
                                                      currently Twizy
                                                      specific.<br>
                                                      <br>
                                                      To move these into
                                                      the framework, we
                                                      need to make the
                                                      energy usage
                                                      variables part of
                                                      the common car
                                                      model. And of
                                                      course we need to
                                                      know how to get
                                                      these values from
                                                      other cars like
                                                      Ampera...?<br>
                                                      <br>
                                                      Regards,<br>
                                                      Michael<br>
                                                      <br>
                                                      <o:p></o:p></p>
                                                    <div>
                                                      <div
                                                        style="margin:
                                                        0cm 0cm
                                                        0.0001pt;
                                                        font-size: 12pt;
                                                        font-family:
                                                        'Times New
                                                        Roman', serif; ">Am
                                                        11.05.2013
                                                        10:17, schrieb
                                                        Denis KRAUTH:<o:p></o:p></div>
                                                    </div>
                                                    <blockquote
                                                      style="margin-top:
                                                      5pt;
                                                      margin-bottom:
                                                      5pt; ">
                                                      <div
                                                        style="margin:
                                                        0cm 0cm
                                                        0.0001pt;
                                                        font-size: 12pt;
                                                        font-family:
                                                        'Times New
                                                        Roman', serif; "><span
                                                          style="font-size:
                                                          11pt;
                                                          font-family:
                                                          Calibri,
                                                          sans-serif;
                                                          color: rgb(31,
                                                          73, 125); ">Wow,

                                                          great !</span><o:p></o:p></div>
                                                      <div
                                                        style="margin:
                                                        0cm 0cm
                                                        0.0001pt;
                                                        font-size: 12pt;
                                                        font-family:
                                                        'Times New
                                                        Roman', serif; "><span
                                                          style="font-size:
                                                          11pt;
                                                          font-family:
                                                          Calibri,
                                                          sans-serif;
                                                          color: rgb(31,
                                                          73, 125); "> </span><o:p></o:p></div>
                                                      <div
                                                        style="margin:
                                                        0cm 0cm
                                                        0.0001pt;
                                                        font-size: 12pt;
                                                        font-family:
                                                        'Times New
                                                        Roman', serif; "><span
                                                          style="font-size:
                                                          11pt;
                                                          font-family:
                                                          Calibri,
                                                          sans-serif;
                                                          color: rgb(31,
                                                          73, 125); "
                                                          lang="EN-US">Can
                                                          this be done
                                                          on my Ampera
                                                          too, or is it
Twizy-specific ?</span><o:p></o:p></div>
                                                      <div
                                                        style="margin:
                                                        0cm 0cm
                                                        0.0001pt;
                                                        font-size: 12pt;
                                                        font-family:
                                                        'Times New
                                                        Roman', serif; "><span
                                                          style="font-size:
                                                          11pt;
                                                          font-family:
                                                          Calibri,
                                                          sans-serif;
                                                          color: rgb(31,
                                                          73, 125); "
                                                          lang="EN-US">Can
                                                          FEATURE 8 2
                                                          also be
                                                          applied on my
                                                          2.3.2 Ampera
                                                          firmware?</span><o:p></o:p></div>
                                                      <div
                                                        style="margin:
                                                        0cm 0cm
                                                        0.0001pt;
                                                        font-size: 12pt;
                                                        font-family:
                                                        'Times New
                                                        Roman', serif; "><span
                                                          style="font-size:
                                                          11pt;
                                                          font-family:
                                                          Calibri,
                                                          sans-serif;
                                                          color: rgb(31,
                                                          73, 125); "
                                                          lang="EN-US">There
                                                          is a
                                                          Volt/Ampera
                                                          ecodrive
                                                          contest in a
                                                          few days (June
                                                          1<sup>st</sup>)
                                                          and this would
                                                          be really
                                                          great to track
                                                          the data.</span><o:p></o:p></div>
                                                      <div
                                                        style="margin:
                                                        0cm 0cm
                                                        0.0001pt;
                                                        font-size: 12pt;
                                                        font-family:
                                                        'Times New
                                                        Roman', serif; "><span
                                                          style="font-size:
                                                          11pt;
                                                          font-family:
                                                          Calibri,
                                                          sans-serif;
                                                          color: rgb(31,
                                                          73, 125); "
                                                          lang="EN-US">I
                                                          just read your
                                                          german guide,
                                                          and it seems
                                                          really not
                                                          difficult.</span><o:p></o:p></div>
                                                      <div
                                                        style="margin:
                                                        0cm 0cm
                                                        0.0001pt;
                                                        font-size: 12pt;
                                                        font-family:
                                                        'Times New
                                                        Roman', serif; "><span
                                                          style="font-size:
                                                          11pt;
                                                          font-family:
                                                          Calibri,
                                                          sans-serif;
                                                          color: rgb(31,
                                                          73, 125); "
                                                          lang="EN-US"> </span><o:p></o:p></div>
                                                      <div
                                                        style="margin:
                                                        0cm 0cm
                                                        0.0001pt;
                                                        font-size: 12pt;
                                                        font-family:
                                                        'Times New
                                                        Roman', serif; "><span
                                                          style="font-size:
                                                          11pt;
                                                          font-family:
                                                          Calibri,
                                                          sans-serif;
                                                          color: rgb(31,
                                                          73, 125); "
                                                          lang="EN-US">Hut
                                                          ab!</span><o:p></o:p></div>
                                                      <div
                                                        style="margin:
                                                        0cm 0cm
                                                        0.0001pt;
                                                        font-size: 12pt;
                                                        font-family:
                                                        'Times New
                                                        Roman', serif; "><span
                                                          style="font-size:
                                                          11pt;
                                                          font-family:
                                                          Calibri,
                                                          sans-serif;
                                                          color: rgb(31,
                                                          73, 125); "
                                                          lang="EN-US"> </span><o:p></o:p></div>
                                                      <div>
                                                        <div
                                                          style="margin:
                                                          0cm 0cm
                                                          0.0001pt;
                                                          font-size:
                                                          12pt;
                                                          font-family:
                                                          'Times New
                                                          Roman', serif;
                                                          "><span
                                                          style="font-size:
                                                          11pt;
                                                          font-family:
                                                          Calibri,
                                                          sans-serif;
                                                          color: rgb(31,
                                                          73, 125); ">Denis.</span><o:p></o:p></div>
                                                      </div>
                                                      <div
                                                        style="margin:
                                                        0cm 0cm
                                                        0.0001pt;
                                                        font-size: 12pt;
                                                        font-family:
                                                        'Times New
                                                        Roman', serif; "><span
                                                          style="font-size:
                                                          11pt;
                                                          font-family:
                                                          Calibri,
                                                          sans-serif;
                                                          color: rgb(31,
                                                          73, 125); "> </span><o:p></o:p></div>
                                                      <div>
                                                        <div
                                                          style="border-style:
                                                          solid none
                                                          none;
                                                          border-top-width:
                                                          1pt;
                                                          border-top-color:
                                                          rgb(181, 196,
                                                          223); padding:
                                                          3pt 0cm 0cm; ">
                                                          <div
                                                          style="margin:
                                                          0cm 0cm
                                                          0.0001pt;
                                                          font-size:
                                                          12pt;
                                                          font-family:
                                                          'Times New
                                                          Roman', serif;
                                                          "><b><span
                                                          style="font-size:
                                                          10pt;
                                                          font-family:
                                                          Tahoma,
                                                          sans-serif;
                                                          color:
                                                          windowtext; ">De :</span></b><span
                                                          style="font-size:
                                                          10pt;
                                                          font-family:
                                                          Tahoma,
                                                          sans-serif;
                                                          color:
                                                          windowtext; "><span
class="Apple-converted-space"> </span><a moz-do-not-send="true"
                                                          href="mailto:ovmsdev-bounces@lists.teslaclub.hk"
                                                          style="color:
                                                          purple;
                                                          text-decoration:
                                                          underline; ">ovmsdev-bounces@lists.teslaclub.hk</a><span
class="Apple-converted-space"> </span>[<a moz-do-not-send="true"
                                                          href="mailto:ovmsdev-bounces@lists.teslaclub.hk"
                                                          style="color:
                                                          purple;
                                                          text-decoration:
                                                          underline; ">mailto:ovmsdev-bounces@lists.teslaclub.hk</a>]<span
class="Apple-converted-space"> </span><b>De la part de</b><span
                                                          class="Apple-converted-space"> </span>Michael


                                                          Balzer<br>
                                                          <b>Envoyé :</b><span
class="Apple-converted-space"> </span>vendredi 10 mai 2013 20:26<br>
                                                          <b>À :</b><span
class="Apple-converted-space"> </span>'OVMS Developers'<br>
                                                          <b>Objet :</b><span
class="Apple-converted-space"> </span>[Ovmsdev] Twizy firmware image
                                                          V2.3.6 / 2.6.5</span><o:p></o:p></div>
                                                        </div>
                                                      </div>
                                                      <div
                                                        style="margin:
                                                        0cm 0cm
                                                        0.0001pt;
                                                        font-size: 12pt;
                                                        font-family:
                                                        'Times New
                                                        Roman', serif; "> <o:p></o:p></div>
                                                      <div
                                                        style="margin:
                                                        0cm 0cm
                                                        0.0001pt;
                                                        font-size: 12pt;
                                                        font-family:
                                                        'Times New
                                                        Roman', serif; ">For
                                                        those avoiding
                                                        self-compiling
                                                        (Nikki et al),
                                                        here's the
                                                        current firmware
                                                        image with Twizy
                                                        extensions.<br>
                                                        <br>
                                                        It makes GPS
                                                        logging
                                                        (RT-GPS-Log) at
                                                        5 second
                                                        intervals
                                                        stable.<br>
                                                        <br>
                                                        To get max GPS
                                                        precision be
                                                        sure to activate
                                                        only the GPS
                                                        logging (w/o
                                                        location
                                                        streaming) by
                                                        setting feature
                                                        #8 to 2.<br>
                                                        <br>
                                                        The ZIP also
                                                        contains a guide
                                                        and spreadsheet
                                                        template for
                                                        creating energy
                                                        use
                                                        heatmap-style
                                                        GPS tracks using
                                                        <a
                                                          moz-do-not-send="true"
href="http://gpsvisualizer.com/">gpsvisualizer.com</a> -- the guide text
                                                        is in german
                                                        now, I can make
                                                        an english
                                                        version and add
                                                        it to the
                                                        repository if
                                                        there is demand.<br>
                                                        <br>
                                                        Here's an
                                                        example result:<br>
                                                        <br>
                                                        <span><image001.png></span><br>
                                                        <br>
                                                        Regards,<br>
                                                        Michael<br>
                                                        <br>
                                                        <br>
                                                        <br>
                                                        <o:p></o:p></div>
                                                      <pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: 'Courier New'; ">-- <o:p></o:p></pre>
                                                      <pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: 'Courier New'; ">Michael Balzer * Paradestr. 8 * D-42107 Wuppertal<o:p></o:p></pre>
                                                      <pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: 'Courier New'; ">Fon 0202 / 272 2201 * Handy 0176 / 206 989 26<o:p></o:p></pre>
                                                      <div
                                                        style="margin:
                                                        0cm 0cm
                                                        0.0001pt;
                                                        font-size: 12pt;
                                                        font-family:
                                                        'Times New
                                                        Roman', serif; "><br>
                                                        <br>
                                                        <br>
                                                        <o:p></o:p></div>
                                                      <pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: 'Courier New'; ">_______________________________________________<o:p></o:p></pre>
                                                      <pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: 'Courier New'; ">OvmsDev mailing list<o:p></o:p></pre>
                                                      <pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: 'Courier New'; "><a moz-do-not-send="true" href="mailto:OvmsDev@lists.teslaclub.hk" style="color: purple; text-decoration: underline; ">OvmsDev@lists.teslaclub.hk</a><o:p></o:p></pre>
                                                      <pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: 'Courier New'; "><a moz-do-not-send="true" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev" style="color: purple; text-decoration: underline; ">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><o:p></o:p></pre>
                                                    </blockquote>
                                                    <div style="margin:
                                                      0cm 0cm 0.0001pt;
                                                      font-size: 12pt;
                                                      font-family:
                                                      'Times New Roman',
                                                      serif; "><br>
                                                      <br>
                                                      <o:p></o:p></div>
                                                    <pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: 'Courier New'; ">-- <o:p></o:p></pre>
                                                    <pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: 'Courier New'; ">Michael Balzer * Paradestr. 8 * D-42107 Wuppertal<o:p></o:p></pre>
                                                    <pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: 'Courier New'; ">Fon 0202 / 272 2201 * Handy 0176 / 206 989 26<o:p></o:p></pre>
                                                  </div>
_______________________________________________<br>
                                                  OvmsDev mailing list<br>
                                                  <a
                                                    moz-do-not-send="true"
href="mailto:OvmsDev@lists.teslaclub.hk" style="color: purple;
                                                    text-decoration:
                                                    underline; ">OvmsDev@lists.teslaclub.hk</a><br>
                                                  <a
                                                    moz-do-not-send="true"
href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev" style="color:
                                                    purple;
                                                    text-decoration:
                                                    underline; ">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a></div>
                                              </blockquote>
                                            </div>
                                            <br>
                                          </div>
                                        </div>
_______________________________________________<br>
                                        OvmsDev mailing list<br>
                                        <a moz-do-not-send="true"
                                          href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a><br>
                                        <a moz-do-not-send="true"
                                          class="moz-txt-link-freetext"
href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br>
                                      </blockquote>
                                    </div>
                                    <br>
                                  </div>
                                </div>
                                <br>
                                <fieldset class="mimeAttachmentHeader"></fieldset>
                                <br>
                                <pre wrap="">_______________________________________________
OvmsDev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a>
</pre>
                              </blockquote>
                              <br>
                              <pre class="moz-signature" cols="72">-- 
Michael Balzer * Paradestr. 8 * D-42107 Wuppertal
Fon 0202 / 272 2201 * Handy 0176 / 206 989 26
</pre>
                            </div>
                          </blockquote>
                          <blockquote type="cite">
                            <div><dexter.vcf></div>
                          </blockquote>
                          <blockquote type="cite">
                            <div><span>_______________________________________________</span><br>
                              <span>OvmsDev mailing list</span><br>
                              <span><a moz-do-not-send="true"
                                  href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a></span><br>
                              <span><a moz-do-not-send="true"
                                  href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a></span><br>
                            </div>
                          </blockquote>
                          <br>
                          <fieldset class="mimeAttachmentHeader"></fieldset>
                          <br>
                          <pre wrap="">_______________________________________________
OvmsDev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a>
</pre>
                        </blockquote>
                        <br>
                        <pre class="moz-signature" cols="72">-- 
Michael Balzer * Paradestr. 8 * D-42107 Wuppertal
Fon 0202 / 272 2201 * Handy 0176 / 206 989 26
</pre>
                      </div>
                      <span><dexter.vcf></span>_______________________________________________<br>
                      OvmsDev mailing list<br>
                      <a moz-do-not-send="true"
                        href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a><br>
                      <a moz-do-not-send="true"
                        href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a>
<a class="moz-txt-link-freetext" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Michael Balzer * Paradestr. 8 * D-42107 Wuppertal
Fon 0202 / 272 2201 * Handy 0176 / 206 989 26
</pre>
  </body>
</html>