package models

import "time"

// Sensor has common fields for any sensors
type Sensor struct {
	Name    string    `json:"name"`
	Type    string    `json:"type"`
	GenTime time.Time `json:"gen_time"`
}

// GyroSensor produces x-y-z axes angle velocity values
type GyroSensor struct {
	Sensor
	AngleVelocityX float32 `json:"x_axis_angle_velocity"`
	AngleVelocityY float32 `json:"y_axis_angle_velocity"`
	AngleVelocityZ float32 `json:"z_axis_angle_velocity"`
}

// AccelSensor produces x-y-z axes gravity acceleration values
type AccelSensor struct {
	Sensor
	GravityAccX float32 `json:"x_axis_gravity_acceleration"`
	GravityAccY float32 `json:"y_axis_gravity_acceleration"`
	GravityAccZ float32 `json:"z_axis_grativy_acceleration"`
}

// TempSensor produces temperature and humidity values
type TempSensor struct {
	Sensor
	Temperature float32 `json:"temperature"`
	Humidity    float32 `json:"humidity"`
}

package models

import "time"

type Sensor struct {
	Name    string    `json:"name"`
	Type    string    `json:"type"`
	GenTime time.Time `json:"gen_time"`
}

// Struct for Gyro Sensor
type GyroSensor struct {
	Sensor
	AngleVelocityX float32 `json:"x_axis_angle_velocity"`
	AngleVelocityY float32 `json:"y_axis_angle_velocity"`
	AngleVelocityZ float32 `json:"z_axis_angle_velocity"`
}

// Struct for Accelerometer Sensor
type AccelSensor struct {
	Sensor
	GravityAccX float32 `json:"x_axis_gravity_acceleration"`
	GravityAccY float32 `json:"y_axis_gravity_acceleration"`
	GravityAccZ float32 `json:"z_axis_grativy_acceleration"`
}

// Struct for Temperature Sensor
type TempSensor struct {
	Sensor
	Temperature float32 `json:"temperature"`
	Humidity    float32 `json:"humidity"`
}

--- 
+++ 
@@ -2,13 +2,14 @@
 
 import "time"
 
+// Sensor has common fields for any sensors
 type Sensor struct {
 	Name    string    `json:"name"`
 	Type    string    `json:"type"`
 	GenTime time.Time `json:"gen_time"`
 }
 
-// Struct for Gyro Sensor
+// GyroSensor produces x-y-z axes angle velocity values
 type GyroSensor struct {
 	Sensor
 	AngleVelocityX float32 `json:"x_axis_angle_velocity"`
@@ -16,7 +17,7 @@
 	AngleVelocityZ float32 `json:"z_axis_angle_velocity"`
 }
 
-// Struct for Accelerometer Sensor
+// AccelSensor produces x-y-z axes gravity acceleration values
 type AccelSensor struct {
 	Sensor
 	GravityAccX float32 `json:"x_axis_gravity_acceleration"`
@@ -24,7 +25,7 @@
 	GravityAccZ float32 `json:"z_axis_grativy_acceleration"`
 }
 
-// Struct for Temperature Sensor
+// TempSensor produces temperature and humidity values
 type TempSensor struct {
 	Sensor
 	Temperature float32 `json:"temperature"`
Rewrite the comments for sensor structs
