kopia lustrzana https://gitlab.com/Zwarf/picplanner
Add TODOs
rodzic
81d419fdd7
commit
0b4a1402f7
|
@ -1,5 +1,8 @@
|
|||
#include <calculations.h>
|
||||
|
||||
/* TODO
|
||||
* Azimuth and Elevation are wrong in the calculation of the position of the Milky Way */
|
||||
|
||||
|
||||
/* Convert degree to radiant */
|
||||
float calc_deg_rad (float deg) {
|
||||
|
@ -144,7 +147,9 @@ void calc_convert_rotation_horizontal(float right_ascension, float declination,
|
|||
|
||||
float azimuth = atan( sin(time_sidereal-right_ascension) / ( sin(latitude)*cos(time_sidereal-right_ascension) - cos(latitude)*tan(declination) ) );
|
||||
float elevation = asin( sin(latitude)*sin(declination) + cos(latitude)*cos(declination)*cos(time_sidereal-right_ascension) );
|
||||
/* explanation missing!! */
|
||||
|
||||
/* TODO
|
||||
* explanation missing!! */
|
||||
|
||||
|
||||
azimuth = calc_rad_deg (azimuth);
|
||||
|
|
|
@ -6,6 +6,11 @@
|
|||
#include<webconnection.h>
|
||||
#include<handler.h>
|
||||
|
||||
/* TODO
|
||||
* Clock should show allways TWO digits
|
||||
* Use system time zone instead of UTC
|
||||
* Make everything translatable */
|
||||
|
||||
GtkWidget *window;
|
||||
GtkWidget *button_search;
|
||||
GtkWidget *button_now;
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
#include <webconnection.h>
|
||||
|
||||
/* TODO
|
||||
* From https://nominatim.org/release-docs/develop/api/Search/
|
||||
* Language of results
|
||||
* accept-language=<browser language string>
|
||||
* Preferred language order for showing search results, overrides the value specified in the "Accept-Language" HTTP header.
|
||||
* Either use a standard RFC2616 accept-language string or a simple comma-separated list of language codes.
|
||||
*/
|
||||
|
||||
/* Below is needes for Curl to cummunicate with Nominatim */
|
||||
struct MemoryStruct {
|
||||
char *memory;
|
||||
|
@ -27,6 +35,8 @@ size_t WriteMemoryCallback(void *contents, size_t size, size_t nmemb, void *user
|
|||
return realsize;
|
||||
}
|
||||
|
||||
/* TODO
|
||||
* Make this function look nicer */
|
||||
struct Output *search_nominatim (const gchar *searchtext){
|
||||
|
||||
CURL *curl;
|
||||
|
|
Ładowanie…
Reference in New Issue