Loading ccsrc/EncDec/LibItsMbr_Encdec.cc +0 −10 Original line number Diff line number Diff line Loading @@ -6,16 +6,6 @@ namespace LibItsMbr__EncdecDeclarations { /*BITSTRING fx__enc__CAM(const CAM__PDU__Descriptions::CAM &p_cam) { cam_pdu_codec asn_codec; BITSTRING b; int rc = asn_codec.encode(p_cam, b); if (rc) { return b; } return int2bit(0, 1); }*/ BITSTRING fx__enc__EtsiTs103759Data(const EtsiTs103759Core::EtsiTs103759Data &p_etsi_ts_103759_data) { loggers::get_instance().log_msg(">>> fx__enc__EtsiTs103759Data: ", p_etsi_ts_103759_data); Loading ccsrc/Externals/AtsRSUsSimulator_externals.cc +19 −0 Original line number Diff line number Diff line #include "ItsRSUsSimulator_Functions.hh" #include "loggers.hh" #include "geospacial.hh" namespace ItsRSUsSimulator__Functions { void fx__computePositionFromRotation(const INTEGER &p__refLatitude, const INTEGER &p__refLongitude, const INTEGER &p__cenLatitude, const INTEGER &p__cenLongitude, const INTEGER &p__rotation, INTEGER &p__latitude, INTEGER &p__longitude) { Loading @@ -8,4 +11,20 @@ namespace ItsRSUsSimulator__Functions { p__longitude = p__cenLongitude; } void fx__computeIncPosition(const INTEGER &p__refLatitude, const INTEGER &p__refLongitude, const FLOAT& p__dx, const FLOAT& p__dy, INTEGER &p__new__latitude, INTEGER &p__new__longitude) { // Assume that As long as p__dx and p__dy are small compared to the radius of the earth and reference position is not too close to the pole // http://www.edwilliams.org/avform147.htm#Intro loggers::get_instance().log_msg(">>> fx__computeIncPosition: p__refLatitude=", p__refLatitude); loggers::get_instance().log_msg(">>> fx__computeIncPosition: p__refLongitude=", p__refLongitude); //loggers::get_instance().log("fx__computeIncPosition: lat='%f'", static_cast<const int>(p__refLatitude) + (p__dy / R) * (180 / PI)); //loggers::get_instance().log("fx__computeIncPosition: long='%f'", static_cast<const int>(p__refLongitude) + (p__dx / R) * (180 / PI) / cos(static_cast<const int>(p__refLatitude) * PI / 180)); p__new__latitude = p__refLatitude + 1;//static_cast<const int>(static_cast<const int>(p__refLatitude) + (p__dy / R) * (180 / PI)); p__new__longitude = p__refLongitude + 1;//static_cast<const int>(static_cast<const int>(p__refLongitude) + (p__dx / R) * (180 / PI) / cos(static_cast<const int>(p__refLatitude) * PI / 180)); loggers::get_instance().log_msg("<<< fx__computeIncPosition: p__refLatitude=", p__new__latitude); loggers::get_instance().log_msg("<<< fx__computeIncPosition: p__refLongitude=", p__new__longitude); } } // namespace ItsRSUsSimulator__Functions ccsrc/Externals/LibItsSecurity_externals.cc +2225 −1668 File changed.Preview size limit exceeded, changes collapsed. Show changes ccsrc/Protocols/Mbr/etsi_ts103759_data_codec.cc +0 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,6 @@ int etsi_ts103759_data_codec::encode(const EtsiTs103759Core::EtsiTs103759Data &p_etsi_ts_103759_data, OCTETSTRING &p_data) { loggers::get_instance().log(">>> etsi_ts103759_data_codec::encode: %s", p_etsi_ts_103759_data.get_descriptor()->name); BITSTRING b; TTCN_EncDec::clear_error(); TTCN_Buffer buffer; p_etsi_ts_103759_data.encode(*p_etsi_ts_103759_data.get_descriptor(), buffer, TTCN_EncDec::CT_OER); Loading ccsrc/Protocols/Pki/etsi_ts102941_trust_lists_ctl_format.cc +0 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,6 @@ int etsi_ts102941_trust_lists_ctl_format::encode(const EtsiTs102941TrustLists::CtlFormat &p_ctl_format, OCTETSTRING &p_data) { loggers::get_instance().log(">>> etsi_ts102941_trust_lists_ctl_format::encode: %s", p_ctl_format.get_descriptor()->name); BITSTRING b; TTCN_EncDec::clear_error(); TTCN_Buffer buffer; p_ctl_format.encode(*p_ctl_format.get_descriptor(), buffer, TTCN_EncDec::CT_OER); Loading Loading
ccsrc/EncDec/LibItsMbr_Encdec.cc +0 −10 Original line number Diff line number Diff line Loading @@ -6,16 +6,6 @@ namespace LibItsMbr__EncdecDeclarations { /*BITSTRING fx__enc__CAM(const CAM__PDU__Descriptions::CAM &p_cam) { cam_pdu_codec asn_codec; BITSTRING b; int rc = asn_codec.encode(p_cam, b); if (rc) { return b; } return int2bit(0, 1); }*/ BITSTRING fx__enc__EtsiTs103759Data(const EtsiTs103759Core::EtsiTs103759Data &p_etsi_ts_103759_data) { loggers::get_instance().log_msg(">>> fx__enc__EtsiTs103759Data: ", p_etsi_ts_103759_data); Loading
ccsrc/Externals/AtsRSUsSimulator_externals.cc +19 −0 Original line number Diff line number Diff line #include "ItsRSUsSimulator_Functions.hh" #include "loggers.hh" #include "geospacial.hh" namespace ItsRSUsSimulator__Functions { void fx__computePositionFromRotation(const INTEGER &p__refLatitude, const INTEGER &p__refLongitude, const INTEGER &p__cenLatitude, const INTEGER &p__cenLongitude, const INTEGER &p__rotation, INTEGER &p__latitude, INTEGER &p__longitude) { Loading @@ -8,4 +11,20 @@ namespace ItsRSUsSimulator__Functions { p__longitude = p__cenLongitude; } void fx__computeIncPosition(const INTEGER &p__refLatitude, const INTEGER &p__refLongitude, const FLOAT& p__dx, const FLOAT& p__dy, INTEGER &p__new__latitude, INTEGER &p__new__longitude) { // Assume that As long as p__dx and p__dy are small compared to the radius of the earth and reference position is not too close to the pole // http://www.edwilliams.org/avform147.htm#Intro loggers::get_instance().log_msg(">>> fx__computeIncPosition: p__refLatitude=", p__refLatitude); loggers::get_instance().log_msg(">>> fx__computeIncPosition: p__refLongitude=", p__refLongitude); //loggers::get_instance().log("fx__computeIncPosition: lat='%f'", static_cast<const int>(p__refLatitude) + (p__dy / R) * (180 / PI)); //loggers::get_instance().log("fx__computeIncPosition: long='%f'", static_cast<const int>(p__refLongitude) + (p__dx / R) * (180 / PI) / cos(static_cast<const int>(p__refLatitude) * PI / 180)); p__new__latitude = p__refLatitude + 1;//static_cast<const int>(static_cast<const int>(p__refLatitude) + (p__dy / R) * (180 / PI)); p__new__longitude = p__refLongitude + 1;//static_cast<const int>(static_cast<const int>(p__refLongitude) + (p__dx / R) * (180 / PI) / cos(static_cast<const int>(p__refLatitude) * PI / 180)); loggers::get_instance().log_msg("<<< fx__computeIncPosition: p__refLatitude=", p__new__latitude); loggers::get_instance().log_msg("<<< fx__computeIncPosition: p__refLongitude=", p__new__longitude); } } // namespace ItsRSUsSimulator__Functions
ccsrc/Externals/LibItsSecurity_externals.cc +2225 −1668 File changed.Preview size limit exceeded, changes collapsed. Show changes
ccsrc/Protocols/Mbr/etsi_ts103759_data_codec.cc +0 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,6 @@ int etsi_ts103759_data_codec::encode(const EtsiTs103759Core::EtsiTs103759Data &p_etsi_ts_103759_data, OCTETSTRING &p_data) { loggers::get_instance().log(">>> etsi_ts103759_data_codec::encode: %s", p_etsi_ts_103759_data.get_descriptor()->name); BITSTRING b; TTCN_EncDec::clear_error(); TTCN_Buffer buffer; p_etsi_ts_103759_data.encode(*p_etsi_ts_103759_data.get_descriptor(), buffer, TTCN_EncDec::CT_OER); Loading
ccsrc/Protocols/Pki/etsi_ts102941_trust_lists_ctl_format.cc +0 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,6 @@ int etsi_ts102941_trust_lists_ctl_format::encode(const EtsiTs102941TrustLists::CtlFormat &p_ctl_format, OCTETSTRING &p_data) { loggers::get_instance().log(">>> etsi_ts102941_trust_lists_ctl_format::encode: %s", p_ctl_format.get_descriptor()->name); BITSTRING b; TTCN_EncDec::clear_error(); TTCN_Buffer buffer; p_ctl_format.encode(*p_ctl_format.get_descriptor(), buffer, TTCN_EncDec::CT_OER); Loading