collect all common functions into separate library; add simple client example

This commit is contained in:
2024-01-24 17:19:11 +03:00
parent 3113d9754d
commit a5926861bc
29 changed files with 2013 additions and 1194 deletions

View File

@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-12-25 16:15+0300\n"
"POT-Creation-Date: 2024-01-24 11:37+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -246,11 +246,11 @@ msgid "restart image server"
msgstr ""
#: cmdlnopts.c:107
msgid "shared memory (with image data) key (default: 7777777"
msgid "shared memory (with image data) key (default: 7777777)"
msgstr ""
#: cmdlnopts.c:108
msgid "force using image through socket transition even if can use SHM"
msgid "force using image through socket transition even if can use SHM)"
msgstr ""
#: cmdlnopts.c:109
@@ -261,321 +261,301 @@ msgstr ""
msgid "Display image in OpenGL window"
msgstr ""
#: ccdfunc.c:65
#, c-format
msgid "Can't find plugin %s: %s"
msgstr ""
#: ccdfunc.c:77
#, c-format
msgid "Can't find focuser in plugin %s: %s"
msgstr ""
#: ccdfunc.c:88
#, c-format
msgid "Can't find camera in plugin %s: %s"
msgstr ""
#: ccdfunc.c:99
#, c-format
msgid "Can't find wheel in plugin %s: %s"
msgstr ""
#: ccdfunc.c:185
#: ccdfunc.c:138
msgid "Camera device unknown"
msgstr ""
#. Не могу сохранить файл
#: ccdfunc.c:209
#: ccdfunc.c:162
#, c-format
msgid "Can't save file with prefix %s"
msgstr ""
#: ccdfunc.c:362
#: ccdfunc.c:315
#, c-format
msgid "File saved as '%s'"
msgstr ""
#: ccdfunc.c:371
#: ccdfunc.c:324
msgid "Error saving file"
msgstr ""
#: ccdfunc.c:448
#: ccdfunc.c:401
#, c-format
msgid "Image stat:\n"
msgstr ""
#: ccdfunc.c:456
#: ccdfunc.c:409
msgid "Focuser device not pointed"
msgstr ""
#: ccdfunc.c:463
#: ccdfunc.c:416
msgid "No focusers found"
msgstr ""
#: ccdfunc.c:494
#: ccdfunc.c:447
#, c-format
msgid "Found %d focusers, you point number %d"
msgstr ""
#: ccdfunc.c:498
#: ccdfunc.c:451
msgid "Can't set active focuser number"
msgstr ""
#: ccdfunc.c:512
#: ccdfunc.c:465
msgid "Can't get focuser limit positions"
msgstr ""
#: ccdfunc.c:519
#: ccdfunc.c:472
msgid "Can't get current focuser position"
msgstr ""
#: ccdfunc.c:533
#: ccdfunc.c:486
#, c-format
msgid "Can't set position %g: out of limits [%g, %g]"
msgstr ""
#: ccdfunc.c:537
#: ccdfunc.c:490
msgid "Can't home focuser"
msgstr ""
#: ccdfunc.c:539
#: ccdfunc.c:492
#, c-format
msgid "Can't set position %g"
msgstr ""
#: ccdfunc.c:547
msgid "Wheel device not pointed"
#: ccdfunc.c:500
msgid "cc_Wheel device not pointed"
msgstr ""
#: ccdfunc.c:554
#: ccdfunc.c:507
msgid "No wheels found"
msgstr ""
#: ccdfunc.c:585
#: ccdfunc.c:538
#, c-format
msgid "Found %d wheels, you point number %d"
msgstr ""
#: ccdfunc.c:589
#: ccdfunc.c:542
msgid "Can't set active wheel number"
msgstr ""
#: ccdfunc.c:605
#: ccdfunc.c:558
msgid "Can't get max wheel position"
msgstr ""
#: ccdfunc.c:612
#: ccdfunc.c:565
#, c-format
msgid "Wheel position should be from 0 to %d"
msgid "cc_Wheel position should be from 0 to %d"
msgstr ""
#: ccdfunc.c:616
#: ccdfunc.c:569
#, c-format
msgid "Can't set wheel position %d"
msgstr ""
#: ccdfunc.c:633
#: ccdfunc.c:586
#, c-format
msgid "%.1f seconds till exposition ends"
msgstr ""
#: ccdfunc.c:648
#: ccdfunc.c:601
msgid "Camera device not pointed"
msgstr ""
#: ccdfunc.c:655 ccdfunc.c:656
#: ccdfunc.c:608 ccdfunc.c:609
msgid "No cameras found"
msgstr ""
#: ccdfunc.c:686
#: ccdfunc.c:639
#, c-format
msgid "Found %d cameras, you point number %d"
msgstr ""
#: ccdfunc.c:690
#: ccdfunc.c:643
msgid "Can't set active camera number"
msgstr ""
#: ccdfunc.c:696
#: ccdfunc.c:649
msgid "Can't set fan speed"
msgstr ""
#: ccdfunc.c:697
#: ccdfunc.c:650
#, c-format
msgid "Set fan speed to %d"
msgstr ""
#: ccdfunc.c:702
#: ccdfunc.c:655
#, c-format
msgid "Camera model: %s"
msgstr ""
#: ccdfunc.c:703
#: ccdfunc.c:656
#, c-format
msgid "Pixel size: %g x %g"
msgstr ""
#: ccdfunc.c:709
#: ccdfunc.c:662
#, c-format
msgid "Full array: %s"
msgstr ""
#: ccdfunc.c:712
#: ccdfunc.c:665
#, c-format
msgid "Field of view: %s"
msgstr ""
#: ccdfunc.c:715
#: ccdfunc.c:668
#, c-format
msgid "Current format: %s"
msgstr ""
#: ccdfunc.c:718
#: ccdfunc.c:671
#, c-format
msgid "Can't set T to %g degC"
msgstr ""
#: ccdfunc.c:726
#: ccdfunc.c:679
#, c-format
msgid "Shutter command: %s\n"
msgstr ""
#: ccdfunc.c:728
#: ccdfunc.c:681
#, c-format
msgid "Can't run shutter command %s (unsupported?)"
msgstr ""
#. "Попытка сконфигурировать порт I/O как %d\n"
#: ccdfunc.c:732
#: ccdfunc.c:685
#, c-format
msgid "Try to configure I/O port as %d"
msgstr ""
#: ccdfunc.c:734
#: ccdfunc.c:687
msgid "Can't configure (unsupported?)"
msgstr ""
#: ccdfunc.c:741
#: ccdfunc.c:694
msgid "Can't get IOport state (unsupported?)"
msgstr ""
#. "Попытка записи %d в порт I/O\n"
#: ccdfunc.c:745
#: ccdfunc.c:698
#, c-format
msgid "Try to write %d to I/O port"
msgstr ""
#: ccdfunc.c:747
#: ccdfunc.c:700
msgid "Can't set IOport"
msgstr ""
#: ccdfunc.c:754
#: ccdfunc.c:707
#, c-format
msgid "Set gain to %g"
msgstr ""
#: ccdfunc.c:755
#: ccdfunc.c:708
#, c-format
msgid "Can't set gain to %g"
msgstr ""
#: ccdfunc.c:760
#: ccdfunc.c:713
#, c-format
msgid "Set brightness to %g"
msgstr ""
#: ccdfunc.c:761
#: ccdfunc.c:714
#, c-format
msgid "Can't set brightness to %g"
msgstr ""
#: ccdfunc.c:767 server.c:265
#: ccdfunc.c:720 server.c:264
#, c-format
msgid "Can't set binning %dx%d"
msgstr ""
#: ccdfunc.c:779 server.c:266
#: ccdfunc.c:732 server.c:265
msgid "Can't set given geometry"
msgstr ""
#: ccdfunc.c:783
#: ccdfunc.c:736
#, c-format
msgid "Can't set %d flushes"
msgstr ""
#: ccdfunc.c:787
#: ccdfunc.c:740
#, c-format
msgid "Can't set exposure time to %f seconds"
msgstr ""
#: ccdfunc.c:790
#: ccdfunc.c:743
msgid "Can't change frame type"
msgstr ""
#: ccdfunc.c:793
#: ccdfunc.c:746
msgid "Can't set bit depth"
msgstr ""
#: ccdfunc.c:795
#: ccdfunc.c:748
msgid "Can't set readout speed"
msgstr ""
#: ccdfunc.c:796
#: ccdfunc.c:749
#, c-format
msgid "Readout mode: %s"
msgstr ""
#: ccdfunc.c:797
#: ccdfunc.c:750
msgid "Only show statistics"
msgstr ""
#. GET binning should be AFTER setgeometry!
#: ccdfunc.c:799
#: ccdfunc.c:752
msgid "Can't get current binning"
msgstr ""
#. Захват кадра %d\n
#: ccdfunc.c:824
#: ccdfunc.c:777
#, c-format
msgid "Capture frame %d"
msgstr ""
#: ccdfunc.c:826 ccdfunc.c:912 server.c:149
#: ccdfunc.c:779 ccdfunc.c:853 server.c:148
msgid "Can't start exposition"
msgstr ""
#: ccdfunc.c:831
#: ccdfunc.c:784
msgid "Can't capture image"
msgstr ""
#: ccdfunc.c:834
#: ccdfunc.c:787
msgid "Read grabbed image"
msgstr ""
#: ccdfunc.c:838 ccdfunc.c:925
#: ccdfunc.c:791 ccdfunc.c:866
msgid "Can't grab image"
msgstr ""
#. %d секунд до окончания паузы\n
#: ccdfunc.c:850 client.c:297
#: ccdfunc.c:803 client.c:270
#, c-format
msgid "%d seconds till pause ends\n"
msgstr ""
#: ccdfunc.c:923
#: ccdfunc.c:864
msgid "Some error when capture"
msgstr ""
#: server.c:189
#: server.c:188
msgid "No camera device"
msgstr ""
#: client.c:282
#: client.c:255
msgid "Can't make exposition"
msgstr ""
#: client.c:313
#: client.c:286
msgid "Server timeout"
msgstr ""