This repository was archived by the owner on Apr 9, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.h
More file actions
56 lines (42 loc) · 1.14 KB
/
init.h
File metadata and controls
56 lines (42 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef INIT_H
#define INIT_H
#include <stdint.h>
#define DEADZONE 40
#define RJ_Y_CENTER 0x05DD
#define LJ_Y_CENTER 0x05DD
#define MAX_FWD_OFFSET 500
extern volatile uint8_t rxCount;
extern volatile uint8_t rxDone;
extern volatile uint8_t get_flySky_info_buf[26];
void initialize();
void send_set_pcu_info();
void send_get_pcu_info();
void send_get_flySky_info();
void send_motor_settings(uint8_t dirA, uint8_t pwmA, uint8_t dirB, uint8_t pwmB);
void send_set_laser_scope();
void send_shoot_laser();
void send_request_repair();
void send_transmit_repair();
void send_surface_exploration(uint16_t task_id, uint16_t task_value);
void PlayC4(uint16_t duration_ms);
void PlayF4(uint16_t duration_ms);
void PlayA4(uint16_t duration_ms);
void PlayC5(uint16_t duration_ms);
void I2C_Init();
void APDS9960_Init();
void APDS9960_Reset();
typedef struct {
uint16_t red;
uint16_t green;
uint16_t blue;
uint16_t clear;
} RGBC_t;
RGBC_t APDS9960_ReadColors();
extern uint8_t uid[4];
void RFID_initialize();
void RC522_InitChip();
uint8_t RC522_ReadUID(uint8_t *uid4);
extern volatile uint16_t current_hz;
void ADC_Init();
void SPW_sample();
#endif