|
|
@ -425,93 +425,101 @@ ReturnValue_t pst::pstSpi(FixedTimeslotTaskIF *thisSequence) {
|
|
|
|
thisSequence->addSlot(objects::RW4, length * 0.8, DeviceHandlerIF::GET_READ);
|
|
|
|
thisSequence->addSlot(objects::RW4, length * 0.8, DeviceHandlerIF::GET_READ);
|
|
|
|
|
|
|
|
|
|
|
|
#if OBSW_ADD_ACS_BOARD == 1
|
|
|
|
#if OBSW_ADD_ACS_BOARD == 1
|
|
|
|
thisSequence->addSlot(objects::MGM_0_LIS3_HANDLER, length * 0,
|
|
|
|
bool enableAside = false;
|
|
|
|
DeviceHandlerIF::PERFORM_OPERATION);
|
|
|
|
bool enableBside = true;
|
|
|
|
thisSequence->addSlot(objects::MGM_0_LIS3_HANDLER, length * 0.2,
|
|
|
|
if(enableAside) {
|
|
|
|
DeviceHandlerIF::SEND_WRITE);
|
|
|
|
// A side
|
|
|
|
thisSequence->addSlot(objects::MGM_0_LIS3_HANDLER, length * 0.4,
|
|
|
|
thisSequence->addSlot(objects::MGM_0_LIS3_HANDLER, length * 0,
|
|
|
|
DeviceHandlerIF::GET_WRITE);
|
|
|
|
DeviceHandlerIF::PERFORM_OPERATION);
|
|
|
|
thisSequence->addSlot(objects::MGM_0_LIS3_HANDLER, length * 0.6,
|
|
|
|
thisSequence->addSlot(objects::MGM_0_LIS3_HANDLER, length * 0.2,
|
|
|
|
DeviceHandlerIF::SEND_READ);
|
|
|
|
DeviceHandlerIF::SEND_WRITE);
|
|
|
|
thisSequence->addSlot(objects::MGM_0_LIS3_HANDLER, length * 0.8,
|
|
|
|
thisSequence->addSlot(objects::MGM_0_LIS3_HANDLER, length * 0.4,
|
|
|
|
DeviceHandlerIF::GET_READ);
|
|
|
|
DeviceHandlerIF::GET_WRITE);
|
|
|
|
|
|
|
|
thisSequence->addSlot(objects::MGM_0_LIS3_HANDLER, length * 0.6,
|
|
|
|
|
|
|
|
DeviceHandlerIF::SEND_READ);
|
|
|
|
|
|
|
|
thisSequence->addSlot(objects::MGM_0_LIS3_HANDLER, length * 0.8,
|
|
|
|
|
|
|
|
DeviceHandlerIF::GET_READ);
|
|
|
|
|
|
|
|
|
|
|
|
thisSequence->addSlot(objects::MGM_1_RM3100_HANDLER, length * 0,
|
|
|
|
thisSequence->addSlot(objects::MGM_1_RM3100_HANDLER, length * 0,
|
|
|
|
DeviceHandlerIF::PERFORM_OPERATION);
|
|
|
|
DeviceHandlerIF::PERFORM_OPERATION);
|
|
|
|
thisSequence->addSlot(objects::MGM_1_RM3100_HANDLER, length * 0.2,
|
|
|
|
thisSequence->addSlot(objects::MGM_1_RM3100_HANDLER, length * 0.2,
|
|
|
|
DeviceHandlerIF::SEND_WRITE);
|
|
|
|
DeviceHandlerIF::SEND_WRITE);
|
|
|
|
thisSequence->addSlot(objects::MGM_1_RM3100_HANDLER, length * 0.4,
|
|
|
|
thisSequence->addSlot(objects::MGM_1_RM3100_HANDLER, length * 0.4,
|
|
|
|
DeviceHandlerIF::GET_WRITE);
|
|
|
|
DeviceHandlerIF::GET_WRITE);
|
|
|
|
thisSequence->addSlot(objects::MGM_1_RM3100_HANDLER, length * 0.6,
|
|
|
|
thisSequence->addSlot(objects::MGM_1_RM3100_HANDLER, length * 0.6,
|
|
|
|
DeviceHandlerIF::SEND_READ);
|
|
|
|
DeviceHandlerIF::SEND_READ);
|
|
|
|
thisSequence->addSlot(objects::MGM_1_RM3100_HANDLER, length * 0.8,
|
|
|
|
thisSequence->addSlot(objects::MGM_1_RM3100_HANDLER, length * 0.8,
|
|
|
|
DeviceHandlerIF::GET_READ);
|
|
|
|
DeviceHandlerIF::GET_READ);
|
|
|
|
|
|
|
|
|
|
|
|
// thisSequence->addSlot(objects::MGM_2_LIS3_HANDLER, length * 0,
|
|
|
|
// thisSequence->addSlot(objects::GYRO_0_ADIS_HANDLER, length * 0,
|
|
|
|
// DeviceHandlerIF::PERFORM_OPERATION);
|
|
|
|
// DeviceHandlerIF::PERFORM_OPERATION);
|
|
|
|
// thisSequence->addSlot(objects::MGM_2_LIS3_HANDLER, length * 0.2,
|
|
|
|
// thisSequence->addSlot(objects::GYRO_0_ADIS_HANDLER, length * 0.2,
|
|
|
|
// DeviceHandlerIF::SEND_WRITE);
|
|
|
|
// DeviceHandlerIF::SEND_WRITE);
|
|
|
|
// thisSequence->addSlot(objects::MGM_2_LIS3_HANDLER, length * 0.4,
|
|
|
|
// thisSequence->addSlot(objects::GYRO_0_ADIS_HANDLER, length * 0.4,
|
|
|
|
// DeviceHandlerIF::GET_WRITE);
|
|
|
|
// DeviceHandlerIF::GET_WRITE);
|
|
|
|
// thisSequence->addSlot(objects::MGM_2_LIS3_HANDLER, length * 0.6,
|
|
|
|
// thisSequence->addSlot(objects::GYRO_0_ADIS_HANDLER, length * 0.6,
|
|
|
|
// DeviceHandlerIF::SEND_READ);
|
|
|
|
// DeviceHandlerIF::SEND_READ);
|
|
|
|
// thisSequence->addSlot(objects::MGM_2_LIS3_HANDLER, length * 0.8,
|
|
|
|
// thisSequence->addSlot(objects::GYRO_0_ADIS_HANDLER, length * 0.8,
|
|
|
|
// DeviceHandlerIF::GET_READ);
|
|
|
|
// DeviceHandlerIF::GET_READ);
|
|
|
|
|
|
|
|
|
|
|
|
thisSequence->addSlot(objects::MGM_3_RM3100_HANDLER, length * 0,
|
|
|
|
thisSequence->addSlot(objects::GYRO_1_L3G_HANDLER, length * 0,
|
|
|
|
DeviceHandlerIF::PERFORM_OPERATION);
|
|
|
|
DeviceHandlerIF::PERFORM_OPERATION);
|
|
|
|
thisSequence->addSlot(objects::MGM_3_RM3100_HANDLER, length * 0.2,
|
|
|
|
thisSequence->addSlot(objects::GYRO_1_L3G_HANDLER, length * 0.2,
|
|
|
|
DeviceHandlerIF::SEND_WRITE);
|
|
|
|
DeviceHandlerIF::SEND_WRITE);
|
|
|
|
thisSequence->addSlot(objects::MGM_3_RM3100_HANDLER, length * 0.4,
|
|
|
|
thisSequence->addSlot(objects::GYRO_1_L3G_HANDLER, length * 0.4,
|
|
|
|
DeviceHandlerIF::GET_WRITE);
|
|
|
|
DeviceHandlerIF::GET_WRITE);
|
|
|
|
thisSequence->addSlot(objects::MGM_3_RM3100_HANDLER, length * 0.6,
|
|
|
|
thisSequence->addSlot(objects::GYRO_1_L3G_HANDLER, length * 0.6,
|
|
|
|
DeviceHandlerIF::SEND_READ);
|
|
|
|
DeviceHandlerIF::SEND_READ);
|
|
|
|
thisSequence->addSlot(objects::MGM_3_RM3100_HANDLER, length * 0.8,
|
|
|
|
thisSequence->addSlot(objects::GYRO_1_L3G_HANDLER, length * 0.8,
|
|
|
|
DeviceHandlerIF::GET_READ);
|
|
|
|
DeviceHandlerIF::GET_READ);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// thisSequence->addSlot(objects::GYRO_0_ADIS_HANDLER, length * 0,
|
|
|
|
if(enableBside) {
|
|
|
|
// DeviceHandlerIF::PERFORM_OPERATION);
|
|
|
|
// B side
|
|
|
|
// thisSequence->addSlot(objects::GYRO_0_ADIS_HANDLER, length * 0.2,
|
|
|
|
thisSequence->addSlot(objects::MGM_2_LIS3_HANDLER, length * 0,
|
|
|
|
// DeviceHandlerIF::SEND_WRITE);
|
|
|
|
DeviceHandlerIF::PERFORM_OPERATION);
|
|
|
|
// thisSequence->addSlot(objects::GYRO_0_ADIS_HANDLER, length * 0.4,
|
|
|
|
thisSequence->addSlot(objects::MGM_2_LIS3_HANDLER, length * 0.2,
|
|
|
|
// DeviceHandlerIF::GET_WRITE);
|
|
|
|
DeviceHandlerIF::SEND_WRITE);
|
|
|
|
// thisSequence->addSlot(objects::GYRO_0_ADIS_HANDLER, length * 0.6,
|
|
|
|
thisSequence->addSlot(objects::MGM_2_LIS3_HANDLER, length * 0.4,
|
|
|
|
// DeviceHandlerIF::SEND_READ);
|
|
|
|
DeviceHandlerIF::GET_WRITE);
|
|
|
|
// thisSequence->addSlot(objects::GYRO_0_ADIS_HANDLER, length * 0.8,
|
|
|
|
thisSequence->addSlot(objects::MGM_2_LIS3_HANDLER, length * 0.6,
|
|
|
|
// DeviceHandlerIF::GET_READ);
|
|
|
|
DeviceHandlerIF::SEND_READ);
|
|
|
|
//
|
|
|
|
thisSequence->addSlot(objects::MGM_2_LIS3_HANDLER, length * 0.8,
|
|
|
|
thisSequence->addSlot(objects::GYRO_1_L3G_HANDLER, length * 0,
|
|
|
|
DeviceHandlerIF::GET_READ);
|
|
|
|
DeviceHandlerIF::PERFORM_OPERATION);
|
|
|
|
|
|
|
|
thisSequence->addSlot(objects::GYRO_1_L3G_HANDLER, length * 0.2,
|
|
|
|
|
|
|
|
DeviceHandlerIF::SEND_WRITE);
|
|
|
|
|
|
|
|
thisSequence->addSlot(objects::GYRO_1_L3G_HANDLER, length * 0.4,
|
|
|
|
|
|
|
|
DeviceHandlerIF::GET_WRITE);
|
|
|
|
|
|
|
|
thisSequence->addSlot(objects::GYRO_1_L3G_HANDLER, length * 0.6,
|
|
|
|
|
|
|
|
DeviceHandlerIF::SEND_READ);
|
|
|
|
|
|
|
|
thisSequence->addSlot(objects::GYRO_1_L3G_HANDLER, length * 0.8,
|
|
|
|
|
|
|
|
DeviceHandlerIF::GET_READ);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// thisSequence->addSlot(objects::GYRO_2_ADIS_HANDLER, length * 0,
|
|
|
|
thisSequence->addSlot(objects::MGM_3_RM3100_HANDLER, length * 0,
|
|
|
|
// DeviceHandlerIF::PERFORM_OPERATION);
|
|
|
|
DeviceHandlerIF::PERFORM_OPERATION);
|
|
|
|
// thisSequence->addSlot(objects::GYRO_2_ADIS_HANDLER, length * 0.2,
|
|
|
|
thisSequence->addSlot(objects::MGM_3_RM3100_HANDLER, length * 0.2,
|
|
|
|
// DeviceHandlerIF::SEND_WRITE);
|
|
|
|
DeviceHandlerIF::SEND_WRITE);
|
|
|
|
// thisSequence->addSlot(objects::GYRO_2_ADIS_HANDLER, length * 0.4,
|
|
|
|
thisSequence->addSlot(objects::MGM_3_RM3100_HANDLER, length * 0.4,
|
|
|
|
// DeviceHandlerIF::GET_WRITE);
|
|
|
|
DeviceHandlerIF::GET_WRITE);
|
|
|
|
// thisSequence->addSlot(objects::GYRO_2_ADIS_HANDLER, length * 0.6,
|
|
|
|
thisSequence->addSlot(objects::MGM_3_RM3100_HANDLER, length * 0.6,
|
|
|
|
// DeviceHandlerIF::SEND_READ);
|
|
|
|
DeviceHandlerIF::SEND_READ);
|
|
|
|
// thisSequence->addSlot(objects::GYRO_2_ADIS_HANDLER, length * 0.8,
|
|
|
|
thisSequence->addSlot(objects::MGM_3_RM3100_HANDLER, length * 0.8,
|
|
|
|
// DeviceHandlerIF::GET_READ);
|
|
|
|
DeviceHandlerIF::GET_READ);
|
|
|
|
|
|
|
|
|
|
|
|
thisSequence->addSlot(objects::GYRO_3_L3G_HANDLER, length * 0,
|
|
|
|
// thisSequence->addSlot(objects::GYRO_2_ADIS_HANDLER, length * 0,
|
|
|
|
DeviceHandlerIF::PERFORM_OPERATION);
|
|
|
|
// DeviceHandlerIF::PERFORM_OPERATION);
|
|
|
|
thisSequence->addSlot(objects::GYRO_3_L3G_HANDLER, length * 0.2,
|
|
|
|
// thisSequence->addSlot(objects::GYRO_2_ADIS_HANDLER, length * 0.2,
|
|
|
|
DeviceHandlerIF::SEND_WRITE);
|
|
|
|
// DeviceHandlerIF::SEND_WRITE);
|
|
|
|
thisSequence->addSlot(objects::GYRO_3_L3G_HANDLER, length * 0.4,
|
|
|
|
// thisSequence->addSlot(objects::GYRO_2_ADIS_HANDLER, length * 0.4,
|
|
|
|
DeviceHandlerIF::GET_WRITE);
|
|
|
|
// DeviceHandlerIF::GET_WRITE);
|
|
|
|
thisSequence->addSlot(objects::GYRO_3_L3G_HANDLER, length * 0.6,
|
|
|
|
// thisSequence->addSlot(objects::GYRO_2_ADIS_HANDLER, length * 0.6,
|
|
|
|
DeviceHandlerIF::SEND_READ);
|
|
|
|
// DeviceHandlerIF::SEND_READ);
|
|
|
|
thisSequence->addSlot(objects::GYRO_3_L3G_HANDLER, length * 0.8,
|
|
|
|
// thisSequence->addSlot(objects::GYRO_2_ADIS_HANDLER, length * 0.8,
|
|
|
|
DeviceHandlerIF::GET_READ);
|
|
|
|
// DeviceHandlerIF::GET_READ);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
thisSequence->addSlot(objects::GYRO_3_L3G_HANDLER, length * 0,
|
|
|
|
|
|
|
|
DeviceHandlerIF::PERFORM_OPERATION);
|
|
|
|
|
|
|
|
thisSequence->addSlot(objects::GYRO_3_L3G_HANDLER, length * 0.2,
|
|
|
|
|
|
|
|
DeviceHandlerIF::SEND_WRITE);
|
|
|
|
|
|
|
|
thisSequence->addSlot(objects::GYRO_3_L3G_HANDLER, length * 0.4,
|
|
|
|
|
|
|
|
DeviceHandlerIF::GET_WRITE);
|
|
|
|
|
|
|
|
thisSequence->addSlot(objects::GYRO_3_L3G_HANDLER, length * 0.6,
|
|
|
|
|
|
|
|
DeviceHandlerIF::SEND_READ);
|
|
|
|
|
|
|
|
thisSequence->addSlot(objects::GYRO_3_L3G_HANDLER, length * 0.8,
|
|
|
|
|
|
|
|
DeviceHandlerIF::GET_READ);
|
|
|
|
|
|
|
|
}
|
|
|
|
#endif /* OBSW_ADD_ACS_BOARD == 1 */
|
|
|
|
#endif /* OBSW_ADD_ACS_BOARD == 1 */
|
|
|
|
|
|
|
|
|
|
|
|
if (thisSequence->checkSequence() != HasReturnvaluesIF::RETURN_OK) {
|
|
|
|
if (thisSequence->checkSequence() != HasReturnvaluesIF::RETURN_OK) {
|
|
|
@ -547,13 +555,13 @@ ReturnValue_t pst::pstUart(FixedTimeslotTaskIF *thisSequence) {
|
|
|
|
thisSequence->addSlot(objects::PLOC_MPSOC_HANDLER, length * 0,
|
|
|
|
thisSequence->addSlot(objects::PLOC_MPSOC_HANDLER, length * 0,
|
|
|
|
DeviceHandlerIF::PERFORM_OPERATION);
|
|
|
|
DeviceHandlerIF::PERFORM_OPERATION);
|
|
|
|
thisSequence->addSlot(objects::PLOC_MPSOC_HANDLER, length * 0.2,
|
|
|
|
thisSequence->addSlot(objects::PLOC_MPSOC_HANDLER, length * 0.2,
|
|
|
|
DeviceHandlerIF::SEND_WRITE);
|
|
|
|
DeviceHandlerIF::SEND_WRITE);
|
|
|
|
thisSequence->addSlot(objects::PLOC_MPSOC_HANDLER, length * 0.4,
|
|
|
|
thisSequence->addSlot(objects::PLOC_MPSOC_HANDLER, length * 0.4,
|
|
|
|
DeviceHandlerIF::GET_WRITE);
|
|
|
|
DeviceHandlerIF::GET_WRITE);
|
|
|
|
thisSequence->addSlot(objects::PLOC_MPSOC_HANDLER, length * 0.6,
|
|
|
|
thisSequence->addSlot(objects::PLOC_MPSOC_HANDLER, length * 0.6,
|
|
|
|
DeviceHandlerIF::SEND_READ);
|
|
|
|
DeviceHandlerIF::SEND_READ);
|
|
|
|
thisSequence->addSlot(objects::PLOC_MPSOC_HANDLER, length * 0.8,
|
|
|
|
thisSequence->addSlot(objects::PLOC_MPSOC_HANDLER, length * 0.8,
|
|
|
|
DeviceHandlerIF::GET_READ);
|
|
|
|
DeviceHandlerIF::GET_READ);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
thisSequence->addSlot(objects::PLOC_UPDATER, length * 0, DeviceHandlerIF::PERFORM_OPERATION);
|
|
|
|
thisSequence->addSlot(objects::PLOC_UPDATER, length * 0, DeviceHandlerIF::PERFORM_OPERATION);
|
|
|
@ -563,13 +571,13 @@ ReturnValue_t pst::pstUart(FixedTimeslotTaskIF *thisSequence) {
|
|
|
|
thisSequence->addSlot(objects::PLOC_SUPERVISOR_HANDLER, length * 0,
|
|
|
|
thisSequence->addSlot(objects::PLOC_SUPERVISOR_HANDLER, length * 0,
|
|
|
|
DeviceHandlerIF::PERFORM_OPERATION);
|
|
|
|
DeviceHandlerIF::PERFORM_OPERATION);
|
|
|
|
thisSequence->addSlot(objects::PLOC_SUPERVISOR_HANDLER, length * 0.2,
|
|
|
|
thisSequence->addSlot(objects::PLOC_SUPERVISOR_HANDLER, length * 0.2,
|
|
|
|
DeviceHandlerIF::SEND_WRITE);
|
|
|
|
DeviceHandlerIF::SEND_WRITE);
|
|
|
|
thisSequence->addSlot(objects::PLOC_SUPERVISOR_HANDLER, length * 0.4,
|
|
|
|
thisSequence->addSlot(objects::PLOC_SUPERVISOR_HANDLER, length * 0.4,
|
|
|
|
DeviceHandlerIF::GET_WRITE);
|
|
|
|
DeviceHandlerIF::GET_WRITE);
|
|
|
|
thisSequence->addSlot(objects::PLOC_SUPERVISOR_HANDLER, length * 0.6,
|
|
|
|
thisSequence->addSlot(objects::PLOC_SUPERVISOR_HANDLER, length * 0.6,
|
|
|
|
DeviceHandlerIF::SEND_READ);
|
|
|
|
DeviceHandlerIF::SEND_READ);
|
|
|
|
thisSequence->addSlot(objects::PLOC_SUPERVISOR_HANDLER, length * 0.8,
|
|
|
|
thisSequence->addSlot(objects::PLOC_SUPERVISOR_HANDLER, length * 0.8,
|
|
|
|
DeviceHandlerIF::GET_READ);
|
|
|
|
DeviceHandlerIF::GET_READ);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if Q7S_ADD_SYRLINKS_HANDLER == 1
|
|
|
|
#if Q7S_ADD_SYRLINKS_HANDLER == 1
|
|
|
|