JSON Formatting in the RTTV - PSASCapstone2013/rttv GitHub Wiki
The following JSON objects are available to send to the front end in the RTTV:
-
GPS {
'fieldID': 4 bytes,
'timestamp': 6 bytes,
'AgeOfDiff': 1byte,
'NumOfSats': 1byte,
'GPSWeek': 2byte,
'GPSTimeOfWeek': double,
'Latitude': double,
'Longitude': double,
'Height': float,
'VNorth': float,
'VEast': float,
'Vup': float,
'StdDevResid': float,
'NavMode': 2 bytes,
'ExtendedAgeOfDiff': 2 bytes
}
-
ADIS {
'fieldID': 4 bytes,
'timestamp': 6 bytes,
'PowerSupply': 2 bytes, volts (V)
'GyroscopeX': 2 bytes, degrees per second (deg/sec)
'GyroscopeY': 2 bytes, degrees per second (deg/sec)
'GyroscopeZ': 2 bytes, degrees per second (deg/sec)
'GyroscopeMagn': float, degrees per second (deg/sec)
'AccelerometerX': 2 bytes, meters per second squared (m/s^2)
'AccelerometerY': 2 bytes, meters per second squared (m/s^2)
'AccelerometerZ': 2 bytes, meters per second squared (m/s^2)
'AccelerometerMagn': float, meters per second squared (m/s^2)
'MagnetometerX': 2 bytes, teslas (T)
'MagnetometerY': 2 bytes, teslas (T)
'MagnetometerZ': 2 bytes, teslas (T)
'MagnetometerMagn': float, teslas (T)
'Temperature': 2 bytes, Kelvin (K)
'AuxiliaryADC': 2 bytes volts (V) }
-
ERRO {
'fieldID',
'timestamp',
'message': string
}
-
MESG {
'fieldID',
'timestamp',
'message': string
}
-
PACKET ANALYZE {
'fieldID': 'Analyze',
'PacketReceived': number of packet received in a specific time interval
'latestPacketReceived': timestamp of the latest packet received
'PacketLost':[]
}
-
PACKET LOST {
'From' : time when we start loosing packets
'To' : time when we receive a new packet
'PacketLost': Number of packets lost
}