init on github

This commit is contained in:
eddyem
2015-07-23 13:38:18 +03:00
parent 5c4d7551da
commit f3b64d67e8
10 changed files with 2109 additions and 0 deletions

14
CGI/bta_pos.c Normal file
View File

@@ -0,0 +1,14 @@
#include "bta_shdata.h"
inline double sec2deg(double angle){
return angle / 3600;
}
int main(int argc, char** argv){
get_shm_block( &sdat, ClientSide);
if(!check_shm_block(&sdat)) return -1;
//printf("Access-Control-Allow-Origin: http://ishtar.sao.ru\n"
// "Acess-Control-Allow-Methods: POST\nContent-type:multipart/form-data\n\n");
printf("telA=%.2f telZ=%.2f domeA=%.2f\n", sec2deg(val_A), sec2deg(val_Z), sec2deg(val_D));
}

1113
CGI/bta_shdata.h Normal file

File diff suppressed because it is too large Load Diff

8
CGI/can_req.cgi Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
echo "Access-Control-Allow-Origin: http://ishtar.sao.ru"
echo "Access-Control-Allow-Headers: Content-Type, X-Requested-With"
echo -e "Acess-Control-Allow-Methods: POST\nContent-type:multipart/form-data\n\n"
#echo "<html><body><pre>"
/usr/local/bin/can_requestor -latest
#echo "</pre></body></html>"