Contrib#17
Conversation
Signed-off-by: Alessandro Sappia <a.sappia@gmail.com>
Signed-off-by: Alessandro Sappia <a.sappia@gmail.com>
Shell.nix includes all libraries needed for local development Signed-off-by: Alessandro Sappia <a.sappia@gmail.com>
This ensure: - cross compilation - buildroot/fakeroot builds in automated build environments
|
Hi I have merged the 2 first commit
Thanks :-) Next time, consider using a new branch for each pull request topic. Otherwise, we are forced to accept or reject everything. I think that Sorry, I'm still not convinced by CMake. I find it too heavy. I think that explanations about shellcheck are not necessary for CMake ;-) So new branch/new commit. |
|
I get the hesitation around CMake, but relying on Makefile variable overrides (e.g., make CXX="clang") doesn’t scale well for packaging, cross-compilation, or structured build systems like Yocto, Buildroot, NixOS, and Linux distributions. Cross-compilation & packaging need a reliable way to specify toolchains and dependencies. At the end of the day, CMakeLists.txt is just one file (replacing Makefile, Makefile.in, and Makefile.dependency.sh), but scales better, works cross-platform, and integrates with modern toolchains. If dependencies are a concern, Meson is a lighter alternative. But Make alone will eventually be a bottleneck. For example, in NixOS packaging, we have to patch the Makefile to make it work—CMake would avoid that. Let me know |
|
I've been thinking about it since your post. My heart swings between the 2 and I can't decide. I find CMake too heavy and less powerful:
But, on the other hand, CMake simplifies cross-platform, and is integrated with modern toolchains.... Is it possible for CMakeLists.txt to generate a Makefile capable of “make gitversion” ? If you don't mind, could you create a new “cmake” branch that contains only the cmake modification (no cppsheck, no NixOS, ....) ? |
|
Hello,
I'll do the branch as proposed in the following days.
I was wondering. What is the Unit of Measure for the X, Y, Z coordinates ? Meters ?
What is the model signal strength / packet loss based on distance ?
Does it keep in consideration the frequency ?
Honestly, I did not dig that part of the code.
Thanks
Alessandro
…________________________________
From: David Ansart ***@***.***>
Sent: Sunday, February 23, 2025 16:42
To: Raizo62/vwifi ***@***.***>
Cc: Alessandro Sappia ***@***.***>; Comment ***@***.***>
Subject: Re: [Raizo62/vwifi] Contrib (PR #17)
EXTERNAL EMAIL - This email was sent by a person from outside your organization. Exercise caution when clicking links, opening attachments or taking further action, before validating its authenticity.
I've been thinking about it since your post. My heart swings between the 2 and I can't decide.
I find CMake too heavy and less powerful:
* I don't find the optimized dependency management obtained with the “Makefile.dependency.sh” script. Very useful for keeping building times down when modifying complex code.
* I don't like your git version number management. When troubleshooting issues, simply adding “-dev” is not enough. I prefer the version number to include the small number of the last commit. (Or maybe I missed something.)
But, on the other hand, CMake simplifies cross-platform, and is integrated with modern toolchains....
Is it possible for CMakeLists.txt to generate a Makefile capable of “make gitversion” ?
If you don't mind, could you create a new “cmake” branch that contains only the cmake modification (no cppsheck, no NixOS, ....) ?
—
Reply to this email directly, view it on GitHub<https://checkpoint.url-protection.com/v1/r07/url?o=https%3A//github.com/Raizo62/vwifi/pull/17%23issuecomment-2676839485&g=ZWY2NjE4MTU3OWMxOGMxMQ==&h=MTY4ZmYwYzY4YzRjNjAwZDhiOWJhNmNkMGI0YTQwM2VjMDU5NzRhZjI3M2I3NjVhNWExOTM2MzBmNjE2MGI1OQ==&p=bWVjMTp0ZWNobm9sb2d5aW5ub3ZhdGlvbmluc3RpdHV0ZTpjOm86MTYyYTg4OWYyMDIxMDIzNmU3ODlmYjVjMmYwYjhiNDU6NzpoOlQ=>, or unsubscribe<https://checkpoint.url-protection.com/v1/r07/url?o=https%3A//github.com/notifications/unsubscribe-auth/BMWM75CCDRJWSG5IXGKYA7L2RG63XAVCNFSM6AAAAABXISMDG6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZWHAZTSNBYGU&g=ZDBjY2EyYWI4ODQyZGVkOA==&h=OWJjZjk5Y2M0NGJhOWUzM2MzMzQ4N2I5YTcwYmM1ZTU5OTk0NWY1MjE4OGFmYzVkNDEzOWM0NjQyM2U1NmVmNg==&p=bWVjMTp0ZWNobm9sb2d5aW5ub3ZhdGlvbmluc3RpdHV0ZTpjOm86MTYyYTg4OWYyMDIxMDIzNmU3ODlmYjVjMmYwYjhiNDU6NzpoOlQ=>.
You are receiving this because you commented.Message ID: ***@***.***>
[Raizo62]Raizo62 left a comment (Raizo62/vwifi#17)<https://checkpoint.url-protection.com/v1/r07/url?o=https%3A//github.com/Raizo62/vwifi/pull/17%23issuecomment-2676839485&g=NzBiM2QzYzdlMjlmMGI2Nw==&h=ODRiNDI2ZDQxOTA4MGFmZWZiOTkwNGZmYWUwOWM5ZGZjMWUwNDZiYTVkZTZmM2ViZDY1YTdhM2Y1ZDBjMWZkYg==&p=bWVjMTp0ZWNobm9sb2d5aW5ub3ZhdGlvbmluc3RpdHV0ZTpjOm86MTYyYTg4OWYyMDIxMDIzNmU3ODlmYjVjMmYwYjhiNDU6NzpoOlQ=>
I've been thinking about it since your post. My heart swings between the 2 and I can't decide.
I find CMake too heavy and less powerful:
* I don't find the optimized dependency management obtained with the “Makefile.dependency.sh” script. Very useful for keeping building times down when modifying complex code.
* I don't like your git version number management. When troubleshooting issues, simply adding “-dev” is not enough. I prefer the version number to include the small number of the last commit. (Or maybe I missed something.)
But, on the other hand, CMake simplifies cross-platform, and is integrated with modern toolchains....
Is it possible for CMakeLists.txt to generate a Makefile capable of “make gitversion” ?
If you don't mind, could you create a new “cmake” branch that contains only the cmake modification (no cppsheck, no NixOS, ....) ?
—
Reply to this email directly, view it on GitHub<https://checkpoint.url-protection.com/v1/r07/url?o=https%3A//github.com/Raizo62/vwifi/pull/17%23issuecomment-2676839485&g=MzUxZjY0M2YwMjU0NTcwZA==&h=MjE5N2JjNTMwNzk0ZDhlZmUxODMyODJjNzZkZjRkOTJkNGM2ZTM3Mzk4ODU3YjcyODNhNTJjZjcyODVkMmZhYQ==&p=bWVjMTp0ZWNobm9sb2d5aW5ub3ZhdGlvbmluc3RpdHV0ZTpjOm86MTYyYTg4OWYyMDIxMDIzNmU3ODlmYjVjMmYwYjhiNDU6NzpoOlQ=>, or unsubscribe<https://checkpoint.url-protection.com/v1/r07/url?o=https%3A//github.com/notifications/unsubscribe-auth/BMWM75CCDRJWSG5IXGKYA7L2RG63XAVCNFSM6AAAAABXISMDG6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZWHAZTSNBYGU&g=MDgyNDcxNmFjMzFlMzk5Ng==&h=OTUyNGU1MzQ1MDdiMWZiMzgxMDU0NmNiZWI4MTYzZjQ2MDRjNDlmZjJjYTYzYjZkNjgyZTY0ZmMwNWYxYTcwNw==&p=bWVjMTp0ZWNobm9sb2d5aW5ub3ZhdGlvbmluc3RpdHV0ZTpjOm86MTYyYTg4OWYyMDIxMDIzNmU3ODlmYjVjMmYwYjhiNDU6NzpoOlQ=>.
You are receiving this because you commented.Message ID: ***@***.***>
|
|
Hi
Yes.
Yes, with probability ( I decrease the signal strength with this attenuation :
|
|
So those are mettere ? Or what?
Alessandro Sappia
***@***.***
…On Tue, 25 Mar 2025 at 17:08 David Ansart ***@***.***> wrote:
Hi
What is the Unit of Measure for the X, Y, Z coordinates ? Meters ?
Yes.
What is the model signal strength
packet loss based on distance ?
Yes, with probability ( bool CWifi::PacketIsLost(TPower signalLevel) )
I decrease the signal strength with this attenuation :
TPower
signalLevel=BoundedPower(power-Attenuation(coo.DistanceWith((*InfoWifis)[i]),frequency));
Attenuation() uses this formula
ConstanteC+20*log10(frequency/1000)+20*log10(distance/1000) that I had to
find on the Internet.
—
Reply to this email directly, view it on GitHub
<#17 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGZUBZ45IY6YWXBOSGSYR32WFBKXAVCNFSM6AAAAABXISMDG6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONJRGIYDMOJYGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
[image: Raizo62]*Raizo62* left a comment (Raizo62/vwifi#17)
<#17 (comment)>
Hi
What is the Unit of Measure for the X, Y, Z coordinates ? Meters ?
Yes.
What is the model signal strength
packet loss based on distance ?
Yes, with probability ( bool CWifi::PacketIsLost(TPower signalLevel) )
I decrease the signal strength with this attenuation :
TPower
signalLevel=BoundedPower(power-Attenuation(coo.DistanceWith((*InfoWifis)[i]),frequency));
Attenuation() uses this formula
ConstanteC+20*log10(frequency/1000)+20*log10(distance/1000) that I had to
find on the Internet.
—
Reply to this email directly, view it on GitHub
<#17 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGZUBZ45IY6YWXBOSGSYR32WFBKXAVCNFSM6AAAAABXISMDG6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONJRGIYDMOJYGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Yes : meters |
|
Change MTU
Fix gcc Warning with gcc14
Add shell.nix to ease local development with all needed libraries and tool in scope
Use CMake for building to ensure cross compilation / compilation in buildroot/fakeroot
Removed Makefile/Makefile.in/ Makefile depenencies