GNSS ACS board update #92
@ -477,8 +477,12 @@ void ObjectFactory::createAcsBoardComponents(LinuxLibgpioIF *gpioComIF, UartComI
|
|||||||
UartModes::CANONICAL, 9600, uart::HYPERION_GPS_REPLY_MAX_BUFFER);
|
UartModes::CANONICAL, 9600, uart::HYPERION_GPS_REPLY_MAX_BUFFER);
|
||||||
uartCookieGps1->setToFlushInput(true);
|
uartCookieGps1->setToFlushInput(true);
|
||||||
uartCookieGps1->setReadCycles(6);
|
uartCookieGps1->setReadCycles(6);
|
||||||
new GPSHyperionHandler(objects::GPS0_HANDLER, objects::UART_COM_IF, uartCookieGps0, true);
|
auto gpsHandler0 = new GPSHyperionHandler(objects::GPS0_HANDLER, objects::UART_COM_IF,
|
||||||
new GPSHyperionHandler(objects::GPS1_HANDLER, objects::UART_COM_IF, uartCookieGps1, true);
|
uartCookieGps0, true);
|
||||||
|
gpsHandler0->setStartUpImmediately();
|
||||||
|
auto gpsHandler1 = new GPSHyperionHandler(objects::GPS1_HANDLER, objects::UART_COM_IF,
|
||||||
|
uartCookieGps1, true);
|
||||||
|
gpsHandler1->setStartUpImmediately();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ObjectFactory::createHeaterComponents() {
|
void ObjectFactory::createHeaterComponents() {
|
||||||
|
@ -491,16 +491,16 @@ ReturnValue_t pst::pstSpi(FixedTimeslotTaskIF *thisSequence) {
|
|||||||
// thisSequence->addSlot(objects::GYRO_1_L3G_HANDLER, length * 0.8,
|
// thisSequence->addSlot(objects::GYRO_1_L3G_HANDLER, length * 0.8,
|
||||||
// DeviceHandlerIF::GET_READ);
|
// DeviceHandlerIF::GET_READ);
|
||||||
|
|
||||||
thisSequence->addSlot(objects::GYRO_2_ADIS_HANDLER, length * 0,
|
// thisSequence->addSlot(objects::GYRO_2_ADIS_HANDLER, length * 0,
|
||||||
DeviceHandlerIF::PERFORM_OPERATION);
|
// DeviceHandlerIF::PERFORM_OPERATION);
|
||||||
thisSequence->addSlot(objects::GYRO_2_ADIS_HANDLER, length * 0.2,
|
// thisSequence->addSlot(objects::GYRO_2_ADIS_HANDLER, length * 0.2,
|
||||||
DeviceHandlerIF::SEND_WRITE);
|
// DeviceHandlerIF::SEND_WRITE);
|
||||||
thisSequence->addSlot(objects::GYRO_2_ADIS_HANDLER, length * 0.4,
|
// thisSequence->addSlot(objects::GYRO_2_ADIS_HANDLER, length * 0.4,
|
||||||
DeviceHandlerIF::GET_WRITE);
|
// DeviceHandlerIF::GET_WRITE);
|
||||||
thisSequence->addSlot(objects::GYRO_2_ADIS_HANDLER, length * 0.6,
|
// thisSequence->addSlot(objects::GYRO_2_ADIS_HANDLER, length * 0.6,
|
||||||
DeviceHandlerIF::SEND_READ);
|
// DeviceHandlerIF::SEND_READ);
|
||||||
thisSequence->addSlot(objects::GYRO_2_ADIS_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,
|
// thisSequence->addSlot(objects::GYRO_3_L3G_HANDLER, length * 0,
|
||||||
// DeviceHandlerIF::PERFORM_OPERATION);
|
// DeviceHandlerIF::PERFORM_OPERATION);
|
||||||
|
@ -121,7 +121,7 @@ ReturnValue_t GPSHyperionHandler::interpretDeviceReply(DeviceCommandId_t id,
|
|||||||
}
|
}
|
||||||
|
|
||||||
uint32_t GPSHyperionHandler::getTransitionDelayMs(Mode_t from, Mode_t to) {
|
uint32_t GPSHyperionHandler::getTransitionDelayMs(Mode_t from, Mode_t to) {
|
||||||
return 5000;
|
return 20000;
|
||||||
}
|
}
|
||||||
|
|
||||||
ReturnValue_t GPSHyperionHandler::initializeLocalDataPool(
|
ReturnValue_t GPSHyperionHandler::initializeLocalDataPool(
|
||||||
@ -150,3 +150,16 @@ void GPSHyperionHandler::fillCommandAndReplyMap() {
|
|||||||
void GPSHyperionHandler::modeChanged() {
|
void GPSHyperionHandler::modeChanged() {
|
||||||
internalState = InternalStates::NONE;
|
internalState = InternalStates::NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GPSHyperionHandler::debugInterface(uint8_t positionTracker, object_id_t objectId,
|
||||||
|
uint32_t parameter) {
|
||||||
|
if(positionTracker == 0) {
|
||||||
|
sif::debug << "state machine, mode " << parameter << std::endl;
|
||||||
|
}
|
||||||
|
else if(positionTracker == 1) {
|
||||||
|
sif::debug << "ALIVE" << std::endl;
|
||||||
|
}
|
||||||
|
if(positionTracker == 5) {
|
||||||
|
(void) positionTracker;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -49,7 +49,8 @@ protected:
|
|||||||
uint32_t getTransitionDelayMs(Mode_t from, Mode_t to) override;
|
uint32_t getTransitionDelayMs(Mode_t from, Mode_t to) override;
|
||||||
ReturnValue_t initializeLocalDataPool(localpool::DataPool &localDataPoolMap,
|
ReturnValue_t initializeLocalDataPool(localpool::DataPool &localDataPoolMap,
|
||||||
LocalDataPoolManager &poolManager) override;
|
LocalDataPoolManager &poolManager) override;
|
||||||
|
virtual void debugInterface(uint8_t positionTracker = 0,
|
||||||
|
object_id_t objectId = 0, uint32_t parameter = 0) override;
|
||||||
private:
|
private:
|
||||||
lwgps_t gpsData = {};
|
lwgps_t gpsData = {};
|
||||||
GpsPrimaryDataset gpsSet;
|
GpsPrimaryDataset gpsSet;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user