sync amplitude pwm

This commit is contained in:
Kizarm 2024-08-21 14:03:50 +02:00
parent d849a2d1fb
commit 176d6011ad

View file

@ -1,8 +1,9 @@
#include "generator.h"
#include "pwmclass.h"
#include "utils.h"
static constexpr unsigned W_TB = 8u;
static constexpr double AMPL = 3000.0;
static constexpr double AMPL = MAXPWM >> 1;
static constexpr int ULEN = 1 << W_TB;
static constexpr uint16_t u16_sin (const int x) {