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,6 +18,7 @@
#include "Analog.h"
#include "MMA8652FC.h"
#include <string.h>
typedef enum {
STARTUP, //we are sitting on the prompt to push a button
SOLDERING, //Normal operating mode
@@ -31,8 +32,12 @@ typedef enum {
TEMPCAL, //Cal tip temp offset
} operatingModeEnum;
#define SETTINGSOPTIONSCOUNT 11 /*Number of settings in the settings menu*/
//#define PIDTUNING
#ifdef PIDTUNING
#define SETTINGSOPTIONSCOUNT (11+3) /*Number of settings in the settings menu*/
#else
#define SETTINGSOPTIONSCOUNT (11) /*Number of settings in the settings menu*/
#endif
typedef enum {
UVCO = 0,
SLEEP_TEMP,
@@ -46,6 +51,11 @@ typedef enum {
BOOSTMODE,
BOOSTTEMP,
POWERDISPLAY,
#ifdef PIDTUNING
PIDP,
PIDI,
PIDD,
#endif
} settingsPageEnum;
void ProcessUI();

View File

@@ -18,4 +18,5 @@ typedef struct {
int32_t computePID(uint16_t setpoint);
void setupPID(void);
extern pidSettingsType pidSettings;
#endif /* PID_H_ */