IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42941


Ignore:
Timestamp:
Nov 12, 2025, 4:59:27 PM (8 months ago)
Author:
eugene
Message:

add command to modify section to place image center at specified location

Location:
trunk/Ohana/src/libkapa
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libkapa/include/kapa.h

    r41377 r42941  
    251251int KapaSetSection (int fd, KapaSection *section);
    252252int KapaSetSectionByImage (int fd, KapaSection *section);
     253int KapaSetSectionCenterByImage (int fd, KapaSection *section);
    253254int KapaSelectSection (int fd, char *name);
    254255int KapaGetSection (int fd, char *name);
  • trunk/Ohana/src/libkapa/src/KapaWindow.c

    r42821 r42941  
    445445}
    446446
     447int KapaSetSectionCenterByImage (int fd, KapaSection *section) {
     448
     449  KiiSendCommand (fd, 4, "CSEC");
     450  KiiSendMessage (fd, "%s %6.3f %6.3f ",
     451                  section[0].name,
     452                  section[0].x,
     453                  section[0].y);
     454  KiiWaitAnswer (fd, "DONE");
     455  return (TRUE);
     456}
     457
    447458int KapaSectionBG (int fd, char *name, int bg) {
    448459
Note: See TracChangeset for help on using the changeset viewer.