Merge remote-tracking branch 'origin/ACC-fix' into ACC-fix
# Conflicts: # UAV-ControlSystem/src/drivers/accel_gyro.c
This commit is contained in:
commit
52241202b1
@ -246,6 +246,8 @@ bool mpu6000_init(gyro_t* gyro, accel_t* accel)
|
||||
|
||||
HAL_Delay(60);
|
||||
|
||||
accel->pitchAngle = 0;
|
||||
accel->rollAngle = 0;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include "drivers/motors.h"
|
||||
#include "drivers/failsafe_toggles.h"
|
||||
#include "config/eeprom.h"
|
||||
#include "drivers/motormix.h"
|
||||
|
||||
const int MotorPWMPeriode = 2000; //Micro seconds
|
||||
const int MotorPWMInitPulse = 1000;
|
||||
@ -162,7 +163,11 @@ void pwmEnableMotor(uint8_t motor, motorOutput motorOutput)
|
||||
**************************************************************************/
|
||||
void pwmEnableAllMotors(motorOutput motorOutput)
|
||||
{
|
||||
for (uint8_t i = 1; i < 11; i++ ) pwmEnableMotor(i, motorOutput);
|
||||
for (uint8_t i = 1; i < 11; i++ )
|
||||
{
|
||||
pwmEnableMotor(i, motorOutput);
|
||||
pwmAdjustSpeedOfMotor(i,mixerConfig.minCommand);
|
||||
}
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
|
Reference in New Issue
Block a user