Protocol Stacks
- FDR
- Offline
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
using the 0x3ef max with my 2801Pro Rx:
2801 protocol: center = 2.0msec with +/- 0.5msec throw
2601 protocol: center = 1.2mec min=1.5 and max=1.8, so this is definitely wrong
using the value of 0x190 that I got from renatopub:
2801 protocol: center = 1.7msec with +/- 0.2msec throw
I found a spec that at 100% I should expect:
center=1.5msec with +/-0.4msec throw
So, I must have something wrong in the protocol since it isn't possible for me to achieve those values with the signals I'm sending.
Please Log in or Create an account to join the conversation.
- wuselfuzz
- Offline
- Posts: 83
FDR wrote: Probably would be more consistent/informative, if you would reset all the trims...
Didn't pay attention to those, just did some quick dumps while rushing to work. I'll do some more investigation later.
1.5msec +/-0.4msec sounds about right. Most servos could do quite a bit more than that, I'd expect to see 0.9msec - 2.1msec full range with everything maxed out. (at 150%, 0.4 * 1.5 = 0.6, 1.5-0.6 = 0.9, 1.5+0.6 = 2.1.)
Please Log in or Create an account to join the conversation.
- FDR
- Offline
I'm interested in that, because all the four trim values are different in your logs, and I don't know if the trim value is reflected in the channel value too, or it is sent only separated.wuselfuzz wrote:
Didn't pay attention to those, just did some quick dumps while rushing to work. I'll do some more investigation later.FDR wrote: Probably would be more consistent/informative, if you would reset all the trims...
I would like to see a channel value at min/max and mid stick with zero/min and maxed trims. (That's 9 combinations... )
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
when the channel is at 0, the value is 0. a value of 0x190 is either +/-100% where '+/-' is set by the relevant bit in byte 13
Please Log in or Create an account to join the conversation.
- FDR
- Offline
PhracturedBlue wrote: Ok, I figured it out. I misunderstood renatopub's logs. In the wk2801 protocol, byte 13 is the sign bit.
when the channel is at 0, the value is 0. a value of 0x190 is either +/-100% where '+/-' is set by the relevant bit in byte 13
Was that 0x190 with travel adjust maxed out or is that just the 100% ?
It will be interesting to compare the max values with the WK2402, which has no such travel adjustment...
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
That is 100%. I was able to get the pulsewidth to 2.5msec with the RX 2801 which would be 250%FDR wrote: Was that 0x190 with travel adjust maxed out or is that just the 100% ?
It will be interesting to compare the max values with the WK2402, which has no such travel adjustment...
The firmware is currently only capable of driving +/-100% though.
We'll likely need to see the servo PW and packet data together on the 2402 for a channel sweep with and without trims as FDR mentioned to figure out what is actually going on.
Please Log in or Create an account to join the conversation.
- FDR
- Offline
...and I guess that is not even the real 100%, because on the CB100 I barely could see the servos move, and the max throttle couldn't lift off the heli.PhracturedBlue wrote: The firmware is currently only capable of driving +/-100% though.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Yes that is what we're talking about.FDR wrote:
...and I guess that is not even the real 100%, because on the CB100 I barely could see the servos move, and the max throttle couldn't lift off the heli.PhracturedBlue wrote: The firmware is currently only capable of driving +/-100% though.
I have a fix for the 2801 that gets it to a real 100%. The code I checked in for the 2401 MAY get you there too, but we'll need to wait for wuselfuzz's data to see where we stand.
Please Log in or Create an account to join the conversation.
- wuselfuzz
- Offline
- Posts: 83
removed to avoid confusion, MSB first/LSB first mixup, see below
As stated earlier, both channels might be reversed in the Tx, checking later.
/edit: oops, and reduced.
Please Log in or Create an account to join the conversation.
- FDR
- Offline
I would like to say that "it is not even close to the real 100%"...
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
With the fix I checked in an hour ago that is still true?FDR wrote: Sorry, it's my english...
I would like to say that "it is not even close to the real 100%"...
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
there is no need to send all channels at the moment. i already have the mapping. what I need to see for a single channel is the zero, min, max with the trims zeroed, and zero/min/max with the trim maxed out. We should probably collect the same with the trim at full-min as well so we can see how sign is handled.
I would like to see both the data packet and the servo Pulse-width at these points.
I don't care about reverse (as long as we have servo pulsewidth we can figure that out)
Please Log in or Create an account to join the conversation.
- FDR
- Offline
I don't know, I'm still at work, and I'm not sure I will be able to check that this evening. I spent too much time with it, and my wife got across me...PhracturedBlue wrote:
With the fix I checked in an hour ago that is still true?FDR wrote: Sorry, it's my english...
I would like to say that "it is not even close to the real 100%"...
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
I know the feelingFDR wrote:
I don't know, I'm still at work, and I'm not sure I will be able to check that this evening. I spent too much time with it, and my wife got across me...PhracturedBlue wrote:
With the fix I checked in an hour ago that is still true?FDR wrote: Sorry, it's my english...
I would like to say that "it is not even close to the real 100%"...
Anyhow, the new code does increase the range substantially for the 2401 protocol. Whether it is right or not, I do not know.
Please Log in or Create an account to join the conversation.
- wuselfuzz
- Offline
- Posts: 83
PhracturedBlue wrote: there is no need to send all channels at the moment.
That was just data I had available from the dumps in the morning. I'm home in about an hour and can dump more data then.
The RX2435 normally has an ele-ail-ext pot and integrated 3-axis-gyros. I removed the gyro board from the rx, though, and grounded the ADC input of the ext pot. This should result in max servo throws (confirmed by a test servo). I hope that the missing gyros don't affect outputs too much.
Please Log in or Create an account to join the conversation.
- wuselfuzz
- Offline
- Posts: 83
this is so awkward... see below.
However, at 16% Throttle with 0% throttle trim, the pulse width rises to 920us.
=> 15% Throttle = 50% Throttle trim in Walkera land?
/edit: Measured with 10MHz sampling rate, dT=0.1us
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Can you check these again?wuselfuzz wrote:
Throttle 50%, Throttle trim 100%: df 00 2f ff a6 5f 40 c8 ff 93 86 62 a0 62 34 38 Throttle 50%, Throttle trim 0%: df 00 8f ff a6 00 40 c8 ff 91 86 62 40 02 49 6b
The 1st looks like 100% throttle, 0% trim
The 2nd looks like 25% throttle, 0% trim
Is it possible there is some CCPM mixing going on here, and we're not getting linear throttle control?
Edit: Rudder is probably the best channel to look at for a heli Rx I guess.
Please Log in or Create an account to join the conversation.
- FDR
- Offline
The WK2402 does't have mixing.PhracturedBlue wrote: Is it possible there is some CCPM mixing going on here, and we're not getting linear throttle control?
Not really...PhracturedBlue wrote: Edit: Rudder is probably the best channel to look at for a heli Rx I guess.
Even the older models have headhold gyro, which effects the rx's rudder output...
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Right...4-channel doesn't have pitch control... . But the 4channel does have heading hold? how do you control it? That would need to be a 5th channel (even if it is not proportional) right?FDR wrote:
The WK2402 does't have mixing.PhracturedBlue wrote: Is it possible there is some CCPM mixing going on here, and we're not getting linear throttle control?
Not really...PhracturedBlue wrote: Edit: Rudder is probably the best channel to look at for a heli Rx I guess.
Even the older models have headhold gyro, which effects the rx's rudder output...
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Development
- Protocol Stacks