Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 2 additions & 0 deletions src/tramp_protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ void tramp_receive(void) {
}

void tramp_init(void) {
#ifndef _RF_CALIB
uint16_t time_ms = 3000;
RF_POWER = POWER_MAX + 2;
while (time_ms--) {
Expand All @@ -255,5 +256,6 @@ void tramp_init(void) {
}
if (!tramp_lock)
RF_POWER = I2C_Read8(ADDR_EEPROM, EEP_ADDR_RF_POWER);
#endif
}
#endif