STR time #611
@ -51,7 +51,7 @@ ReturnValue_t StrComHandler::performOperation(uint8_t operationCode) {
|
|||||||
switch (state) {
|
switch (state) {
|
||||||
case InternalState::POLL_ONE_REPLY: {
|
case InternalState::POLL_ONE_REPLY: {
|
||||||
// Stopwatch watch;
|
// Stopwatch watch;
|
||||||
replyTimeout.setTimeout(200);
|
replyTimeout.setTimeout(400);
|
||||||
replyResult = readOneReply(static_cast<uint32_t>(state));
|
replyResult = readOneReply(static_cast<uint32_t>(state));
|
||||||
{
|
{
|
||||||
MutexGuard mg(lock);
|
MutexGuard mg(lock);
|
||||||
|
@ -471,10 +471,10 @@ ReturnValue_t StarTrackerHandler::buildCommandFromCommand(DeviceCommandId_t devi
|
|||||||
Clock::getClock(&tv);
|
Clock::getClock(&tv);
|
||||||
setTimeRequest.unixTime = (tv.tv_sec * 1000) + (tv.tv_usec / 1000);
|
setTimeRequest.unixTime = (tv.tv_sec * 1000) + (tv.tv_usec / 1000);
|
||||||
arc_pack_settime_action_req(&setTimeRequest, commandBuffer, &rawPacketLen);
|
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.
|
// Time in milliseconds. Manual serialization because arcsec API ignores endianness.
|
||||||
SerializeAdapter::serialize(&setTimeRequest.unixTime, commandBuffer + 2, &serLen,
|
//SerializeAdapter::serialize(&setTimeRequest.unixTime, commandBuffer + 2, &serLen,
|
||||||
sizeof(commandBuffer) - 2, SerializeIF::Endianness::NETWORK);
|
// sizeof(commandBuffer) - 2, SerializeIF::Endianness::NETWORK);
|
||||||
rawPacket = commandBuffer;
|
rawPacket = commandBuffer;
|
||||||
return returnvalue::OK;
|
return returnvalue::OK;
|
||||||
}
|
}
|
||||||
@ -890,7 +890,7 @@ ReturnValue_t StarTrackerHandler::scanForReply(const uint8_t* start, size_t rema
|
|||||||
switch (startracker::getReplyFrameType(start)) {
|
switch (startracker::getReplyFrameType(start)) {
|
||||||
case TMTC_ACTIONREPLY: {
|
case TMTC_ACTIONREPLY: {
|
||||||
*foundLen = remainingSize;
|
*foundLen = remainingSize;
|
||||||
arrayprinter::print(start, remainingSize);
|
// arrayprinter::print(start, remainingSize);
|
||||||
return scanForActionReply(startracker::getId(start), foundId);
|
return scanForActionReply(startracker::getId(start), foundId);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user