Closed joefowler closed 4 years ago
Where is the bahama code and how does one test it?
Branch:bahama. You need a terminal to run it. My session looks like this:
fowlerj@687figaro:dastard$ go run cmd/abaco/bahama.go -noise 50 -saw -nchan 8 -nring 1
nchan: 8
nring: 1
rate: 10000
Data will contain: noise sawtooth.
Generating data in shm:xdma0_c2h_0_buffer
It blocks at the above and does not print periodic "I am okay" messages. There is a usage message if you need it. Use the go run cmd/abaco/bahama.go -h
to get it.
You also need to run Dastard and Dcom as usual. (That is, Bahama doesn't replace Dastard.)
The fact that my timestamps spew as the year 1728 is surely a clue...
Highly suspicious. Thats even before Hamliton takes place.
Yes, 1728 was the year that Governor George Phenney reformed the governance of the Bahamas, leading to the first democratic elections in the following year. Do you think that might be relevant?
Okay, the Bahama-generated packets have null timestamps. Or at least some of them do when we are in the sample-data phase (i.e., starting the Abaco source):
(packets.PacketTimestamp) {
T: (uint64) 0,
Rate: (float64) 0
}
I'm not sure what the effect is, but it's clearly causing problems.
Problems with the Abaco data source when Bahama is generating the data. When we run it and have triggers, the dastard terminal goes crazy like the following. We are also generating something like 10 TRIGGERRATE messages per second, but Galen thinks that is a consequence of the same bug that makes the error messages happen.