Create new campaign after src code changes?

Asked by Falk on 2009-12-03

Hi,

I just changed one line in the src code of a cpp class.
Is it really necessary to run ./playground.py install and then to create a fresh campaign to get a simulation with this changes?

btw: I want to implement a transmit power control algorithm in the existing DraftN MAC.
Am I supposed to create a new project? Can I change the exisiting one?

Is there any step by step description how to start?

something like:
create new project
copy files from wifimac to ...
write NEWFU.h and NEWFU.cpp to folder
add NEWFU to "PATH/project.py"
add line to xyz.py
run ./playground.py preparecampaign

Regards,
Falk

Question information

Language:
English Edit question
Status:
Solved
For:
openWNS-Documentation Edit question
Assignee:
No assignee Edit question
Solved by:
Maciej Muehleisen
Solved:
2009-12-19
Last query:
2009-12-19
Last reply:
2009-12-03

Hi,

you "only" need to run ./playground.py preparecampaign again and select
"U" for update. Only required stuff is recompiled.

For now feel free to make the changes to your "wifimac" module. I plan
on adding a chapter on development flow to the manual, but it is not
finished yet.

Use "./playground.py" status to check for changes in the whole openWNS

go to a module (ex. modules/dll/wifimac) and do:

"bzr status" to see which files have been changed or added
"bzr diff" to see what has been changed

If you feel like you have reached some stable point you would like to be
able to go back to later:

If you have new files: "bzr add"
"bzr commit -m "Message about what you have done""

This will just do a local commit, nothing is uploaded to any server then.

This should be enough to know if you are working on the project alone.
If multiple people work on it, it gets more tricky. Wait for the updated
manual for an explanation on that.

Greats,

Mac

Falk wrote:
> New question #92687 on openWNS-Documentation:
> https://answers.launchpad.net/openwns-documentation/+question/92687
>
> Hi,
>
> I just changed one line in the src code of a cpp class.
> Is it really necessary to run ./playground.py install and then to create a fresh campaign to get a simulation with this changes?
>
> btw: I want to implement a transmit power control algorithm in the existing DraftN MAC.
> Am I supposed to create a new project? Can I change the exisiting one?
>
> Is there any step by step description how to start?
>
> something like:
> create new project
> copy files from wifimac to ...
> write NEWFU.h and NEWFU.cpp to folder
> add NEWFU to "PATH/project.py"
> add line to xyz.py
> run ./playground.py preparecampaign
>
> Regards,
> Falk
>
>

Falk (kingsnoopy) said : #2

Thanks Maciej Muehleisen, that solved my question.