added config for dea + added build and flash section in readme
This commit is contained in:
+6
-2
@@ -150,8 +150,12 @@ int main(void) {
|
|||||||
/* USER CODE BEGIN 3 */
|
/* USER CODE BEGIN 3 */
|
||||||
|
|
||||||
uint16_t angleSensor = AngleSensor.getAngel();
|
uint16_t angleSensor = AngleSensor.getAngel();
|
||||||
|
|
||||||
dutyCycle = mapToRange(12600, 16100, 0, 1000, angleSensor);
|
// config shell
|
||||||
|
// dutyCycle = mapToRange(12600, 16100, 0, 1000, angleSensor);
|
||||||
|
|
||||||
|
// config dea
|
||||||
|
dutyCycle = mapToRange(23545, 26820, 0, 1000, angleSensor);
|
||||||
|
|
||||||
if (dutyCycle < 100) {
|
if (dutyCycle < 100) {
|
||||||
dutyCycle = 0;
|
dutyCycle = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user