Cosmetics and some commenting.
This commit is contained in:
154
bc.h
154
bc.h
@@ -607,121 +607,121 @@ public:
|
||||
Motor_Assist_Lowspeed_Ramp_Flag = 0x40, // Enables A Lower Speed Ramp. 0: Ramp Disabled, 1: Ramp Enabled
|
||||
|
||||
Motor_Assist_Direction = 0x42, // -
|
||||
Motor_Sn_Stator_Type = 0x43, // -
|
||||
Motor_Geometry_Circ_Hi = 0x44,
|
||||
Motor_Geometry_Circ_Lo = 0x45,
|
||||
Motor_Sn_Stator_Type = 0x43, // -
|
||||
Motor_Geometry_Circ_Hi = 0x44,
|
||||
Motor_Geometry_Circ_Lo = 0x45,
|
||||
|
||||
Motor_Torque_Gauge_Polarity = 0x46, // -
|
||||
Motor_Torque_Gauge_Polarity = 0x46, // -
|
||||
|
||||
Motor_Status_Main = 0x47, // Indicates The Current Main Status Of The Motor. 0-Running, 1-Nocommand, 2-Startup, 3-I2cshutoff, 4-Antibackwardshort, 5-Alarmregen, 6-Alarmshort, 7-Overspeedi, 8-Overspeedv, 9-V12uvp, 10-V12ovp, 11-Vpwruvp, 12-Vpwrovp, 13-Ocprotect, 14-Badstatorpn, 15-Hallerror
|
||||
Motor_Status_Main = 0x47, // Indicates The Current Main Status Of The Motor. 0-Running, 1-Nocommand, 2-Startup, 3-I2cshutoff, 4-Antibackwardshort, 5-Alarmregen, 6-Alarmshort, 7-Overspeedi, 8-Overspeedv, 9-V12uvp, 10-V12ovp, 11-Vpwruvp, 12-Vpwrovp, 13-Ocprotect, 14-Badstatorpn, 15-Hallerror
|
||||
|
||||
Motor_Sn_Item_Hi = 0x60, // Serial Number
|
||||
Motor_Sn_Item_Lo = 0x61,
|
||||
Motor_Sn_Pn_Hi = 0x62, // Partnumber
|
||||
Motor_Sn_Pn_Lo = 0x63,
|
||||
Motor_Sn_Year = 0x64, // Mfd. Year
|
||||
Motor_Sn_Month = 0x65, // Mfd. Month
|
||||
Motor_Sn_Day = 0x66, // Mfd. Day
|
||||
Motor_Sn_Item_Hi = 0x60, // Serial Number
|
||||
Motor_Sn_Item_Lo = 0x61,
|
||||
Motor_Sn_Pn_Hi = 0x62, // Partnumber
|
||||
Motor_Sn_Pn_Lo = 0x63,
|
||||
Motor_Sn_Year = 0x64, // Mfd. Year
|
||||
Motor_Sn_Month = 0x65, // Mfd. Month
|
||||
Motor_Sn_Day = 0x66, // Mfd. Day
|
||||
|
||||
Motor_Sn_Oem_Hi = 0x67, // Oem
|
||||
Motor_Sn_Oem_Lo = 0x68,
|
||||
Motor_Sn_Product_Hi = 0x69, // Product
|
||||
Motor_Sn_Product_Lo = 0x6a,
|
||||
Motor_Sn_Location = 0x6b, // Location
|
||||
Motor_Sn_Oem_Hi = 0x67, // Oem
|
||||
Motor_Sn_Oem_Lo = 0x68,
|
||||
Motor_Sn_Product_Hi = 0x69, // Product
|
||||
Motor_Sn_Product_Lo = 0x6a,
|
||||
Motor_Sn_Location = 0x6b, // Location
|
||||
|
||||
Motor_Torque_Gauge_Type = 0x6c, // -
|
||||
Motor_Torque_Gauge_Type = 0x6c, // -
|
||||
|
||||
Motor_Assist_Stator_Pn_Hi = 0x6d, // -
|
||||
Motor_Assist_Stator_Pn_Lo = 0x6e, //
|
||||
Motor_Assist_Stator_Pn_Hi = 0x6d, // -
|
||||
Motor_Assist_Stator_Pn_Lo = 0x6e, //
|
||||
|
||||
Motor_Status_Power_Voltage_Hi = 0x70, // - [Unit:V, Factor:0.001]
|
||||
Motor_Status_Power_Voltage_Lo = 0x71,
|
||||
Motor_Status_Power_Voltage_Hi = 0x70, // - [Unit:V, Factor:0.001]
|
||||
Motor_Status_Power_Voltage_Lo = 0x71,
|
||||
|
||||
Motor_Status_12v_Voltage_Hi = 0x72, // - [Unit:V, Factor:0.001]
|
||||
Motor_Status_12v_Voltage_Lo = 0x73,
|
||||
Motor_Status_12v_Voltage_Hi = 0x72, // - [Unit:V, Factor:0.001]
|
||||
Motor_Status_12v_Voltage_Lo = 0x73,
|
||||
|
||||
Motor_Status_5v_Voltage_Hi = 0x74, // - [Unit:V, Factor:0.001]
|
||||
Motor_Status_5v_Voltage_Lo = 0x75,
|
||||
Motor_Status_5v_Voltage_Hi = 0x74, // - [Unit:V, Factor:0.001]
|
||||
Motor_Status_5v_Voltage_Lo = 0x75,
|
||||
|
||||
Motor_Stat_Max_Power_Voltage_Hi = 0x80, // - [Unit:V, Factor:0.001]
|
||||
Motor_Stat_Max_Power_Voltage_Lo = 0x81,
|
||||
Motor_Stat_Max_Power_Voltage_Hi = 0x80, // - [Unit:V, Factor:0.001]
|
||||
Motor_Stat_Max_Power_Voltage_Lo = 0x81,
|
||||
|
||||
Motor_Stat_Max_Temperature_Hi = 0x82, // -
|
||||
Motor_Stat_Max_Temperature_Lo = 0x83,
|
||||
Motor_Stat_Max_Temperature_Hi = 0x82, // -
|
||||
Motor_Stat_Max_Temperature_Lo = 0x83,
|
||||
|
||||
Motor_Stat_Odo_Hi = 0x84, // - [Unit:Km]
|
||||
Motor_Stat_Odo_Lo = 0x85,
|
||||
Motor_Stat_Odo_Hi = 0x84, // - [Unit:Km]
|
||||
Motor_Stat_Odo_Lo = 0x85,
|
||||
|
||||
Motor_Stat_Chrono_Hours_Hi = 0x86, // - [Unit:H]
|
||||
Motor_Stat_Chrono_Hours_Lo = 0x87,
|
||||
Motor_Stat_Chrono_Hours_Hi = 0x86, // - [Unit:H]
|
||||
Motor_Stat_Chrono_Hours_Lo = 0x87,
|
||||
|
||||
Motor_Stat_Chrono_Seconds_Hi = 0x88, // - [Unit:S]
|
||||
Motor_Stat_Chrono_Seconds_Lo = 0x89,
|
||||
Motor_Stat_Chrono_Seconds_Hi = 0x88, // - [Unit:S]
|
||||
Motor_Stat_Chrono_Seconds_Lo = 0x89,
|
||||
|
||||
Motor_Preference_Region = 0x8a, // -
|
||||
Motor_Preference_Region = 0x8a, // -
|
||||
|
||||
Motor_Assist_Maxspeed = 0x8b, // - [Unit:Km/H]
|
||||
Motor_Assist_Dynamic_Flag = 0x8c, // - [Range:0..1]
|
||||
Motor_Assist_Maxspeed = 0x8b, // - [Unit:Km/H]
|
||||
Motor_Assist_Dynamic_Flag = 0x8c, // - [Range:0..1]
|
||||
|
||||
Motor_Config_Pwm_Limit_Enable = 0x8d, // -
|
||||
Motor_Config_Pwm_Limit_Enable = 0x8d, // -
|
||||
|
||||
Motor_Status_Codes = 0x92, // Indicates Conditions Currently Detected By Motor. Bit 0-Sensor Saturation
|
||||
Motor_Status_Codes_Latch = 0x93, // Indicates Conditions Detected By Motor Since Its Last Power Up. See Bit Description Of Status.Codes
|
||||
Motor_Status_Codes = 0x92, // Indicates Conditions Currently Detected By Motor. Bit 0-Sensor Saturation
|
||||
Motor_Status_Codes_Latch = 0x93, // Indicates Conditions Detected By Motor Since Its Last Power Up. See Bit Description Of Status.Codes
|
||||
|
||||
|
||||
Motor_Protect_Unlock = 0xa5, // Unlock Register, Write Unlock_Key Here Before Setting Protected Registers
|
||||
Motor_Protect_Unlock_Key = 0xaa,
|
||||
Motor_Protect_Lock_Key = 0x00,
|
||||
Motor_Protect_Unlock = 0xa5, // Unlock Register, Write Unlock_Key Here Before Setting Protected Registers
|
||||
Motor_Protect_Unlock_Key = 0xaa,
|
||||
Motor_Protect_Lock_Key = 0x00,
|
||||
|
||||
Motor_Stat_Hall_Dchs_Hi = 0xb0, // -
|
||||
Motor_Stat_Hall_Dchs_Lo = 0xb1,
|
||||
Motor_Stat_Hall_Dchs_Hi = 0xb0, // -
|
||||
Motor_Stat_Hall_Dchs_Lo = 0xb1,
|
||||
|
||||
Motor_Stat_Hall_Trans_Hi = 0xb2, // -
|
||||
Motor_Stat_Hall_Trans_Lo = 0xb3,
|
||||
Motor_Stat_Hall_Trans_Hi = 0xb2, // -
|
||||
Motor_Stat_Hall_Trans_Lo = 0xb3,
|
||||
|
||||
Motor_Stat_Hall_Ring_Hi = 0xb4, // -
|
||||
Motor_Stat_Hall_Ring_Lo = 0xb5,
|
||||
Motor_Stat_Hall_Ring_Hi = 0xb4, // -
|
||||
Motor_Stat_Hall_Ring_Lo = 0xb5,
|
||||
|
||||
Motor_Stat_Hall_Lost_Hi = 0xb6, // -
|
||||
Motor_Stat_Hall_Lost_Lo = 0xb7,
|
||||
Motor_Stat_Hall_Lost_Hi = 0xb6, // -
|
||||
Motor_Stat_Hall_Lost_Lo = 0xb7,
|
||||
|
||||
Motor_Torque_Gauge_Noise_Hi = 0xc4, // - [Unit:%, Range:0..100, Factor:0.0015259]
|
||||
Motor_Torque_Gauge_Noise_Lo = 0xc5,
|
||||
Motor_Torque_Gauge_Noise_Hi = 0xc4, // - [Unit:%, Range:0..100, Factor:0.0015259]
|
||||
Motor_Torque_Gauge_Noise_Lo = 0xc5,
|
||||
|
||||
Motor_Torque_Gauge_Delay_Hi = 0xc6, // - [Unit:S, Range:0..?, Factor:0.001]
|
||||
Motor_Torque_Gauge_Delay_Lo = 0xc7,
|
||||
Motor_Torque_Gauge_Delay_Hi = 0xc6, // - [Unit:S, Range:0..?, Factor:0.001]
|
||||
Motor_Torque_Gauge_Delay_Lo = 0xc7,
|
||||
|
||||
Motor_Torque_Gauge_Speed = 0xc8, // - [Unit:Rpm, Range:0..?, Factor:9.091]
|
||||
Motor_Torque_Gauge_Speed = 0xc8, // - [Unit:Rpm, Range:0..?, Factor:9.091]
|
||||
|
||||
Motor_Torque_Gauge_Voltage_Hi = 0xc9, // - [Unit:V, Range:0..5, Factor:0.000076295, Offset:5]
|
||||
Motor_Torque_Gauge_Voltage_Lo = 0xca,
|
||||
Motor_Torque_Gauge_Voltage_Hi = 0xc9, // - [Unit:V, Range:0..5, Factor:0.000076295, Offset:5]
|
||||
Motor_Torque_Gauge_Voltage_Lo = 0xca,
|
||||
|
||||
Motor_Torque_Gauge_Reference_Hi = 0xcb, // - [Unit:V, Range:0..5, Factor:0.000076295, Offset:5]
|
||||
Motor_Torque_Gauge_Reference_Lo = 0xcc,
|
||||
Motor_Torque_Gauge_Reference_Hi = 0xcb, // - [Unit:V, Range:0..5, Factor:0.000076295, Offset:5]
|
||||
Motor_Torque_Gauge_Reference_Lo = 0xcc,
|
||||
|
||||
Motor_Config_Communication_Mode_Hi = 0xcd, // Sets The Communication Mode. 0 For Can And 0xca01 For I2c
|
||||
Motor_Config_Communication_Mode_Hi = 0xcd, // Sets The Communication Mode. 0 For Can And 0xca01 For I2c
|
||||
|
||||
Motor_Torque_Gauge_Gain = 0xce, // - [Unit:%, Range:0..398, Factor:1.5625]
|
||||
Motor_Torque_Gauge_Gain = 0xce, // - [Unit:%, Range:0..398, Factor:1.5625]
|
||||
|
||||
Motor_Torque_Gauge_Max_Voltage = 0xe0, // Maximum Voltage Allowed For The Sensor. When The Sensor Detect A Voltage Over This Value For Motor.Torque.Gaugemaxvoltagedelay, It Assumes An Electrical Failure And Cuts Assistance [Unit:V, Range:0..5, Factor:0.019608]
|
||||
Motor_Torque_Gauge_Max_Voltage_Delay = 0xe1, // Time After Which A Voltage Over Motor.Torque.Gaugemaxvoltage Is Assumed To Be An Electrical Failure, Cutting Assistance [Unit:S, Range:0..25.5, Factor:0.1]
|
||||
Motor_Torque_Gauge_Max_Voltage = 0xe0, // Maximum Voltage Allowed For The Sensor. When The Sensor Detect A Voltage Over This Value For Motor.Torque.Gaugemaxvoltagedelay, It Assumes An Electrical Failure And Cuts Assistance [Unit:V, Range:0..5, Factor:0.019608]
|
||||
Motor_Torque_Gauge_Max_Voltage_Delay = 0xe1, // Time After Which A Voltage Over Motor.Torque.Gaugemaxvoltage Is Assumed To Be An Electrical Failure, Cutting Assistance [Unit:S, Range:0..25.5, Factor:0.1]
|
||||
|
||||
Motor_Assist_Level_Offslope_Hi = 0xd0, // Speed At Which The Assist Level Set In The Motor Decreases When The Console Stops Sending Requests (When It Is Removed For Example) [Unit:%/S, Factor:3.05]
|
||||
Motor_Assist_Level_Offslope_Lo = 0xd1,
|
||||
Motor_Assist_Level_Offslope_Hi = 0xd0, // Speed At Which The Assist Level Set In The Motor Decreases When The Console Stops Sending Requests (When It Is Removed For Example) [Unit:%/S, Factor:3.05]
|
||||
Motor_Assist_Level_Offslope_Lo = 0xd1,
|
||||
|
||||
Motor_Assist_Regen_Inflex = 0xd2, // Speed From Which Regen Is Not Attenuated [Unit:Rpm, Range:5..?, Factor:9.091]
|
||||
Motor_Assist_Regen_Inflex = 0xd2, // Speed From Which Regen Is Not Attenuated [Unit:Rpm, Range:5..?, Factor:9.091]
|
||||
|
||||
Motor_Assist_Maxspeed_Derate_Delta = 0xd3, // Speed Before Maxspeed To Start Derating [Unit:Rpm, Factor:9.091]
|
||||
Motor_Assist_Maxspeed_Derate_Delta = 0xd3, // Speed Before Maxspeed To Start Derating [Unit:Rpm, Factor:9.091]
|
||||
//{%Endregion}
|
||||
|
||||
|
||||
//{%Region Sensor}
|
||||
ID_Sensor = 0x68,
|
||||
Reg_Sensor_Config_Gauge_Gain_Hi = 0x10,
|
||||
Reg_Sensor_Config_Gauge_Gain_Lo = 0x11,
|
||||
ID_Sensor = 0x68,
|
||||
Reg_Sensor_Config_Gauge_Gain_Hi = 0x10,
|
||||
Reg_Sensor_Config_Gauge_Gain_Lo = 0x11,
|
||||
|
||||
Reg_Sensor_Config_Ramp_Up_Steps_Hi = 0x12,
|
||||
Reg_Sensor_Config_Ramp_Up_Steps_Lo = 0x13,
|
||||
Reg_Sensor_Config_Ramp_Up_Steps_Hi = 0x12,
|
||||
Reg_Sensor_Config_Ramp_Up_Steps_Lo = 0x13,
|
||||
|
||||
Reg_Sensor_Config_Decay_Delay_Hi = 0x14,
|
||||
Reg_Sensor_Config_Decay_Delay_Lo = 0x15,
|
||||
@@ -802,6 +802,10 @@ namespace BCTags
|
||||
inline constexpr auto Min = "Min"_L1;
|
||||
inline constexpr auto Max = "Max"_L1;
|
||||
inline constexpr auto Factor = "Factor"_L1;
|
||||
|
||||
inline constexpr auto ValueTag = "Wert"_L1;
|
||||
inline constexpr auto LabelTag = "Bezeichnung"_L1;
|
||||
|
||||
}
|
||||
|
||||
#endif // BC_H
|
||||
|
||||
Reference in New Issue
Block a user