Add HW UBOX_SIGNLE_85_200, and changed limits of UBOX_SIGNLE_

Added HW UBOX_SIGNLE_85_200, and changed limits of UBOX_SIGNLE_80.
This commit is contained in:
JohnSpintend 2023-07-28 22:07:53 +08:00
parent 76aedf16ac
commit 4ce002f91a
5 changed files with 82 additions and 5 deletions

View File

@ -28,6 +28,8 @@
#define HW_NAME "UBOX_SINGLE_100"
#elif defined (HW_UBOX_SINGLE_80)
#define HW_NAME "UBOX_SINGLE_80"
#elif defined (HW_UBOX_SINGLE_85_200)
#define HW_NAME "UBOX_SINGLE_85_200"
#else
#error "Must define hardware type"
#endif
@ -262,12 +264,24 @@
#endif
// Setting limits
#ifdef HW_UBOX_SINGLE_85_200
#define HW_LIM_CURRENT -300, 300.0
#define HW_LIM_CURRENT_IN -300.0, 300.0
#define HW_LIM_CURRENT_ABS 0.0, 420.0
#elif defined HW_UBOX_SINGLE_80
#define HW_LIM_CURRENT -150, 150.0
#define HW_LIM_CURRENT_IN -150.0, 150.0
#define HW_LIM_CURRENT_ABS 0.0, 210.0
#else
#define HW_LIM_CURRENT -135.0, 135.0
#define HW_LIM_CURRENT_IN -135.0, 135.0
#define HW_LIM_CURRENT_ABS 0.0, 180.0
#endif
#ifdef HW_UBOX_SINGLE_80
#define HW_LIM_VIN 11.0, 76.0
#define HW_LIM_VIN 11.0, 85.0
#elif defined HW_UBOX_SINGLE_85_200
#define HW_LIM_VIN 11.0, 85.0
#else
#define HW_LIM_VIN 11.0, 95.0
#endif

View File

@ -21,7 +21,7 @@
#define HW_UBOX_SINGLE_80_H_
#define HW_UBOX_SINGLE_80
#define MCCONF_L_MAX_VOLTAGE 72.0
#define MCCONF_L_MAX_VOLTAGE 78.0
#include "hw_ubox_100_core.h"

View File

@ -0,0 +1,34 @@
/*
Copyright 2018 Benjamin Vedder benjamin@vedder.se
This file is part of the VESC firmware.
The VESC firmware is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
The VESC firmware is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef HW_UBOX_SINGLE_85_200_H_
#define HW_UBOX_SINGLE_85_200_H_
#define HW_UBOX_SINGLE_85_200
#define MCCONF_L_MAX_VOLTAGE 82.0
#define MCCONF_L_MAX_ABS_CURRENT 400 // The maximum absolute current above which a fault is generated
#define MCCONF_FOC_SAMPLE_V0_V7 false // Run control loop in both v0 and v7 (requires phase shunts)
#define MCCONF_L_IN_CURRENT_MAX 250.0 // Input current limit in Amperes (Upper)
#define MCCONF_L_IN_CURRENT_MIN -200.0 // Input current limit in Amperes (Lower)
#include "hw_ubox_100_core.h"
#endif /* HW_UBOX_SINGLE_80_H_ */

View File

@ -0,0 +1,27 @@
/*
Copyright 2018 Benjamin Vedder benjamin@vedder.se
This file is part of the VESC firmware.
The VESC firmware is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
The VESC firmware is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef HW_UBOX_SINGLE_85_200_NO_LIMITS_H_
#define HW_UBOX_SINGLE_85_200_NO_LIMITS_H_
#define DISABLE_HW_LIMITS
#include "hw_ubox_single_85_200.h"
#endif /* HW_UBOX_SINGLE_80_NO_LIMITS_H_ */

View File

@ -123,6 +123,8 @@ package_dict["UBOX_SINGLE_100"] = [['ubox_single_100', default_name],
['ubox_single_100_no_limits', no_limits_name]]
package_dict["UBOX_SINGLE_80"] = [['ubox_single_80', default_name],
['ubox_single_80_no_limits', no_limits_name]]
package_dict["UBOX_SINGLE_85_200"] = [['ubox_single_85_200', 'default_name.bin'],
['ubox_single_85_200_no_limits', 'no_limits_name']]
package_dict["UBOX_V2_100"] = [['ubox_v2_100', default_name],
['ubox_v2_100_no_limits', no_limits_name]]
package_dict["EDU"] = [['edu', default_name],