Austin Schuh | aa3b086 | 2022-07-15 14:38:41 -0700 | [diff] [blame] | 1 | // Plotter for the C++ in-process plotter. |
| 2 | import {Configuration} from 'org_frc971/aos/configuration_generated'; |
| 3 | import {Connection} from 'org_frc971/aos/network/www/proxy'; |
| 4 | import {plotData} from 'org_frc971/frc971/analysis/plot_data_utils'; |
| 5 | |
| 6 | const rootDiv = document.createElement('div'); |
| 7 | rootDiv.style.width = '100%'; |
| 8 | document.body.appendChild(rootDiv); |
| 9 | |
| 10 | const conn = new Connection(); |
| 11 | conn.connect(); |
| 12 | |
| 13 | conn.addConfigHandler((config: Configuration) => { |
| 14 | plotData(conn, rootDiv); |
| 15 | }); |