move code between files

This commit is contained in:
Thefeli73 2021-04-14 01:52:34 +02:00
parent 14a8734084
commit 40db36a016
2 changed files with 10 additions and 11 deletions

View File

@ -94,21 +94,12 @@ void setup() {
pinMode(MotorPinB, OUTPUT);
pinMode(MotorSpeedB, OUTPUT);
pinMode(MotorBrakeB, OUTPUT);
half_revolutionsA = 0;
rpmA = 0;
timeoldA = 0;
half_revolutionsB = 0;
rpmB = 0;
timeoldB = 0;
}
void loop() {
gyro_loop();
safe_angle = int(round(angle_pitch_output));
if(temp_loops>250){
Serial.println("");
Serial.print(" pitch Angle = "); Serial.println(angle_pitch_output);

View File

@ -79,6 +79,14 @@ void gyro_setup(){
delay(100);
calibrateGyro();
half_revolutionsA = 0;
rpmA = 0;
timeoldA = 0;
half_revolutionsB = 0;
rpmB = 0;
timeoldB = 0;
}
void gyro_loop(){