mode snapshot command
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
This commit is contained in:
parent
0bc7ddf38e
commit
58f29e16c5
@ -34,6 +34,7 @@ static const DeviceCommandId_t RELEASE_UART_TX = 21;
|
|||||||
static const DeviceCommandId_t TC_CAM_TAKE_PIC = 22;
|
static const DeviceCommandId_t TC_CAM_TAKE_PIC = 22;
|
||||||
static const DeviceCommandId_t TC_SIMPLEX_SEND_FILE = 23;
|
static const DeviceCommandId_t TC_SIMPLEX_SEND_FILE = 23;
|
||||||
static const DeviceCommandId_t TC_DOWNLINK_DATA_MODULATE = 24;
|
static const DeviceCommandId_t TC_DOWNLINK_DATA_MODULATE = 24;
|
||||||
|
static const DeviceCommandId_t TC_MODE_SNAPSHOT = 25;
|
||||||
|
|
||||||
// Will reset the sequence count of the OBSW
|
// Will reset the sequence count of the OBSW
|
||||||
static const DeviceCommandId_t OBSW_RESET_SEQ_COUNT = 50;
|
static const DeviceCommandId_t OBSW_RESET_SEQ_COUNT = 50;
|
||||||
@ -653,6 +654,15 @@ class TcModeIdle : public TcBase {
|
|||||||
: TcBase(params, apid::TC_MODE_IDLE, sequenceCount) {}
|
: TcBase(params, apid::TC_MODE_IDLE, sequenceCount) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Class to build mode idle command
|
||||||
|
*/
|
||||||
|
class TcModeSnapshot : public TcBase {
|
||||||
|
public:
|
||||||
|
TcModeSnapshot(ploc::SpTcParams params, uint16_t sequenceCount)
|
||||||
|
: TcBase(params, apid::TC_MODE_SNAPSHOT, sequenceCount) {}
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Class to build camera take picture command
|
* @brief Class to build camera take picture command
|
||||||
*/
|
*/
|
||||||
|
@ -585,6 +585,17 @@ ReturnValue_t PlocMPSoCHandler::prepareTcDownlinkDataModulate(const uint8_t* com
|
|||||||
return returnvalue::OK;
|
return returnvalue::OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ReturnValue_t PlocMPSoCHandler::prepareTcModeSnapshot() {
|
||||||
|
ReturnValue_t result = returnvalue::OK;
|
||||||
|
mpsoc::TcModeSnapshot tcModeSnapshot(spParams, sequenceCount);
|
||||||
|
result = tcModeSnapshot.buildPacket();
|
||||||
|
if (result != returnvalue::OK) {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
finishTcPrep(tcModeSnapshot.getFullPacketLen());
|
||||||
|
return returnvalue::OK;
|
||||||
|
}
|
||||||
|
|
||||||
void PlocMPSoCHandler::finishTcPrep(size_t packetLen) {
|
void PlocMPSoCHandler::finishTcPrep(size_t packetLen) {
|
||||||
nextReplyId = mpsoc::ACK_REPORT;
|
nextReplyId = mpsoc::ACK_REPORT;
|
||||||
rawPacket = commandBuffer;
|
rawPacket = commandBuffer;
|
||||||
|
@ -172,6 +172,7 @@ class PlocMPSoCHandler : public DeviceHandlerBase, public CommandsActionsIF {
|
|||||||
ReturnValue_t prepareTcCamTakePic(const uint8_t* commandData, size_t commandDataLen);
|
ReturnValue_t prepareTcCamTakePic(const uint8_t* commandData, size_t commandDataLen);
|
||||||
ReturnValue_t prepareTcSimplexSendFile(const uint8_t* commandData, size_t commandDataLen);
|
ReturnValue_t prepareTcSimplexSendFile(const uint8_t* commandData, size_t commandDataLen);
|
||||||
ReturnValue_t prepareTcDownlinkDataModulate(const uint8_t* commandData, size_t commandDataLen);
|
ReturnValue_t prepareTcDownlinkDataModulate(const uint8_t* commandData, size_t commandDataLen);
|
||||||
|
ReturnValue_t prepareTcModeSnapshot();
|
||||||
void finishTcPrep(size_t packetLen);
|
void finishTcPrep(size_t packetLen);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
2
tmtc
2
tmtc
@ -1 +1 @@
|
|||||||
Subproject commit 9b7471e9097edd410995ba0c76125b626440d9be
|
Subproject commit 8d036bcd4fed1211ad5b15ddae7b42e61e22fcfd
|
Loading…
Reference in New Issue
Block a user