public NavStsMsg(JSONNode msg) { _header = new HeaderMsg(msg["header"]); _global_position = new DecimalLatLonMsg(msg["global_position"]); _origin = new DecimalLatLonMsg(msg["origin"]); _position = new NEDMsg(msg["position"]); _altitude = new Float32Msg(msg["altitude"]); _body_velocity = new PointMsg(msg["body_velocity"]); _orientation = new RPYMsg(msg["orientation"]); _orientation_rate = new RPYMsg(msg["orientation_rate"]); _position_variance = new NEDMsg(msg["position_variance"]); _orientation_variance = new RPYMsg(msg["orientation_variance"]); _status = new UInt8Msg(msg["status"]); }
public NavStsMsg(JSONNode msg) { //Debug.Log("NavStsMsg with " + msg.ToString()); _header = new HeaderMsg(msg["header"]); _global_position = new DecimalLatLonMsg(msg["global_position"]); _origin = new DecimalLatLonMsg(msg["origin"]); _position = new NEDMsg(msg["position"]); _altitude = new Float32Msg(msg["altitude"]); _body_velocity = new PointMsg(msg["body_velocity"]); _orientation = new RPYMsg(msg["orientation"]); _orientation_rate = new RPYMsg(msg["orientation_rate"]); _position_variance = new NEDMsg(msg["position_variance"]); _orientation_variance = new RPYMsg(msg["orientation_variance"]); _status = new UInt8Msg(msg["status"]); //Debug.Log("NavStsMsg done and it looks like " + this.ToString()); }
public NavStsMsg(HeaderMsg header, DecimalLatLonMsg global_position, DecimalLatLonMsg origin, NEDMsg position, Float32Msg altitude, PointMsg body_velocity, RPYMsg orientation, RPYMsg orientation_rate, NEDMsg position_variance, RPYMsg orientation_variance, UInt8Msg status) { _header = header; _global_position = global_position; _origin = origin; _position = position; _altitude = altitude; _body_velocity = body_velocity; _orientation = orientation; _orientation_rate = orientation_rate; _position_variance = position_variance; _orientation_variance = orientation_variance; _status = status; }