move from tabs to spaces
This commit is contained in:
parent
a6aad07f05
commit
fa45072998
86 changed files with 2611 additions and 2486 deletions
|
|
@ -2,24 +2,24 @@
|
|||
|
||||
SunSensorSource::SunSensorSource(double lat, double lon, QObject *parent): QObject(parent), sun_(lat, lon)
|
||||
{
|
||||
connect(&timer, SIGNAL(timeout()), this, SLOT(doTick()));
|
||||
connect(&timer, SIGNAL(timeout()), this, SLOT(doTick()));
|
||||
}
|
||||
|
||||
void SunSensorSource::run()
|
||||
{
|
||||
connect(&timer, SIGNAL(timeout()), this, SLOT(doTick()));
|
||||
timer.setInterval(10000); //10s
|
||||
timer.start();
|
||||
doTick();
|
||||
connect(&timer, SIGNAL(timeout()), this, SLOT(doTick()));
|
||||
timer.setInterval(10000); //10s
|
||||
timer.start();
|
||||
doTick();
|
||||
}
|
||||
|
||||
|
||||
void SunSensorSource::abort()
|
||||
{
|
||||
if(timer.isActive())timer.stop();
|
||||
if(timer.isActive())timer.stop();
|
||||
}
|
||||
|
||||
void SunSensorSource::doTick()
|
||||
{
|
||||
stateChanged(Sensor(Sensor::TYPE_SUN_ALTITUDE, 0, static_cast<float>(sun_.altitude())));
|
||||
stateChanged(Sensor(Sensor::TYPE_SUN_ALTITUDE, 0, static_cast<float>(sun_.altitude())));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue