Skip to content

Feat/adjv3 protections - #692

Open
Sagah123 wants to merge 22 commits into
developmentfrom
feat/adjv3-protections
Open

Sagah123 wants to merge 22 commits into
developmentfrom
feat/adjv3-protections

Conversation

@Sagah123

Copy link
Copy Markdown
Member

I've implemented a first version of ProtectionMessage and I need your opinion (CMake, format etc are pending to edit)

also i left a few comments explaining or asking things

namespace ST_LIB {
struct ProtectionMessagePacket {

struct Package_Data {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not call it Package_Data, the name generates confusión with the packets of type data`

Comment thread Inc/ST-LIB_HIGH/Protections/ProtectionMessages.hpp
Comment thread Inc/ST-LIB_HIGH/Protections/ProtectionMessages.hpp Outdated
#else
pack.data.hours = 0; pack.data.minutes = 0; pack.data.seconds = 0;
#endif
pack.data.reserved = 0;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a comment here

Comment thread Inc/ST-LIB_HIGH/Protections/ProtectionMessages.hpp Outdated
Comment thread Inc/ST-LIB_HIGH/Protections/ProtectionMessages.hpp Outdated
Comment thread Inc/ST-LIB_HIGH/Protections/ProtectionMessages.hpp Outdated
Comment thread Inc/ST-LIB_HIGH/Protections/ProtectionMessages.hpp Outdated
#include "lwip/tcp.h"

namespace ST_LIB {
struct ProtectionMessagePacket {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not call it like because it might generate confusion between Protection and Message which are both

@victor-Lopez25

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm also trying to think of a better name...

Comment thread Inc/ST-LIB_HIGH/Protections/ProtectionMessages.hpp Outdated
@JavierRibaldelRio
JavierRibaldelRio marked this pull request as draft October 22, 2026 10:10
@JavierRibaldelRio

Copy link
Copy Markdown
Member

@Sagah123 I've changed the status of the PR to draft.

@victor-Lopez25

Copy link
Copy Markdown
Collaborator

Please move the implementation to ProtectionMessages.cpp or whatever other name you choose for .cpp and test if it works with a nucleo board and wireshark.

@victor-Lopez25

Copy link
Copy Markdown
Collaborator

If your pull request is unfinished, start with a draft, when you want to recieve reviews click the 'ready for review' button (saying just in case because @JavierRibaldelRio left a pretty detailed review and it looked like this code hasn't been tested yet)

@victor-Lopez25

Copy link
Copy Markdown
Collaborator

Use get_rtc_timestamp when sending the package, not when making it, to get the correct timestamp

@github-actions

Copy link
Copy Markdown
Contributor

ST-LIB Release Plan

  • Current version: 7.0.0
  • Pending changesets: 1
  • Highest requested bump: minor
  • Next version if merged now: 7.1.0

Pending changes

  • minor Add ProtectionADJV3Packet TCP client with IP passed as an argument, plus improved error handling (.changesets/adjv3-protections-tcp.md)

@Sagah123

Copy link
Copy Markdown
Member Author

I fixed all of your conversations except naming, also, the format check is failing because of CHANGELOG.md, not my changes, so please dont take it into account

@Sagah123
Sagah123 marked this pull request as ready for review October 23, 2026 09:20

@victor-Lopez25 victor-Lopez25 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple small changes now

Comment thread .vscode/c_cpp_properties.json
Comment thread Inc/ST-LIB_HIGH/Protections/ProtectionMessages.hpp Outdated
Comment thread Src/ST-LIB_HIGH/Protections/ProtectionMessages.cpp Outdated

@victor-Lopez25 victor-Lopez25 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll talk about changing the format checks soon after exams but the rest is good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants