STR time #611

Merged
muellerr merged 25 commits from str_set_time into main 2023-07-14 12:43:21 +02:00
2 changed files with 5 additions and 5 deletions
Showing only changes of commit 608eecb091 - Show all commits

View File

@ -51,7 +51,7 @@ ReturnValue_t StrComHandler::performOperation(uint8_t operationCode) {
switch (state) {
case InternalState::POLL_ONE_REPLY: {
// Stopwatch watch;
replyTimeout.setTimeout(200);
replyTimeout.setTimeout(400);
replyResult = readOneReply(static_cast<uint32_t>(state));
{
MutexGuard mg(lock);

View File

@ -471,10 +471,10 @@ ReturnValue_t StarTrackerHandler::buildCommandFromCommand(DeviceCommandId_t devi
Clock::getClock(&tv);
setTimeRequest.unixTime = (tv.tv_sec * 1000) + (tv.tv_usec / 1000);
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::NETWORK);
rawPacket = commandBuffer;
return returnvalue::OK;
}
@ -890,7 +890,7 @@ ReturnValue_t StarTrackerHandler::scanForReply(const uint8_t* start, size_t rema
switch (startracker::getReplyFrameType(start)) {
case TMTC_ACTIONREPLY: {
*foundLen = remainingSize;
arrayprinter::print(start, remainingSize);
// arrayprinter::print(start, remainingSize);
return scanForActionReply(startracker::getId(start), foundId);
break;
}