diff options
Diffstat (limited to 'positioning/server/src/Sensor/VehicleSens_Did_PulseTime.cpp')
-rw-r--r-- | positioning/server/src/Sensor/VehicleSens_Did_PulseTime.cpp | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/positioning/server/src/Sensor/VehicleSens_Did_PulseTime.cpp b/positioning/server/src/Sensor/VehicleSens_Did_PulseTime.cpp index b6a834a7..cb80e6f9 100644 --- a/positioning/server/src/Sensor/VehicleSens_Did_PulseTime.cpp +++ b/positioning/server/src/Sensor/VehicleSens_Did_PulseTime.cpp @@ -1,5 +1,5 @@ /* - * @copyright Copyright (c) 2016-2019 TOYOTA MOTOR CORPORATION. + * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -65,25 +65,25 @@ void VehicleSensGetPulseTime(VEHICLESENS_DATA_MASTER *pst_data, u_int8 uc_get_me * @param[in] *pst_data: Pointer to the data master acquisition destination * @param[in] uc_get_method: Acquisition method(Direct Line or CAN) */ -//void VehicleSensGetPulseTimeExt(VEHICLESENS_DATA_MASTER_EXT *pst_data, u_int8 uc_get_method) { -// switch (uc_get_method) { // LCOV_EXCL_BR_LINE 6:VEHICLESENS_GETMETHOD_CAN cannot to pass in -// case VEHICLESENS_GETMETHOD_CAN: -// { -// /* When acquiring from CAN data */ -// AGL_ASSERT_NOT_TESTED(); // LCOV_EXCL_LINE 200: test assert -// break; // LCOV_EXCL_LINE 8: dead code -// } -// -// case VEHICLESENS_GETMETHOD_LINE: -// { -// /* To acquire from LineSensor */ -// VehicleSensGetPulseTimeExtl(pst_data); -// break; -// } -// default: -// break; -// } -//} +void VehicleSensGetPulseTimeExt(VEHICLESENS_DATA_MASTER_EXT *pst_data, u_int8 uc_get_method) { + switch (uc_get_method) { // LCOV_EXCL_BR_LINE 6:VEHICLESENS_GETMETHOD_CAN cannot to pass in + case VEHICLESENS_GETMETHOD_CAN: + { + /* When acquiring from CAN data */ + AGL_ASSERT_NOT_TESTED(); // LCOV_EXCL_LINE 200: test assert + break; // LCOV_EXCL_LINE 8: dead code + } + + case VEHICLESENS_GETMETHOD_LINE: + { + /* To acquire from LineSensor */ + VehicleSensGetPulseTimeExtl(pst_data); + break; + } + default: + break; + } +} /** * @brief @@ -95,21 +95,21 @@ void VehicleSensGetPulseTime(VEHICLESENS_DATA_MASTER *pst_data, u_int8 uc_get_me * @param[in] uc_get_method: Acquisition method(Direct Line or CAN) */ -//void VehicleSensGetPulseTimeFst(VEHICLESENS_DATA_MASTER_FST *pst_data, u_int8 uc_get_method) { // LCOV_EXCL_START 8: dead code // NOLINT(whitespace/line_length) -// AGL_ASSERT_NOT_TESTED(); // LCOV_EXCL_LINE 200: test assert -// switch (uc_get_method) { -// case VEHICLESENS_GETMETHOD_CAN: -// { -// /* When acquiring from CAN data */ -// break; -// } -// case VEHICLESENS_GETMETHOD_LINE: -// { -// /* To acquire from LineSensor */ -// break; -// } -// default: -// break; -// } -//} +void VehicleSensGetPulseTimeFst(VEHICLESENS_DATA_MASTER_FST *pst_data, u_int8 uc_get_method) { // LCOV_EXCL_START 8: dead code // NOLINT(whitespace/line_length) + AGL_ASSERT_NOT_TESTED(); // LCOV_EXCL_LINE 200: test assert + switch (uc_get_method) { + case VEHICLESENS_GETMETHOD_CAN: + { + /* When acquiring from CAN data */ + break; + } + case VEHICLESENS_GETMETHOD_LINE: + { + /* To acquire from LineSensor */ + break; + } + default: + break; + } +} // LCOV_EXCL_STOP |