Rev 708 | Rev 729 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 708 | Rev 724 | ||
---|---|---|---|
Line 71... | Line 71... | ||
71 | #include "settings.h" |
71 | #include "settings.h" |
72 | #include "sdc.h" |
72 | #include "sdc.h" |
73 | #include "analog.h" |
73 | #include "analog.h" |
74 | #include "canbus.h" |
74 | #include "canbus.h" |
75 | #include "triggerlog.h" |
75 | #include "triggerlog.h" |
- | 76 | #include "CamCtrl.h" |
|
Line 76... | Line 77... | ||
76 | 77 | ||
77 | u8 DispPtr = 0; |
78 | u8 DispPtr = 0; |
Line 78... | Line 79... | ||
78 | s8 DisplayBuff[DISPLAYBUFFSIZE]; |
79 | s8 DisplayBuff[DISPLAYBUFFSIZE]; |
79 | 80 | ||
Line 80... | Line 81... | ||
80 | 81 | ||
81 | u8 MenuItem = 0; |
82 | u8 MenuItem = 0; |
82 | u8 MaxMenuItem = 29; |
83 | u8 MaxMenuItem = 30; |
83 | 84 | ||
Line 631... | Line 632... | ||
631 | { |
632 | { |
632 | LCD_printfxy(0,1,"Not Supported in "); |
633 | LCD_printfxy(0,1,"Not Supported in "); |
633 | LCD_printfxy(0,2,"Hardware V%d ", UART_VersionInfo.HWMajor/10); |
634 | LCD_printfxy(0,2,"Hardware V%d ", UART_VersionInfo.HWMajor/10); |
634 | LCD_printfxy(0,3,"(V3 required)"); |
635 | LCD_printfxy(0,3,"(V3 required)"); |
635 | } |
636 | } |
- | 637 | break; |
|
- | 638 | case 30: |
|
- | 639 | LCD_printfxy(0,0,"CamCtrl"); |
|
- | 640 | if(!(FromCamCtrl.CamStatus & CAM_STATE_I2C_OK)) |
|
- | 641 | { |
|
- | 642 | LCD_printfxy(0,2,"Not connected"); |
|
- | 643 | if(CamCtrlTimeout < 10) LCD_printfxy(13,3,"(conn)"); // connect manually |
|
- | 644 | if(Keys & KEY4) CamCtrlTimeout = 65000; |
|
- | 645 | } |
|
- | 646 | else |
|
- | 647 | { |
|
- | 648 | switch(FromCamCtrl.Type) |
|
- | 649 | { |
|
- | 650 | case TYPE_LANC: LCD_printfxy(8,0,"LANC"); break; |
|
- | 651 | case TYPE_IR: LCD_printfxy(8,0,"IR"); break; |
|
- | 652 | case TYPE_MULTI: LCD_printfxy(8,0,"MULTI"); break; |
|
- | 653 | } |
|
- | 654 | LCD_printfxy(0,0,"CamCtrl"); |
|
- | 655 | LCD_printfxy(0,1,"State:"); |
|
- | 656 | if(FromCamCtrl.CamStatus & CAM_STATE_RDY) LCD_printfxy(6,1,"RDY ") else LCD_printfxy(6,1,"--- "); |
|
- | 657 | if(FromCamCtrl.CamStatus & CAM_STATE_REC_ACTIVE) LCD_printfxy(10,1,"REC ") else LCD_printfxy(10,1," "); |
|
- | 658 | if(FromCamCtrl.CamStatus & CAM_STATE_PHOTO_MODE) LCD_printfxy(14,1,"PHOTO") else LCD_printfxy(14,1," "); |
|
Line -... | Line 659... | ||
- | 659 | ||
- | 660 | if(FromCamCtrl.CamStatus & CAM_STATE_CAM_DISCONN) LCD_printfxy(0,2,"Disconn.") |
|
- | 661 | else |
|
- | 662 | { |
|
- | 663 | if(FromCamCtrl.CamStatus & CAM_STATE_OFF) LCD_printfxy(0,2,"OFF ") else LCD_printfxy(0,2,"ON "); |
|
- | 664 | } |
|
- | 665 | LCD_printfxy(10,2,"Pics:%3d ",FromCamCtrl.PhotoCount); |
|
- | 666 | //LCD_printfxy(5,2,"x%2x ",FromCamCtrl.CamStatus); |
|
- | 667 | if(FromCamCtrl.PPM1Okay) LCD_printfxy(0,3,"Zoom:%3i",FromCamCtrl.PPM1Data); |
|
- | 668 | if(!FromCamCtrl.PPM2Okay) // there is PPM Input connected to the CamCtrl |
|
636 | 669 | { |
|
- | 670 | LCD_printfxy(14,3,"(TRIG)"); |
|
637 | // LCD_printfxy(0,0,"PPM Input"); |
671 | if(EE_Parameter.CamCtrlModeChannel == 0) |
638 | /* |
672 | { |
- | 673 | LCD_printfxy(9,3,"(REC)"); // Control only possible if no switch is assigned |
|
639 | LCD_printfxy(0,0,"%4i %4i %4i %4i",PPM_In[1],PPM_In[2],PPM_In[3],PPM_In[4]); |
674 | } |
- | 675 | else LCD_printfxy(0,3,"CH:%3i",127+PPM_In[EE_Parameter.CamCtrlModeChannel]); |
|
- | 676 | ||
- | 677 | if(Keys & KEY3) |
|
640 | LCD_printfxy(0,1,"%4i %4i %4i %4i",PPM_In[5],PPM_In[6],PPM_In[7],PPM_In[8]); |
678 | { |
641 | LCD_printfxy(0,2,"%4i %4i %4i %4i",PPM_In[9],PPM_In[10],PPM_In[11],PPM_In[12]); |
679 | ToCamCtrl.CamCommand &= ~(CAM_CMD_REC_OFF|CAM_CMD_REC_ON); |
- | 680 | if(FromCamCtrl.CamStatus & CAM_STATE_REC_ACTIVE) ToCamCtrl.CamCommand |= CAM_CMD_REC_OFF; |
|
- | 681 | else ToCamCtrl.CamCommand |= CAM_CMD_REC_ON; |
|
- | 682 | } |
|
642 | LCD_printfxy(0,3,"%4i %4i %4i %4i",PPM_In[13],PPM_In[14],PPM_In[15],PPM_In[16]); |
683 | if(Keys & KEY4) ToCamCtrl.CamCommand |= CAM_CMD_SHUTTER; |
643 | LCD_printfxy(0,0,"%4i %4i %4i %4i",PPM_In[17],PPM_In[18],PPM_In[19],PPM_In[20]); |
684 | //if(Keys & KEY4) ToCamCtrl.CamCommand |= CAM_CMD_RESET_CAM; |
644 | LCD_printfxy(0,1,"%4i %4i %4i %4i",PPM_In[21],PPM_In[22],PPM_In[23],PPM_In[24]); |
685 | //if(Keys & KEY4) ToCamCtrl.CamCommand |= CAM_CMD_SWITCH_ON; |
- | 686 | //if(Keys & KEY4) ToCamCtrl.CamCommand |= CAM_CMD_SWITCH_OFF; |
|
- | 687 | } |
|
- | 688 | else |
|
645 | LCD_printfxy(0,2,"%4i %4i %4i %4i",PPM_In[25],PPM_In[26],PPM_In[27],PPM_In[28]); |
689 | { |
646 | LCD_printfxy(0,3,"%4i %4i %4i %4i",PPM_In[29],PPM_In[30],PPM_In[31],PPM_In[32]); |
690 | if(FromCamCtrl.PPM2Okay) LCD_printfxy(10,3,"PPM:%3i",FromCamCtrl.PPM2Data); |
- | 691 | } |
|
647 | */ |
692 | } |
- | 693 | break; |
|
648 | break; |
694 | |
649 | default: |
695 | default: |
650 | //MaxMenuItem = MenuItem - 1; |
696 | //MaxMenuItem = MenuItem - 1; |
651 | MenuItem = 0; |
697 | MenuItem = 0; |
652 | break; |
698 | break; |