Skip to content

Commit

Permalink
module status
Browse files Browse the repository at this point in the history
  • Loading branch information
SK21 committed Feb 15, 2024
1 parent 69d2170 commit 1d14954
Show file tree
Hide file tree
Showing 11 changed files with 4,094 additions and 4,093 deletions.
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/Begin.ino
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ void DoSetup()
AP += WiFi.macAddress();
AP += ")";

WiFi.softAP(AP,MDL.Password);
WiFi.softAP(AP, MDL.Password, 1, 0, 2);
WiFi.softAPConfig(AP_LocalIP, AP_LocalIP, AP_Subnet);
UDP_Wifi.begin(ListeningPort);

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 @@ -27,8 +27,8 @@
#include <ESP2SOTA.h> // https://github.com/pangodream/ESP2SOTA

// rate control with ESP32 board: DOIT ESP32 DEVKIT V1
# define InoDescription "RC_ESP32 : 05-Feb-2024"
const uint16_t InoID = 5124; // change to send defaults to eeprom, ddmmy, no leading 0
# define InoDescription "RC_ESP32 : 14-Feb-2024"
const uint16_t InoID = 14024; // 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/RC_ESP32.vcxproj

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions Modules/ESP32 Rate/RC_ESP32/UDPComm.ino
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ void SendUDP()
// bit 2 - wifi rssi < -80
// bit 3 - wifi rssi < -70
// bit 4 - wifi rssi < -65
// bit 5 wifi connected
// bit 6 ethernet connected
//12 CRC

byte Data[20];
Expand Down Expand Up @@ -61,6 +63,11 @@ void SendUDP()
if (millis() - Sensor[0].CommTime < 4000) Data[11] |= 0b00000001;
if (millis() - Sensor[1].CommTime < 4000) Data[11] |= 0b00000010;

if (ChipFound)
{
if (Ethernet.linkStatus() == LinkON) Data[11] |= 0b01000000;
}

// crc
Data[12] = CRC(Data, 12, 0);
bool Sent = false;
Expand Down
Loading

0 comments on commit 1d14954

Please sign in to comment.