|
|
static constexpr uint8_t | batterySeriesCount = 3 |
| | number of batteries in series for this model
|
| |
|
static constexpr uint8_t | batteryParellelCount = 1 |
| | number of batteries in parallel for this model
|
| |
|
static constexpr float | imuToCircuitRotationX_rad = 0.0f * c_degreesToRadians |
| |
|
static constexpr float | imuToCircuitRotationY_rad = 0.0f * c_degreesToRadians |
| |
|
static constexpr float | imuToCircuitRotationZ_rad = -9.0f * c_degreesToRadians |
| |
|
static constexpr float | imuToCircuitPositionX_m = 8.915f / 1000.0f |
| |
|
static constexpr float | imuToCircuitPositionY_m = -5.769f / 1000.0f |
| |
|
static constexpr float | imuToCircuitPositionZ_m = 0.0f / 1000.0f |
| |
|
static constexpr float | batteryChargeC_Rate = 0.33f |
| | Maximum charge rate.
|
| |
|
static constexpr float | batteryDischargeC_Rate = 1.0f |
| | Typical discharge rate.
|
| |
|
static constexpr uint32_t | batteryCapacity_mAH = batteryParellelCount * 4850 |
| | Battery capacity, in mA*hours.
|
| |
|
static constexpr uint16_t | minLiionVoltage_mV = 2500 |
| | minimum Li-ion voltage
|
| |
|
static constexpr uint16_t | typicalLiionVoltage_mV = 3630 |
| | standard 50% charge Li-ion voltage
|
| |
|
static constexpr uint16_t | maxLiionVoltage_mV = 4200 |
| | Absolute maximum allowed Li-ion voltage.
|
| |
|
static constexpr uint16_t | minSafeLiionVoltage_mV = 3100 |
| | minimum allowed li-ion voltage safe zone
|
| |
|
static constexpr uint16_t | maxSafeLiionVoltage_mV = 4100 |
| | maximum allowed li-ion voltage safe zone
|
| |
| static constexpr uint16_t | minSingularBatteryVoltage_mV |
| | with added margins to avoid wrong detection
|
| |
| static constexpr uint16_t | maxSingularBatteryVoltage_mV |
| | with added margins to avoid wrong detection
|
| |
|
static constexpr float | maxSystemTemp_c = 70.0f |
| | maximum microcontroler temperature, in degrees
|
| |
|
static constexpr float | criticalSystemTemp_c = 80.0f |
| | absolute maximum microcontroler temperature, in degrees
|
| |
|
static constexpr uint16_t | batteryCritical = 300 |
| | in % *100, critical battery level
|
| |
|
static constexpr uint16_t | batteryLow = 500 |
| | in % *100, low battery level
|
| |
|
static constexpr uint32_t | maxVbusWireCurrent_mA = 3000 |
| | maximum current that the USB-C wires can carry
|
| |
|
static constexpr uint32_t | maxBatteryConnectorCurrent_mA = 3000 |
| | maximum current that the USB-C wires can carry
|
| |
|
static constexpr uint32_t | maxChargerCurrent_mA = 6000 |
| | maximum current that the power circuit can handle
|
| |
|
static constexpr uint32_t | maxVbusGateCurrent_mA = 5000 |
| | maximum current that the vbus gate can handle
|
| |
|
static constexpr uint32_t | maxOutputGateCurrent_mA = 35000 |
| | maximum current that the output gate can handle
|
| |
| static constexpr uint16_t | batteryMaxVoltage_mV = maxLiionVoltage_mV * batterySeriesCount |
| | max voltage of a single li-ion cell
|
| |
|
static constexpr uint16_t | batteryMaxVoltageSafe_mV = maxSafeLiionVoltage_mV * batterySeriesCount |
| | max voltage of a li-ion cell to maximise lifetime
|
| |
|
static constexpr uint16_t | batteryTypicalVoltageSafe_mV = typicalLiionVoltage_mV * batterySeriesCount |
| | typical pack voltage
|
| |
|
static constexpr uint16_t | batteryMinVoltage_mV = minLiionVoltage_mV * batterySeriesCount |
| | min voltage of a single li-ion cell
|
| |
|
static constexpr uint16_t | batteryMinVoltageSafe_mV = minSafeLiionVoltage_mV * batterySeriesCount |
| | min voltage of a li-ion cell to maximise lifetime
|
| |
|
static constexpr float | totalCons_Watt = consWattByMeter * ledStripLength_mm / 1000.0f |
| | Total maximum power usage of the led strip.
|
| |
|
static constexpr float | maxStripConsumption_A = 1000.0f * totalCons_Watt / stripInputMaxVoltage_mV |
| | Maximum led strip current usage, in Amps.
|
| |
| static constexpr uint32_t | batteryMaxChargeCurrent_mA |
| | Battery maximum charge current, in milliAmps.
|
| |
|
static constexpr uint32_t | batteryEndOfChargeCurrent_mA = batteryCapacity_mAH / 20 |
| | End of charge current (C/20), in milliAmps: in constant voltage phase, the charge is done below this current. The charge current never reaches 0 while the balancer bleeds cells, so a 0 current cannot be used.
|
| |
| static constexpr uint32_t | batteryMaxDischargeCurrent_mA |
| | Battery maximum discharge current, in milliAmps.
|
| |
|
static constexpr uint32_t | batteryTypicalPower_mWH = batteryCapacity_mAH * batteryTypicalVoltageSafe_mV / 1000 |
| | Battery standard power, in milliWatt*Hours.
|
| |
Define the board and hardware physical constants.