GasUp
Copyright (c) 1997 W. Lawrence Hatt (Ver 0.8)
Contents
- Introduction
Installation
Running
Cautions
Rights
1. Introduction
- One of my enduring frustrations is my inability to move on from the MPG concept in
- keeping track of my gas economy. I've just never been comfortable with the metric unit concept
- of "MPG" expressed as "litres/100km". Since we buy gas here (Ottawa, Canada) in litres and
- the odometers are in km, I'm always struggling to come up with "real mpg"...and then of
- course there are the trips to US etc etc.
In the US you do not have this problem, that is until you travel abroad.
This little basic program for the Pilot resolves all that by allowing you to input choice of distance unit
(km or miles), and choice of volume unit (Imp Gal., US Gal, or Litres), and then read off two versions
of MPG or litres/100km. The program runs under the Chipmunk Basic interpreter, cbasPad.
2. Installation
- Install the excellent Chipmunk Basic interpreter, cbasPad.
- Import the BASIC source file into your Pilot Memopad.
- In the PILOT use the cut-and-paste Pilot feature to transfer the BASIC source file into
cbasPad.
- Do this by opening the Memopad, selecting the BASIC file for editing,
- Use the "Select All" option follow by "Copy".
- Now, run cbasPad.
- In the cbasPad, select "NEW"
- Use the "PASTE" function to get the program into the cbasPad interpreter
- If you get an error that the buffer size is exceeded, you can split the cut-paste operation into
two steps.
3. Running
- To run GasUp, after you have selected cbasPad you will see a summary of all the BASIC
- programs that you can run; GasUp should be on the bottom. Select it and press "EXEC" to
- run it.
When GasUp is running, you will see a screen similar to the following :
kms 1.0.............. |
miles 0.62............. |
litres 1.0.............. |
imp gal 0.21997.......... |
us gal 0.26417.......... |
--------0................ |
MPG US 2.3469735........ |
- MPG CAN 2.8185662.........
|
- L/100K 100.0...........
|
- "block" and enter the gasoline quantity opposite one of the vol units; similarly enter the
- corresponding miles or km traveled since last GasUp. Press A or OK and read the
- corresponding MPG values.
4. Cautions
- Don't enter more than one entry in the distance category and one in the volume category.
- Results are unpredictable if units are revised and execute successively without restarting.
- Best to restart the program with each new data set in this version (a later version should
- correct this).
- Once in a while the GasUp program starts with a "soft" reset. I'm not sure if this is caused
- by the program or the cbasPad intepreter; however no data is lost and cbasPad can be just
- restarted and then GasUp re-executed.
5. Rights
- This program is based on routines in the excellent buc1 1.0 set of conversion utilities for
- the Pilot written by Tan Kok Mun and used by permission.
- (C) W. Lawrence Hatt 1997. The program is Freeware and may not be resold. If the code
- is modified for use in another program W. Lawrence Hatt (hattwl@canadamail.com)and Tan
- Kok Mun (kokmun@pacific.net.sg)should be advised and credited.
If you find this program useful or have any comments please send a postcard or email.
- W. Lawrence (Larry) Hatt
- 25 Wellfleet Cres
- Nepean, Ontario, K2J 2Y3
- Canada
- hattwl@canadamail.com
02 Jan 1997