Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
Luftalian committed Oct 22, 2023
1 parent 64a56d6 commit 4abaea0
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ src/*
!src/*/
!src/README.md

src/RTD_PARAM.h
RTD_PARAM.h
19 changes: 0 additions & 19 deletions RFparam/RTD_PARAM.h

This file was deleted.

19 changes: 19 additions & 0 deletions src/com/ground/ground_setting.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#pragma once

#ifndef Ground_Setting
#define Ground_Setting

#include <Arduino.h>

#include <NEC920.hpp>

const int pin920Rx = 18;
const int pin920Tx = 19;
const int pin920Reset = 21;
const int pin920Wakeup = 22;
const int pin920Mode = 23;

NEC920 nec920;
bool isNec920Setup = false;

#endif
2 changes: 1 addition & 1 deletion src/com/ground/receive.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

#include <NEC920.hpp>

#include "../../domain/setting.h"
#include "../RFparam/RTD_PARAM.h"
#include "com/gimbal/send.h"
#include "ground_setting.h"

#define GroundPeriod 1

Expand Down
6 changes: 3 additions & 3 deletions src/com/ground/send.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

#include <NEC920.hpp>

#include "../../domain/setting.h"
#include "../RFparam/RTD_PARAM.h"
#include "domain/setting.h"
// #include "../../domain/setting.h"
// #include "../RFparam/RTD_PARAM.h"
// #include "ground_setting.h"

#define GroundSendPeriod 40

Expand Down
9 changes: 0 additions & 9 deletions src/domain/setting.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,9 @@
#define LEDPIN 18
#define SPIFREQ 5000000

const int pin920Rx = 18;
const int pin920Tx = 19;
const int pin920Reset = 21;
const int pin920Wakeup = 22;
const int pin920Mode = 23;

SPICREATE::SPICreate SPIC1;
SPICREATE::SPICreate SPIC2;

NEC920 nec920;
bool isNec920Setup = false;

uint8_t GroundMode = 0;
uint8_t GimbalMode = 0;

Expand Down

0 comments on commit 4abaea0

Please sign in to comment.