Esempio n. 1
0
//Buffer management for the N variables that we can plot.
void MainWindow::update_graph_array(int graph, int new_data)
{
    static int idx_plot[VAR_NUM] = {0,0,0,0,0,0};

    //Updating buffer with one new data point
    update_plot_buf_single(graph_yarray[graph], &idx_plot[graph], new_data);
}
Esempio n. 2
0
void MainWindow::update_plot_buf_gyrz(int new_data)
{
    static int idx_plot = 0;

    //Updating buffer with one new data point
    update_plot_buf_single(plot_buf_gyrz, &idx_plot, new_data);

}