Merge remote-tracking branch 'origin/main' into str_set_time
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good

This commit is contained in:
Robin Müller 2023-07-13 13:26:41 +02:00
commit cc7e39c484
Signed by: muellerr
GPG Key ID: 407F9B00F858F270
3 changed files with 9 additions and 5 deletions

View File

@ -16,6 +16,10 @@ will consitute of a breaking change warranting a new major release:
# [unreleased]
# [v6.1.0] 2023-07-13
- `eive-tmtc`: v5.2.0
## Changed
- TCS: Remove OBC IF board thermal module, which is exactly identical to OBC module and therefore

View File

@ -10,7 +10,7 @@
cmake_minimum_required(VERSION 3.13)
set(OBSW_VERSION_MAJOR 6)
set(OBSW_VERSION_MINOR 0)
set(OBSW_VERSION_MINOR 1)
set(OBSW_VERSION_REVISION 0)
# set(CMAKE_VERBOSE TRUE)

View File

@ -470,12 +470,12 @@ ReturnValue_t StarTrackerHandler::buildCommandFromCommand(DeviceCommandId_t devi
SetTimeActionRequest setTimeRequest{};
timeval tv;
Clock::getClock(&tv);
setTimeRequest.unixTime = (tv.tv_sec * 1000) + (tv.tv_usec / 1000);
setTimeRequest.unixTime = (tv.tv_sec * 1000000) + (tv.tv_usec);
arc_pack_settime_action_req(&setTimeRequest, commandBuffer, &rawPacketLen);
//size_t serLen = 0;
size_t serLen = 0;
// Time in milliseconds. Manual serialization because arcsec API ignores endianness.
//SerializeAdapter::serialize(&setTimeRequest.unixTime, commandBuffer + 2, &serLen,
// sizeof(commandBuffer) - 2, SerializeIF::Endianness::NETWORK);
SerializeAdapter::serialize(&setTimeRequest.unixTime, commandBuffer + 2, &serLen,
sizeof(commandBuffer) - 2, SerializeIF::Endianness::LITTLE);
rawPacket = commandBuffer;
return returnvalue::OK;
}