pull/1/head
Mathis et Yohan 2022-01-10 13:24:45 +01:00
rodzic 5572361847
commit f70ff0e763
11 zmienionych plików z 9710 dodań i 27 usunięć

BIN
.DS_Store vendored

Plik binarny nie jest wyświetlany.

BIN
RLS_V1.0/.DS_Store vendored

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -0,0 +1,36 @@
Name;Part Number;Order Qty. ;Link
Onboard Computer ;;;
JST-GH PCB Connector;BM02B-GHS-TBT;10;https://www.aliexpress.com/item/4000492364443.html
JST-GH PCB Connector;SM02B-GHS-TB;10;https://www.aliexpress.com/item/4000492364443.html
JST-GH PCB Connector;BM03B-GHS-TBT;10;https://www.aliexpress.com/item/4000492364443.html
JST-GH PCB Connector;SM04B-GHS-TB;10;https://www.aliexpress.com/item/4000492364443.html
JST-GH PCB Connector;BM04B-GHS-TBT;10;https://www.aliexpress.com/item/4000492364443.html
JST-GH PCB Connector;SM06B-GHS-TB;10;https://www.aliexpress.com/item/4000492364443.html
JST-GH PCB Connector;BM06B-GHS-TBT;10;https://www.aliexpress.com/item/4000492364443.html
JST-HX PCB Connector;S2B-XH-A;10;https://fr.aliexpress.com/item/10000014303828.html
5V NPN Transistor ;BD139;2;
5V Linear Voltage Regulator ;L7805ABV ;2;
5-35V to 7-9V Buck Converter Breakout;;2;http://www.mateksys.com/?portfolio=mbec6s
5-35V to 5-6V Buck Converter Breakout;;2;https://shop.iflight-rc.com/quad-parts-cat20/electronics-cat27/accessories-cat137/micro-2-8s-bec-5v-12v-output-pro747
Capacitor 10µF 16V 5*12mm;;5;
Female Standart 2.54mm Header >24*1;;2;
Male Standart 2.54mm Header > 3*1;;3;
Trough Hole Transistor Resistance ;;;
;;;
;;;
;;;
Sensors ;;;
GPS (& Compass) ;Matek M8Q-5883;1;http://www.mateksys.com/?portfolio=m8q-5883
Barometer;BMP280;1;
;;;
;;;
Servos ;;;
Steering Servo;Parallax 360 Feedback;3;
Steering Servo Microcontroller;Seeduino Xiao;3;
Deployment Servo ;Metal Gear 9g servo ;1;
;;;
;;;
User Interface ;;;
Buzzer;5V Passive Buzzer;1;
RGB Led;WS2812 Adressable RGB Led;1;
Camera;Runcam Split 4 ;1;
1 Name Part Number Order Qty. Link
2 Onboard Computer
3 JST-GH PCB Connector BM02B-GHS-TBT 10 https://www.aliexpress.com/item/4000492364443.html
4 JST-GH PCB Connector SM02B-GHS-TB 10 https://www.aliexpress.com/item/4000492364443.html
5 JST-GH PCB Connector BM03B-GHS-TBT 10 https://www.aliexpress.com/item/4000492364443.html
6 JST-GH PCB Connector SM04B-GHS-TB 10 https://www.aliexpress.com/item/4000492364443.html
7 JST-GH PCB Connector BM04B-GHS-TBT 10 https://www.aliexpress.com/item/4000492364443.html
8 JST-GH PCB Connector SM06B-GHS-TB 10 https://www.aliexpress.com/item/4000492364443.html
9 JST-GH PCB Connector BM06B-GHS-TBT 10 https://www.aliexpress.com/item/4000492364443.html
10 JST-HX PCB Connector S2B-XH-A 10 https://fr.aliexpress.com/item/10000014303828.html
11 5V NPN Transistor BD139 2
12 5V Linear Voltage Regulator L7805ABV 2
13 5-35V to 7-9V Buck Converter Breakout 2 http://www.mateksys.com/?portfolio=mbec6s
14 5-35V to 5-6V Buck Converter Breakout 2 https://shop.iflight-rc.com/quad-parts-cat20/electronics-cat27/accessories-cat137/micro-2-8s-bec-5v-12v-output-pro747
15 Capacitor 10µF 16V 5*12mm 5
16 Female Standart 2.54mm Header >24*1 2
17 Male Standart 2.54mm Header > 3*1 3
18 Trough Hole Transistor Resistance
19
20
21
22 Sensors
23 GPS (& Compass) Matek M8Q-5883 1 http://www.mateksys.com/?portfolio=m8q-5883
24 Barometer BMP280 1
25
26
27 Servos
28 Steering Servo Parallax 360 Feedback 3
29 Steering Servo Microcontroller Seeduino Xiao 3
30 Deployment Servo Metal Gear 9g servo 1
31
32
33 User Interface
34 Buzzer 5V Passive Buzzer 1
35 RGB Led WS2812 Adressable RGB Led 1
36 Camera Runcam Split 4 1

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -1,16 +0,0 @@
Name ,Manufacture Part Number,Order Qty.
JST-GH PCB Connector,BM02B-GHS-TBT,10
JST-GH PCB Connector,SM02B-GHS-TB,10
JST-GH PCB Connector,BM03B-GHS-TBT,10
JST-GH PCB Connector,SM04B-GHS-TB,10
JST-GH PCB Connector,BM04B-GHS-TBT,10
JST-GH PCB Connector,SM05B-GHS-TB,10
JST-GH PCB Connector,SM06B-GHS-TB,10
JST-GH PCB Connector,BM06B-GHS-TBT,10
JST-HX PCB Connector,S2B-XH-A,10
5V Linear Voltage Regulator ,L7805ABV ,2
5-35V to 7-9V Buck Converter Breakout,,2
5-35V to 5-6V Buck Converter Breakout,,2
Capacitor 10µF 16V 5*12mm,,5
Female Standart 2.54mm Header >24*1,,2
Male Standart 2.54mm Header > 3*1,,3
1 Name Manufacture Part Number Order Qty.
2 JST-GH PCB Connector BM02B-GHS-TBT 10
3 JST-GH PCB Connector SM02B-GHS-TB 10
4 JST-GH PCB Connector BM03B-GHS-TBT 10
5 JST-GH PCB Connector SM04B-GHS-TB 10
6 JST-GH PCB Connector BM04B-GHS-TBT 10
7 JST-GH PCB Connector SM05B-GHS-TB 10
8 JST-GH PCB Connector SM06B-GHS-TB 10
9 JST-GH PCB Connector BM06B-GHS-TBT 10
10 JST-HX PCB Connector S2B-XH-A 10
11 5V Linear Voltage Regulator L7805ABV 2
12 5-35V to 7-9V Buck Converter Breakout 2
13 5-35V to 5-6V Buck Converter Breakout 2
14 Capacitor 10µF 16V 5*12mm 5
15 Female Standart 2.54mm Header >24*1 2
16 Male Standart 2.54mm Header > 3*1 3

Wyświetl plik

@ -12,7 +12,7 @@
// ----------------------------------- SETUP PANEL ----------------------------------- //
#define i_want_to_fly false // Simulated servo movement to test the servo movement :))
#define buzzer_turn true // Buzzer sounds as function of the turn command
#define buzzer_turn false // Buzzer sounds as function of the turn command
#define no_init false // Skip init, for testing only purposes
#define rc_mode 1 // 0 = only roll, 1 = pitch and roll mixed, 2 = pitch and roll separated
#define autopilot_mode 1 // Control linear or with "hands up"
@ -242,6 +242,8 @@ int loop_time_count = 0;
int delaySD = 100; // Datalog
int delayTLM = 1000; // Tlm
bool reboot_cmd = false;
// WATCHDOG //
Watchdog watchdog;
@ -311,6 +313,7 @@ void setup() {
EEPROM.get(70, baro_set);
EEPROM.get(90, time_number);
EEPROM.get(120, reboot_time);
EEPROM.get(160, waypoint_number);
flight_rebooted = true;
}
@ -689,7 +692,6 @@ else {
// ----------------------------------------------------- State machine ----------------------------------------------------- //
void flight_state() {
if (flight_mode != prev_mode) {
@ -878,7 +880,9 @@ void ready_steady() {
//------------------- 2 -------------------//
void flight_ascent() { if (vspeed<0.5) {flight_mode = 1; strip.setBrightness(255);} }
void flight_ascent() {
if (vspeed<0.5) {flight_mode = 1; strip.setBrightness(255);}
}
//------------------- 3 -------------------//
@ -922,7 +926,11 @@ void flight_gliding_manual() {
//------------------- 7 -------------------//
void landed() { if ((baro_stab == false) or (gps_stab == false)) {flight_mode = 1; strip.setBrightness(255);} }
void landed() {
if ((baro_stab == false) or (gps_stab == false)) {
flight_mode = 1; strip.setBrightness(255);
}
}
//------------------- 8 -------------------//
@ -944,9 +952,7 @@ void motorised_auto() {
//------------------- 10 -------------------//
void motorised_failSafe() {
navigation();
if (failSafe == false) { flight_mode = 8; }
}
// ----------------------------------------------------- Apply command ----------------------------------------------------- //
@ -1419,7 +1425,19 @@ void getconfig() {
void navigation() {
bool skipp = false;
bool skipp = false;
/*
while (Serial.available()) {
char memory = Serial.read();
if (memory == 'S') {
skipp = true;
}
if (memory == 'W') {
Serial.println(waypoint_number);
}
}
*/
if (nav_waypoint == true) {
if ((TinyGPSPlus::distanceBetween(gps.location.lat(),gps.location.lng(),lat_B,lon_B)<waypoint[waypoint_number].radius) or (skipp == true)) {
@ -1448,16 +1466,27 @@ if (loop_time_count >= 100) {
if (loop_time>loop_time_max_loc) {loop_time_max_loc = loop_time; }
loop_time_count++;
}
if (loop_time<250000) {watchdog.reset(); crash_count = 0; }
if (loop_time>250000) {
if (loop_time<250000 and (reboot_cmd == false)) {watchdog.reset(); crash_count = 0; }
/*
while (Serial.available()) {
char memory = Serial.read();
if (memory == 'R') {
reboot_cmd = true;
}
}
*/
if (loop_time>250000 or (reboot_cmd == true)) {
crash_count = (crash_count + 1);
if (crash_count<=15) { watchdog.reset(); }
if (crash_count<=5 and (reboot_cmd == false)) { watchdog.reset(); }
else {
reboot_state = 1;
EEPROM.put(0, reboot_state);
EEPROM.put(120, millis());
EEPROM.put(160, waypoint_number);
delay(2000);
}
}
}