input data on array

i have this code

const int pump_count = 2;
const uint8_t pump_pins[pump_count] = {5, 6,};
const uint32_t pump_half_periods[pump_count] = {1000, 2000};

uint8_t pump_states[pump_count];  // LOW or HIGH
uint32_t pump_last_actuations[pump_count];  // time in ms

void setup() {
    Serial.begin(9600);
    for (int i = 0; i < pump_count; i++) {
        pinMode(pump_pins[i], OUTPUT);
    }
}

void loop() {
  
    unsigned long now = millis();
    for (int i = 0; i < pump_count; i++) {
        if (now - pump_last_actuations[i] >= pump_half_periods[i]) {
            pump_states[i] = (pump_states[i] == LOW) ? HIGH : LOW;
            digitalWrite(pump_pins[i], pump_states[i]);
            pump_last_actuations[i] = now;
        }
       
    }   
     Serial.println(now);
     delay(1000);
}

but i want to change this

const uint32_t pump_half_periods[pump_count] = {1000, 2000};

this is a static input i want to another input from my calculation how can i store my calculation on to this array ? thx for helping me

Remove the 'const' keyword.

aarg:
Remove the 'const' keyword.

how about syntax for filling a new one ?

const keyword should only use when you do not want to change the value. When you want to change the value, you need to remove that keyword

Nautilius:
how about syntax for filling a new one ?

  pump_half_periods[0] = 1492ul;  // The 'ul' means the constant is an unsigned long