Protocol Stacks
- FDR
- Offline
Sorry, I couldn't check the latest build yet, because I'm at work now!PhracturedBlue wrote: I spent some time double checking my code against the sample logs I got from renatopub. I don't see anything else wrong, so if it still doesn't work with the last build and fixed-id, I'm stumped. In that case, I guess I'll dump my logs and make sure what I see on the emulator is what I see from the Tx.
I will check it later, when I get home...
Please Log in or Create an account to join the conversation.
- wuselfuzz
- Offline
- Posts: 83
PhracturedBlue wrote: That looks like a nice bit of kit. I'll be interested in how far 16kB goes as far as number of samples (you need to sample the SPI bus at 8MHZ to get reliable data).
The sampling core supports RLE compression, which should work pretty nice on the data to be captured.
I like that thingy, because it's completely documented and I have quite a bit of background with FPGA design.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
That is fine. I checked the tx spi logs and they match what renatopub sent, so if it still doesn't work, I am at a loss.FDR wrote:
Sorry, I couldn't check the latest build yet, because I'm at work now!PhracturedBlue wrote: I spent some time double checking my code against the sample logs I got from renatopub. I don't see anything else wrong, so if it still doesn't work with the last build and fixed-id, I'm stumped. In that case, I guess I'll dump my logs and make sure what I see on the emulator is what I see from the Tx.
I will check it later, when I get home...
Note that to change the fixed_id, you need to edit the ini file on the tx through your PC. Because the max-value is limited to 99999, you can't enter the id I listed above. But it works ok if you enter it through the ini file.
Please Log in or Create an account to join the conversation.
- wuselfuzz
- Offline
- Posts: 83
fixed_id=487193
and the latest code, the rx2435 went from fast blinking (bind phase) to bound (steady light) to blinking in second intervals.
No reaction from the elevator servo.
Please Log in or Create an account to join the conversation.
- FDR
- Offline
Without the fixed id it didn't bind...
However, the servo extends and the throttle value is too low!
It might use different output range, I guess...
EDIT: I've used: fixed_id=487193
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Glad to hear it.FDR wrote: Yep, it binds now with the new build and fixed id!
Without the fixed id it didn't bind...
However, the servo extends and the throttle value is too low!
It might use different output range, I guess...
EDIT: I've used: fixed_id=487193
Can you try different values? 487192, 487194, 487182, ...
I'm not surprised about the servo throw. I see the same thing for all other protocols. I need to measure the throw with the real tx to try to figure out why the range is wrong.
Please Log in or Create an account to join the conversation.
- FDR
- Offline
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Since there are things you could do (like playing with the range) which would be easier to do if you could compile the code.
Please Log in or Create an account to join the conversation.
- FDR
- Offline
I don't remember that I could set fixed id with the 2401 protocoll in my WK2801Pro thow...
Probably it is just the fw has to have a value, even a random one...
Please Log in or Create an account to join the conversation.
- FDR
- Offline
Yep!PhracturedBlue wrote: We need to figure out how you can compile the code yourself.
Since there are things you could do (like playing with the range) which would be easier to do if you could compile the code.
Please Log in or Create an account to join the conversation.
- FDR
- Offline
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Since I already have an interface for fixed_id, I see no reason not to allow the user to use it (It won't reduce bind time though). I am somewhat surprised though, since the previous build had a hard-coded id (non zero) and it still didn't work.
As for building, I'm currently trying this:
www.microbuilder.eu/Tutorials/SoftwareDe...ingGCCToolchain.aspx
That should provide the same toolchain that we use on linux/mac
Please Log in or Create an account to join the conversation.
- FDR
- Offline
I can confirm, that the aileron channel is reversed!FDR wrote: ...and looks like aileron is reversed, but I have to double check that...
Is it correct for the other protocols?
Is the right horizontal stick input is corrected? Because while my rudder (left horizontal stick in mode 2) goes negative in the left, the aileron goes positive in that direction!
Please Log in or Create an account to join the conversation.
- FDR
- Offline
Agree, but if there is no fixed id defined, then we should generate a random one!PhracturedBlue wrote: Since I already have an interface for fixed_id, I see no reason not to allow the user to use it (It won't reduce bind time though).
Please Log in or Create an account to join the conversation.
- wuselfuzz
- Offline
- Posts: 83
The rx also goes to "blink in 1 sec intervals" mode, this might be related to the low voltage detection of the rx2435.
However, elevator works with the original tx. Checking my deviation config now.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
That is what I'm saying. I did that and it didn't work for you.FDR wrote:
Agree, but if there is no fixed id defined, then we should generate a random one!PhracturedBlue wrote: Since I already have an interface for fixed_id, I see no reason not to allow the user to use it (It won't reduce bind time though).
Please Log in or Create an account to join the conversation.
- wuselfuzz
- Offline
- Posts: 83
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
I think they use the same gimbal setup in both left and right sticks, just rotated 180-degrees. this would explain why the throttle was reversed (I have code that fixes that). Probably need the same thing for the rudder. (or maybe it is the right-stick that is reverse). In either case, fixing it is easy.FDR wrote:
I can confirm, that the aileron channel is reversed!FDR wrote: ...and looks like aileron is reversed, but I have to double check that...
Is it correct for the other protocols?
Is the right horizontal stick input is corrected? Because while my rudder (left horizontal stick in mode 2) goes negative in the left, the aileron goes positive in that direction!
Since I' haven't used the deviation firmware on an actual model, I haven't noticed whether the channels all move in the right direction or not
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
I know the wk2801 has a special case for when the id is '0' (which is not allowed). I expected that any value other than 0 would work.wuselfuzz wrote: I got the rx binding without the fixed_id string.
I'm not sure about an RNG (seems wasteful to include a prng just for this one function), but I thought the crc of the model file would make a good id when none is specified.
Please Log in or Create an account to join the conversation.
- wuselfuzz
- Offline
- Posts: 83
PhracturedBlue wrote: I'm not sure about an RNG (seems wasteful to include a prng just for this one function), but I thought the crc of the model file would make a good id when none is specified.
newlib should supply rand(). Needs a seed, though, or it's not random at all (see xkcd).
A good seed would be RSSI values from the CYRF.
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Development
- Protocol Stacks