kopia lustrzana https://github.com/YohanHadji/R2Home
update BOM
rodzic
5572361847
commit
f70ff0e763
Plik binarny nie jest wyświetlany.
Plik binarny nie jest wyświetlany.
Plik binarny nie jest wyświetlany.
|
@ -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;
|
|
Plik binarny nie jest wyświetlany.
Plik diff jest za duży
Load Diff
Plik binarny nie jest wyświetlany.
|
@ -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
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue