private void send_momentum_value()
        {
            FUELTRIPJSONFormat fueltrip_json = new FUELTRIPJSONFormat();

            fueltrip_json.moment_gasmilage = fuelTripCalc.MomentaryTripPerFuel;
            fueltrip_json.total_gas        = fuelTripCalc.TotalFuelConsumption;
            fueltrip_json.total_trip       = fuelTripCalc.TotalTrip;
            fueltrip_json.total_gasmilage  = fuelTripCalc.TotalTripPerFuel;

            broadcast_websocket_msg(fueltrip_json.Serialize());
        }
Exemplo n.º 2
0
        private void send_momentum_value()
        {
            FUELTRIPJSONFormat fueltrip_json = new FUELTRIPJSONFormat();

            fueltrip_json.moment_gasmilage = _nenpi_trip_calc.Momentary_Gas_Milage;
            fueltrip_json.total_gas        = _nenpi_trip_calc.Total_Gas_Consumption;
            fueltrip_json.total_trip       = _nenpi_trip_calc.Total_Trip;
            fueltrip_json.total_gasmilage  = _nenpi_trip_calc.Total_Gas_Milage;


            broadcast_websocket_msg(fueltrip_json.Serialize());
        }