Skip to content

Commit

Permalink
update help
Browse files Browse the repository at this point in the history
  • Loading branch information
SK21 committed Apr 29, 2024
1 parent 741783a commit fa01b74
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
Binary file added Help/Raven flowmeter pin out.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion Help/TroubleShooting.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@ No UPM:
6. sensor counts/unit
7. base rate
8. did the pid values get sent to the module
9. control type, is it a valve or motor
9. control type, is it a valve or motor

No rate adjust:
1. in manual the master switch must be on
2. minimum pwm too low
Binary file modified Modules/ESP32 Rate/RC_ESP32.ino.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion Modules/ESP32 Rate/RC_ESP32/PID.ino
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ int PIDvalve(byte ID)
IntegralSum[ID] *= (Sensor[ID].KI > 0); // zero out if not using KI

DifValue = Sensor[ID].KD * (LastUPM[ID] - Sensor[ID].UPM) * 10.0;
Result = Sensor[ID].MinPWM + Sensor[ID].KP * SF * RateError + IntegralSum[ID] + DifValue;
Result = Sensor[ID].KP * SF * RateError + IntegralSum[ID] + DifValue;

bool IsPositive = (Result > 0);
Result = abs(Result);
Expand Down
4 changes: 2 additions & 2 deletions Modules/ESP32 Rate/RC_ESP32/RC_ESP32.ino
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
#include <EthernetUdp.h>

// rate control with ESP32 board: DOIT ESP32 DEVKIT V1
# define InoDescription "RC_ESP32 : 08-Apr-2024"
const uint16_t InoID = 8044; // change to send defaults to eeprom, ddmmy, no leading 0
# define InoDescription "RC_ESP32 : 28-Apr-2024"
const uint16_t InoID = 28044; // change to send defaults to eeprom, ddmmy, no leading 0
const uint8_t InoType = 4; // 0 - Teensy AutoSteer, 1 - Teensy Rate, 2 - Nano Rate, 3 - Nano SwitchBox, 4 - ESP Rate
const uint8_t Processor = 0; // 0 - ESP32-Wroom-32U

Expand Down
2 changes: 1 addition & 1 deletion Modules/ESP32 Rate/RC_ESP32/UDPComm.ino
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void SendUDP()
}

//PWM
Data[9] = Sensor[i].PWM;
Data[9] = (int)Sensor[i].PWM;
Data[10] = (int)Sensor[i].PWM >> 8;


Expand Down

0 comments on commit fa01b74

Please sign in to comment.