add max allowed values and change screen layout for android tablet application
smrtcar 1.5
g-force indicator
change 1:
please change x and y axis. x is the horizontal axis and y is the vertical. because the tablet is in horizontal position it is showing wrong. present x as y and y as x
change 2:
please change as follows
calibrate g-force indicator for 2-3 seconds when app is launched. during these 2-3 seconds measure g-force and calculate average for each value (x y z abs). the calculated value is the new 0
so when I open the g-force graph when the car is standing I should see all lines as 0.
during the trip, g-force changes should be calculated based on this new 0
example:
I start the app
g-force calibration starts for 2-3 seconds
average values are:
x=0.9
y=0.2
z=0.03
abs=0.0054
then the 0 for x should be 0.9, for y 0.2 and so on. during the trip you are showing the relative value to the new 0.
OK?
trip screen 2
create another trip screen with the following layout. This screen will be accessed by swiping to the right from current trip screen
I want to copy the exact design I have here. If we need your designer to copy it – let me know. I can send him a psd file
1 Top bar:
Engine on – same as today. icon red when engine is off, green when on
Smrtcar logo in the center. I can provide image if you want. let me know the dimensions
OBD – green is connected, red not connected
2
3
4 Trip bar:
Driver name – same as today
Start time – same as today
Total miles for this trip – same as today
5 Fuel economy box:
Read fuel consumption every ½ second
For every 2 seconds window, present lowest MPG reading here for 2 seconds
6 Read engine load from OBD every ½ seconds
For every 2 seconds window present MAX value here for 2 seconds
7 Read G forces as you read today.
For every 2 seconds window present max value (based on calibration we did) of x y or z (without abs) for 2 seconds
8 Present max MPG (lowest number) for the trip here. update only with new max
9 Present max engine load for the trip here. update only with new max
10 same
I am going to create a table in the database called driving_limits. The table is going to contain values that will set a warning to the driver during the trip. You need to sync this data with the tablet during the regular sync
for example:
table: driving_limits
max average direction
speed 65 50 1
fuel_econ 10 15 -1
Engine_load 78 50 1
g_x 0.5 1
g_y 0.7 1
g_z 0.6 1
trip_time 1564 1
engine_time 1230 1
max – this is a value that should not be passed during the trip. Whenever one of these values is passed I want to present a message to the driver (see below)
Average – same thing. if the average value for this trip is above / or below this value present a message (I will provide all messages text below)
Direction – if=-1 then lower value is not good. for example if fuel consumption goes below 10 (max) or 15 average then present a message. if=1 then present a message if going over max or average
Messages texts:
(for all messages - Leave message up for 5 seconds and close. if another message has to be presented while first message is up cancel the second one)
• Speed max: Speed exceeds max allowed speed of [value from db]
• Speed avg: Average speed exceeds allowed avg speed of [value]
• fuel econ max: fuel consumption exceeds max allowed value of [value from db]
• fuel econ avg: Average fuel consumption exceeds allowed value of []
• g-forces max: g-force (x/y/z) exceeds max allowed value of
• no need to calculate average g-force. there is no meaning to it
• trip time max: your trip time exceeds max duration of [hh:mm]
• engine time: engine time exceeds max value of [hh:mm]