Examples 13 and 16 user guide One 5.1

22 views
Skip to first unread message

luis marrone

unread,
May 28, 2024, 10:17:01 AM5/28/24
to CupCarbon Forum
Hello,
I'm trying to follow example 13 of user guide One 5.1:
//Transmitter
atget id id
loop
set del 1000

radio radio1
data p id "A"
send p
print "Paso 1: " p
mark 1
delay del
data p id "B"
send p
print "Paso 2: " p
mark 0
delay del

radio radio2
data p id "A"
send p
print "Paso 3: " p
mark 1
delay del
data p id "B"
send p
print "Paso 4: " p
mark 0
delay del

But the script doesn't change the radio module, it keeps executing radio 1

And regarding Example 16:
//Transmitter
atget id id
set del 1000
//loop
atpl 100
data p id "A"
send p
print "id: " id ", A " ", PWR: " atpl
delay del
data p id "B"
send p
print "id: " id ", B " ", PWR: " atpl
delay del

atpl 20
data p id "A"
send p
print "id: " id ", A " ", PWR: " atpl
delay del
data p id "B"
send p
print "id: " id ", B " ", PWR: " atpl
delay del

The reduction of power is visible in the map (the radio is reduced) but not executed as the third sensor always receives data.

Any suggestions??
Reply all
Reply to author
Forward
0 new messages