Fixed multiple bugs and errors.
- Added WARNING handler - put voltage calculations to dedicated module fixed last errors. Updated menu repair screen without ERROR from PID This is version 0.9.0.3, which is used for the first duration test Will also be tagged git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@272 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
@@ -38,7 +38,11 @@
|
||||
|
||||
struct PIDParameters
|
||||
{
|
||||
|
||||
int Kp; // proportional constant
|
||||
int Ki; // integration constant
|
||||
int Kd; // differential constant
|
||||
int iMin;
|
||||
int iMax;
|
||||
};
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
@@ -51,5 +55,86 @@ struct PIDParameters
|
||||
// Function declarations
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
/** ----------------------------------------------------------------------------
|
||||
* PIDParameters_generateDefaultParameters
|
||||
* Description of function
|
||||
*
|
||||
* @param self
|
||||
* @param
|
||||
* @return void
|
||||
*
|
||||
* @todo
|
||||
* -----------------------------------------------------------------------------
|
||||
*/
|
||||
extern void PIDParameters_generateDefaultParameters(struct PIDParameters* self);
|
||||
|
||||
|
||||
/** ----------------------------------------------------------------------------
|
||||
* PIDParameters_setKp
|
||||
* Description of function
|
||||
*
|
||||
* @param self
|
||||
* @param Kp
|
||||
* @return void
|
||||
*
|
||||
* @todo
|
||||
* -----------------------------------------------------------------------------
|
||||
*/
|
||||
extern void PIDParameters_setKp(struct PIDParameters* self, int Kp);
|
||||
|
||||
|
||||
/** ----------------------------------------------------------------------------
|
||||
* PIDParameters_setKi
|
||||
* Description of function
|
||||
*
|
||||
* @param self
|
||||
* @param Ki
|
||||
* @return void
|
||||
*
|
||||
* @todo
|
||||
* -----------------------------------------------------------------------------
|
||||
*/
|
||||
extern void PIDParameters_setKi(struct PIDParameters* self, int Ki);
|
||||
|
||||
|
||||
/** ----------------------------------------------------------------------------
|
||||
* PIDParameters_setKd
|
||||
* Description of function
|
||||
*
|
||||
* @param self
|
||||
* @param Kd
|
||||
* @return void
|
||||
*
|
||||
* @todo
|
||||
* -----------------------------------------------------------------------------
|
||||
*/
|
||||
extern void PIDParameters_setKd(struct PIDParameters* self, int Kd);
|
||||
|
||||
|
||||
/** ----------------------------------------------------------------------------
|
||||
* PIDParameters_setiMin
|
||||
* Description of function
|
||||
*
|
||||
* @param self
|
||||
* @param Kp
|
||||
* @return void
|
||||
*
|
||||
* @todo
|
||||
* -----------------------------------------------------------------------------
|
||||
*/
|
||||
extern void PIDParameters_setiMin(struct PIDParameters* self, int iMin);
|
||||
|
||||
|
||||
/** ----------------------------------------------------------------------------
|
||||
* PIDParameters_setiMax
|
||||
* Description of function
|
||||
*
|
||||
* @param self
|
||||
* @param Kp
|
||||
* @return void
|
||||
*
|
||||
* @todo
|
||||
* -----------------------------------------------------------------------------
|
||||
*/
|
||||
extern void PIDParameters_setiMax(struct PIDParameters* self, int iMax);
|
||||
#endif /* PIDPARAMETERS_H_ */
|
||||
|
||||
Reference in New Issue
Block a user