mirror of
https://github.com/eddyem/bta-temp.git
synced 2026-03-20 16:51:06 +03:00
init on github
This commit is contained in:
14
CGI/bta_pos.c
Normal file
14
CGI/bta_pos.c
Normal 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
1113
CGI/bta_shdata.h
Normal file
File diff suppressed because it is too large
Load Diff
8
CGI/can_req.cgi
Executable file
8
CGI/can_req.cgi
Executable 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>"
|
||||
Reference in New Issue
Block a user