I want to obtain the average of some gyro readings and it involves dividing an std::vector<double> type with a double type, but I get the following error that reports
Invalid operands to binary expression ('std::vector' and 'double')
How can I resolve this?
    double n_readings;
    std::vector<double> gyro_reading;
    for(int i = 0; i < n_readings; i++) {
        gyro_reading.push_back(gyro_z());
        msleep(1);
    }
    double average = gyro_reading/n_readings;
 
     
    