瀏覽代碼

fix bug in LOW/HIGH status of CAM AZIMUT cmd

master
gituser 1 年之前
父節點
當前提交
f56db20ff8
共有 3 個文件被更改,包括 4 次插入3 次删除
  1. 1
    1
      .project
  2. 1
    1
      FSRemotePowerSwitch.ino
  3. 2
    1
      sloeber.ino.cpp

+ 1
- 1
.project 查看文件

@@ -49,7 +49,7 @@
<link>
<name>libraries/ArduinoJson</name>
<type>2</type>
<locationURI>ECLIPSE_HOME/arduinoPlugin/libraries/ArduinoJson/7.0.3</locationURI>
<locationURI>ECLIPSE_HOME/arduinoPlugin/libraries/ArduinoJson/7.0.2</locationURI>
</link>
</linkedResources>
</projectDescription>

+ 1
- 1
FSRemotePowerSwitch.ino 查看文件

@@ -167,7 +167,7 @@ void loop() {
sendCamActAzimut(String(actAzi));

} else if (sdr == CMD_SENDER_PC && cmd == CMD_AZIMUT_CAM) {
if (digitalRead(PWR_CAM_PIN) == HIGH) {
if (digitalRead(PWR_CAM_PIN) == LOW) {
long target = round((4076.0 / 360.0) * val.toDouble() * -1);
stepper.moveTo(target);
stepper.run();

+ 2
- 1
sloeber.ino.cpp 查看文件

@@ -2,8 +2,9 @@
//This is a automatic generated file
//Please do not modify this file
//If you touch this file your change will be overwritten during the next build
//This file has been generated on 2024-02-25 15:16:38
//This file has been generated on 2024-02-29 21:19:17

#include "Arduino.h"
#include "Arduino.h"
#include <ArduinoJson.h>
#include <AccelStepper.h>

Loading…
取消
儲存