ESPSomfy-RTS/src
cjkas 3a8736f4d4 refactor: share the shade travel maths in ShadeMotion.cpp
checkMovement worked out the position four times, nearly copy-pasted,
for lift down, lift up, tilt down and tilt up.  All four now call
travelPosition(), which keeps the same arithmetic, including how the
elapsed time wraps with millis().  Tilt up with no tilt time still
stops the tilt direction in the caller.

transformPosition and transformCommand keep their behaviour through
the new displayPosition() and flipCommand() helpers.  The native env
builds ShadeMotion.cpp so all of this can be unit tested on the PC.
No behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 13:37:48 +02:00
..
CMakeLists.txt build pass for esp32c6, added dependencies.lock 2026-04-05 21:06:48 +02:00
ConfigFile.cpp fix: swap restored radio config under the radio lock 2026-10-11 12:46:40 +02:00
ConfigFile.h backup with RAM 2026-03-13 18:40:34 +01:00
ConfigSettings.cpp build pass for esp32c6, added dependencies.lock 2026-04-05 21:06:48 +02:00
ConfigSettings.h chore: bump version to v3.0.14 2026-10-10 17:01:25 +00:00
esp32.svd init 2026-03-10 20:23:48 +01:00
ESPNetwork.cpp Fixed task_wdt: esp_task_wdt_reset(707): task not found 2026-04-11 23:48:19 +02:00
ESPNetwork.h Update platform to espressif32 @ 6.13.0. SSID scan interval increased to 10 minutes to offload ESP. 2026-04-04 19:58:38 +02:00
GitOTA.cpp Fix OTA update URLs to point to cjkas fork 2026-06-18 11:46:44 +02:00
GitOTA.h remove sync server 2026-03-24 19:23:35 +01:00
idf_component.yml build pass for esp32c6, added dependencies.lock 2026-04-05 21:06:48 +02:00
JsonFormatter.cpp fix: never write past a JSON buffer or send a broken socket event 2026-10-11 13:31:48 +02:00
JsonFormatter.h fix: never write past a JSON buffer or send a broken socket event 2026-10-11 13:31:48 +02:00
MQTT.cpp Added c6 support 2026-03-29 21:53:57 +02:00
MQTT.h init 2026-03-10 20:23:48 +01:00
ShadeMotion.cpp refactor: share the shade travel maths in ShadeMotion.cpp 2026-10-11 13:37:48 +02:00
ShadeMotion.h refactor: share the shade travel maths in ShadeMotion.cpp 2026-10-11 13:37:48 +02:00
Sockets.cpp Added c6 support 2026-03-29 21:53:57 +02:00
Sockets.h replace sync sockets 2026-03-24 19:23:35 +01:00
Somfy.cpp refactor: share the shade travel maths in ShadeMotion.cpp 2026-10-11 13:37:48 +02:00
Somfy.h refactor: move the Somfy frame codec into SomfyFrame.cpp 2026-10-11 13:18:37 +02:00
SomfyController.ino updated gitignore file 2026-04-05 19:55:09 +02:00
SomfyFrame.cpp refactor: share the shade travel maths in ShadeMotion.cpp 2026-10-11 13:37:48 +02:00
SomfyFrame.h refactor: share the shade travel maths in ShadeMotion.cpp 2026-10-11 13:37:48 +02:00
SSDP.cpp Added c6 support 2026-03-29 21:53:57 +02:00
SSDP.h init 2026-03-10 20:23:48 +01:00
Utils.cpp fix: report half-hour time zones correctly in ISO timestamps 2026-10-11 12:54:56 +02:00
Utils.h init 2026-03-10 20:23:48 +01:00
Web.cpp fix: back-pressure web commands and report radio failures 2026-10-11 12:46:40 +02:00
Web.h fix: back-pressure web commands and report radio failures 2026-10-11 12:46:40 +02:00
WResp.cpp fix: never write past a JSON buffer or send a broken socket event 2026-10-11 13:31:48 +02:00
WResp.h refactor: move JsonFormatter into JsonFormatter.cpp 2026-10-11 13:29:30 +02:00