1
0
forked from me/IronOS

Retune PID, improve response rate slightly. (But slightly more oscillation)

This commit is contained in:
Ben V. Brown
2017-08-02 21:38:42 +10:00
parent b0264be3c5
commit 90599a8ae6
8 changed files with 90 additions and 51 deletions

View File

@@ -18,7 +18,7 @@ int main(void) {
Clear_Watchdog(); //reset the Watch dog timer
ProcessUI();
DrawUI();
delayMs(50); //Slow the system down a little bit
delayMs(30); //Slow the system down a little bit
if (GPIO_ReadInputDataBit(GPIOB, GPIO_Pin_5) == Bit_RESET) {
lastMovement = millis();
//This is a workaround for the line staying low as the user is still moving. (ie sensitivity is too high for their amount of movement)
@@ -39,13 +39,13 @@ void setup() {
setupPID(); //Init the PID values
readIronTemp(systemSettings.tempCalibration, 0, 0); //load the default calibration value
if (systemSettings.OrientationMode == 2)
Init_Oled(!getOrientation()); //Init the OLED display
Init_Oled(0); //Init the OLED display in RH mode, since accel wont have started up yet
else
Init_Oled(systemSettings.OrientationMode); //Init the OLED display
Init_Oled(systemSettings.OrientationMode); //Init the OLED display
OLED_DrawString("VER 1.16", 8); //Version Number
delayMs(400); //Pause to show version number
delayMs(400); //Pause to show version number
showBootLogoIfavailable();
Start_Watchdog(5000); //start the system watch dog as 5 second timeout
Start_Watchdog(5000); //start the system watch dog as 5 second timeout
}