Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can i simulate a sensing phenomenon?

Phenomenon sensing simulate
0
Posted

How can i simulate a sensing phenomenon?

0

At the moment, when you make a call to any of the sensing interfaces; NesCT would return a random value. You can see this behavior in get_adc_data function of HPLADCC. To simulate sensing phenomenon, this function could be modified to return 0 for the time interval that phenomenon is expected to happen and return 1 when the sensing interface is polled during phenomenon execution. Here is an example. If the simulation time is between 5 and 10, and node_id is 0 or 5 then a phenomenon occurred, else return nil. You need to check return value of ADC.dataReady at your application against 1 or 0.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.