void FalconBoard::qParamSensoresAnalogicos(QByteArray paquete) { qPacketParamensoresAnalogicos_t *qanalog; qanalog = (qPacketParamensoresAnalogicos_t *)(paquete.data() + 4); emit adcUpdate(qanalog->temperatura, qanalog->bateria); emit baroUpdate(qanalog->baro, qanalog->altitud_externa, qanalog->VVI); emit pitotUpdate(qanalog->pitot, qanalog->calibratedSpeed); }
/** * The main control loop for the vehicle. Within this function we mainly call the * periodic update functions for the various modules. */ void update(void *) { // Toggle LED just to let us know things are working led.toggle(); // Update the thrust and rudder control loops rudder.update(); thruster.update(); // Perform periodic updates for sensors teSensor.update(); doSensor.update(); // depthSensor.update(); // esSensor.update(); // monitorSensor.update(); // Decay the desired velocities slightly decayVelocity(); //Try reading analog sensor adcUpdate(); }