Team2168 / 2018_Main_Robot

0 stars 0 forks source link

PowerDistribution.java NpointAverager error #13

Open davidm2556 opened 6 years ago

davidm2556 commented 6 years ago
//Calculate number of loops needed to meet time iteration
        currentTimeThreshold = (int) (RobotMap.CURRENT_LIMIT_TIME_THRESHOLD_SECONDS/(period*1000));

        //initialize NPoint Averager for each channel
        for(int i=0; i<NUM_OF_PDP_CHANNELS; i++)
            channelCurrent[i] = new NPointAverager(currentTimeThreshold);

Current time threshold is not greater than or equal to 1, 1 divided by a very large number, (1/20*1000).