package com.iforce2d.balloontrackerv2;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class TabFragment2 extends Fragment {

    public TextView display_newestTime = null;

    //public TextView display_ds1 = null;
    //public TextView display_ds2 = null;
    //public TextView display_MS5611_t = null;
    public TextView display_BMP280_t = null;
    //public TextView display_Si7021_t = null;
    //public TextView display_MPU6050_t = null;
    //public TextView display_avginsidetemp = null;

    //public TextView display_MS5611_p = null;
    public TextView display_BMP280_p = null;
    public TextView display_avgaltitude = null;

    //public TextView display_Si7021_h = null;

    //public TextView display_MPU6050_xyz = null;
    //public TextView display_MPU6050_mag = null;

    public TextView display_battery = null;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.tab_fragment2, container, false);

        display_newestTime = (TextView) view.findViewById(R.id.newest_timestamp);

        //display_ds1 = (TextView) view.findViewById(R.id.ds1);
        //display_ds2 = (TextView) view.findViewById(R.id.ds2);

        //display_MS5611_t = (TextView) view.findViewById(R.id.MS5611_t);
        display_BMP280_t = (TextView) view.findViewById(R.id.BMP280_t);
        //display_Si7021_t = (TextView) view.findViewById(R.id.Si7021_t);
        //display_MPU6050_t = (TextView) view.findViewById(R.id.MPU6050_t);
        //display_avginsidetemp = (TextView) view.findViewById(R.id.avginsidetemp);

        //display_MS5611_p = (TextView) view.findViewById(R.id.MS5611_p);
        display_BMP280_p = (TextView) view.findViewById(R.id.BMP280_p);
        display_avgaltitude = (TextView) view.findViewById(R.id.avgaltitude);

        //display_Si7021_h = (TextView) view.findViewById(R.id.Si7021_h);

        //display_MPU6050_xyz = (TextView) view.findViewById(R.id.MPU6050_xyz);
        //display_MPU6050_mag = (TextView) view.findViewById(R.id.MPU6050_mag);

        display_battery = (TextView) view.findViewById(R.id.battery);

        return view;
    }
}
