Skip to content

Commit

Permalink
calib L2 with camera
Browse files Browse the repository at this point in the history
  • Loading branch information
ligenxxxx committed Nov 12, 2024
1 parent 9b62b3d commit ac03ee7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ void camera_mode_detect(uint8_t init) {

if (cycles == 0) {
Set_720P60(0);
WriteReg(0, 0x50, 0x01);
video_format = VDO_FMT_720P60;
I2C_Write16(ADDR_TC3587, 0x0058, 0x00e0);
camera_type = CAMERA_TYPE_RESERVED;
Expand Down
4 changes: 2 additions & 2 deletions src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@
// #define EXTEND_BUF1

// mode
// #define _RF_CALIB
// #define REV_UART
#define _RF_CALIB
#define REV_UART
// #define VIDEO_PAT
// #define FIX_EEP
// #define RESET_CONFIG
Expand Down
6 changes: 6 additions & 0 deletions src/hardware.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,12 @@ void Init_HW() {
GetVtxParameter();
Get_EEP_LifeTime();
camera_init();
#ifdef _RF_CALIB
RF_POWER = 0; // max power
RF_FREQ = 0; // ch1
Init_6300RF(RF_FREQ, RF_POWER);
DM6300_AUXADC_Calib();
#endif
//--------- dm6300 --------------------
// move to RF_Delay_Init()
#endif
Expand Down
2 changes: 2 additions & 0 deletions src/mcu.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ void main(void) {
uart_baudrate_detect();
runcam_shutter_fix(seconds);
}
#ifndef _RF_CALIB
RF_Delay_Init();
#endif

#ifdef USE_USB_DET
usb_det_task();
Expand Down

0 comments on commit ac03ee7

Please sign in to comment.