STR extensions #798
@ -660,7 +660,7 @@ ReturnValue_t StarTrackerHandler::buildCommandFromCommand(DeviceCommandId_t devi
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
case (startracker::REQ_MATCHED_CENTROIDS): {
|
case (startracker::REQ_MATCHED_CENTROIDS): {
|
||||||
result = prepareRequestMatchedCentroids();
|
result = prepareRequestMatchedCentroidsTm();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
case (startracker::REQ_BLOB): {
|
case (startracker::REQ_BLOB): {
|
||||||
@ -793,6 +793,8 @@ void StarTrackerHandler::fillCommandAndReplyMap() {
|
|||||||
startracker::MAX_FRAME_SIZE * 2 + 2);
|
startracker::MAX_FRAME_SIZE * 2 + 2);
|
||||||
this->insertInCommandAndReplyMap(startracker::REQ_DEBUG_CAMERA, 3, &debugCameraSet,
|
this->insertInCommandAndReplyMap(startracker::REQ_DEBUG_CAMERA, 3, &debugCameraSet,
|
||||||
startracker::MAX_FRAME_SIZE * 2 + 2);
|
startracker::MAX_FRAME_SIZE * 2 + 2);
|
||||||
|
this->insertInCommandAndReplyMap(startracker::REQ_AUTO_BLOB, 3, &autoBlobSet,
|
||||||
|
startracker::MAX_FRAME_SIZE * 2 + 2);
|
||||||
this->insertInCommandAndReplyMap(startracker::REQ_MATCHED_CENTROIDS, 3, &matchedCentroidsSet,
|
this->insertInCommandAndReplyMap(startracker::REQ_MATCHED_CENTROIDS, 3, &matchedCentroidsSet,
|
||||||
startracker::MAX_FRAME_SIZE * 2 + 2);
|
startracker::MAX_FRAME_SIZE * 2 + 2);
|
||||||
this->insertInCommandAndReplyMap(startracker::REQ_BLOB, 3, &blobSet,
|
this->insertInCommandAndReplyMap(startracker::REQ_BLOB, 3, &blobSet,
|
||||||
@ -1445,6 +1447,9 @@ ReturnValue_t StarTrackerHandler::initializeLocalDataPool(localpool::DataPool& l
|
|||||||
localDataPoolMap.emplace(startracker::DEBUG_CAMERA_TEST, new PoolEntry<uint32_t>({0}));
|
localDataPoolMap.emplace(startracker::DEBUG_CAMERA_TEST, new PoolEntry<uint32_t>({0}));
|
||||||
|
|
||||||
localDataPoolMap.emplace(startracker::CHKSUM, new PoolEntry<uint32_t>({0}));
|
localDataPoolMap.emplace(startracker::CHKSUM, new PoolEntry<uint32_t>({0}));
|
||||||
|
|
||||||
|
localDataPoolMap.emplace(startracker::AUTO_BLOB_THRESHOLD, new PoolEntry<float>());
|
||||||
|
|
||||||
localDataPoolMap.emplace(startracker::PoolIds::NUM_MATCHED_CENTROIDS, new PoolEntry<uint8_t>());
|
localDataPoolMap.emplace(startracker::PoolIds::NUM_MATCHED_CENTROIDS, new PoolEntry<uint8_t>());
|
||||||
localDataPoolMap.emplace(startracker::PoolIds::MATCHED_CENTROIDS_STAR_IDS,
|
localDataPoolMap.emplace(startracker::PoolIds::MATCHED_CENTROIDS_STAR_IDS,
|
||||||
new PoolEntry<uint32_t>(16));
|
new PoolEntry<uint32_t>(16));
|
||||||
@ -1498,6 +1503,8 @@ ReturnValue_t StarTrackerHandler::initializeLocalDataPool(localpool::DataPool& l
|
|||||||
subdp::RegularHkPeriodicParams(histogramSet.getSid(), false, 10.0));
|
subdp::RegularHkPeriodicParams(histogramSet.getSid(), false, 10.0));
|
||||||
poolManager.subscribeForRegularPeriodicPacket(
|
poolManager.subscribeForRegularPeriodicPacket(
|
||||||
subdp::RegularHkPeriodicParams(lisaSet.getSid(), false, 10.0));
|
subdp::RegularHkPeriodicParams(lisaSet.getSid(), false, 10.0));
|
||||||
|
poolManager.subscribeForRegularPeriodicPacket(
|
||||||
|
subdp::RegularHkPeriodicParams(autoBlobSet.getSid(), false, 10.0));
|
||||||
poolManager.subscribeForRegularPeriodicPacket(
|
poolManager.subscribeForRegularPeriodicPacket(
|
||||||
subdp::RegularHkPeriodicParams(matchedCentroidsSet.getSid(), false, 10.0));
|
subdp::RegularHkPeriodicParams(matchedCentroidsSet.getSid(), false, 10.0));
|
||||||
poolManager.subscribeForRegularPeriodicPacket(
|
poolManager.subscribeForRegularPeriodicPacket(
|
||||||
@ -1925,7 +1932,15 @@ void StarTrackerHandler::prepareHistogramRequest() {
|
|||||||
rawPacketLen = length;
|
rawPacketLen = length;
|
||||||
}
|
}
|
||||||
|
|
||||||
ReturnValue_t StarTrackerHandler::prepareRequestMatchedCentroids() {
|
ReturnValue_t StarTrackerHandler::prepareRequestAutoBlobTm() {
|
||||||
|
uint32_t length = 0;
|
||||||
|
arc_tm_pack_autoblob_req(commandBuffer, &length);
|
||||||
|
rawPacket = commandBuffer;
|
||||||
|
rawPacketLen = length;
|
||||||
|
return returnvalue::OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
ReturnValue_t StarTrackerHandler::prepareRequestMatchedCentroidsTm() {
|
||||||
uint32_t length = 0;
|
uint32_t length = 0;
|
||||||
arc_tm_pack_matchedcentroids_req(commandBuffer, &length);
|
arc_tm_pack_matchedcentroids_req(commandBuffer, &length);
|
||||||
rawPacket = commandBuffer;
|
rawPacket = commandBuffer;
|
||||||
|
@ -454,7 +454,8 @@ class StarTrackerHandler : public DeviceHandlerBase {
|
|||||||
ReturnValue_t prepareRequestCentroidingParams();
|
ReturnValue_t prepareRequestCentroidingParams();
|
||||||
ReturnValue_t prepareRequestLisaParams();
|
ReturnValue_t prepareRequestLisaParams();
|
||||||
ReturnValue_t prepareRequestMatchingParams();
|
ReturnValue_t prepareRequestMatchingParams();
|
||||||
ReturnValue_t prepareRequestMatchedCentroids();
|
ReturnValue_t prepareRequestAutoBlobTm();
|
||||||
|
ReturnValue_t prepareRequestMatchedCentroidsTm();
|
||||||
ReturnValue_t prepareRequestBlobTm();
|
ReturnValue_t prepareRequestBlobTm();
|
||||||
ReturnValue_t prepareRequestBlobsTm();
|
ReturnValue_t prepareRequestBlobsTm();
|
||||||
ReturnValue_t prepareRequestCentroidTm();
|
ReturnValue_t prepareRequestCentroidTm();
|
||||||
|
Loading…
Reference in New Issue
Block a user