Fotobot
Get data from your photovoltaic plant
Public Member Functions | Static Public Attributes | Private Slots | Private Member Functions | Private Attributes | List of all members
SLUNCE Class Reference

Astronomické výpočty polohy slunce. More...

#include <slunce.h>

Inheritance diagram for SLUNCE:

Public Member Functions

 SLUNCE (QCoreApplication *)
 
void setObserver (double lat, double lng)
 
double ra ()
 Vrací rektascenzi slunce.
 
double dec ()
 Vrací deklinaci slunce.
 
double alt ()
 Vrací výšku slunce nad obzorem.
 
double az ()
 Vrací azimut slunce.
 
QString toDeg (double)
 
void start (Priority priority=InheritPriority)
 

Static Public Attributes

static const double DTR = 57.295779513
 

Private Slots

void slotInit ()
 
void spocti ()
 

Private Member Functions

void sun_ra_dec ()
 
void sun_alt_az ()
 
void sun_uhel ()
 
double to360 (double)
 
double to24 (double)
 

Private Attributes

QDateTime datum
 
double datum_jd
 
double sun_ra
 
double sun_dec
 
double sun_alt
 
double sun_az
 
double obs_long
 
double obs_lat
 
QMutex m_mutex
 

Detailed Description

Astronomické výpočty polohy slunce.

Ze zadaného času dokáže spočítat polohu slunce na obloze. Pro panel v zadané rovině (sklon a natočení) spočítá úhel dopadu. Provádí základní simulace atmosféry.

Definition at line 18 of file slunce.h.

Member Function Documentation

void SLUNCE::setObserver ( double  lat,
double  lng 
)

Nastaví zeměpisnou polohu pozorovatele (panelu).

Parameters
lat- zeměpisná šířka ve stupních, sever kladně
lng- zeměpisná délka ve stupních, východ kladně

Definition at line 40 of file slunce.cpp.

40  {
41  obs_lat = lat;
42  obs_long = lng;
43 }

The documentation for this class was generated from the following files: