Professional Documents
Culture Documents
frames;
import android.content.Context;
import com.valeo.fastrunner.app.settings_data.Settings;
import com.valeo.fastrunner.app.utils.Log;
import com.valeo.fastrunner.app.utils.Utils;
import java.util.Arrays;
import java.util.HashMap;
/**
* Created by mbouazzaoui on 17/10/2016.
*/
/**
* Abstract class used as base class from Rx frames:
* it enables decoding incoming frames and setting and getting all signals.
class RxFrame(Frame):
def __init__(self):
self._TAG = RxFrame
GEAR_1_FACTOR = float()
GEAR_2_FACTOR = float()
GEAR_3_FACTOR = float()
GEAR_4_FACTOR = float()
GEAR_5_FACTOR = float()
GEAR_6_FACTOR = float()
GEAR_7_FACTOR = float()
MIN_TOLERANCE_GEAR_1_FACTOR = float()
MAX_TOLERANCE_GEAR_1_FACTOR = float()
MIN_TOLERANCE_GEAR_2_FACTOR = float()
MAX_TOLERANCE_GEAR_2_FACTOR = float()
# Correspond to the time in ms since Epoch from first car start or first app
connection to car
isFrameValid = bool()
RxFrame.TAG = RxFrame.__class__.getSimpleName()