Phoenix problems in PRE 2.1

More
16 Dec 2012 00:31 #4023 by HiNote
Phoenix problems in PRE 2.1 was created by HiNote
i have problems with this version.
It can't work with phoenixrc for me.

With latest installed version (deviation-devo6-f75fc49368fe), it works ok, but with this version, my devo 6s is detected by phoenix as connected, but no channel moves in phoenixrc

I tried to configure a new trasmitter, but the same problem again. Nothing moves in phoenix.

I didnĀ“t change values in PPM settings. 8ch selected

Please Log in or Create an account to join the conversation.

More
16 Dec 2012 02:09 - 16 Dec 2012 02:42 #4024 by Hexperience
Replied by Hexperience on topic Phoenix problems in PRE 2.1
Confirmed. Same here.

There are 10 types of people in this world. Those that understand binary and those that don't.
Last edit: 16 Dec 2012 02:42 by Hexperience.

Please Log in or Create an account to join the conversation.

More
16 Dec 2012 05:17 #4025 by PhracturedBlue
Replied by PhracturedBlue on topic Phoenix problems in PRE 2.1
try selecting ppm options(click the 'PPM' string). Make sure the frame size is 22500.
If you had a previous version that had some options, it won't upgrade properly, but upgrading from a 2.0 model or creating a new model, or selecting the protocol options should all fix the issue.

I do not guarantee seamless upgrades from intermediate hg builds.

Please Log in or Create an account to join the conversation.

More
16 Dec 2012 09:07 - 16 Dec 2012 09:08 #4028 by dado099
Replied by dado099 on topic Phoenix problems in PRE 2.1
I confirm, also creating a new model, no ppm signal output at all.
My usb interface always blinks when receiving a ppm signal, but now it's steady.
Hope for a fix.
Thank you
Last edit: 16 Dec 2012 09:08 by dado099.

Please Log in or Create an account to join the conversation.

More
16 Dec 2012 09:30 #4030 by vlad_vy
Replied by vlad_vy on topic Phoenix problems in PRE 2.1
Definitely, there is a bug at PPM protocol. With Reflex simulator PPM works only at 10 channel mode. All other modes = no response. Simulator detect number of channels, but used channels have random numbers and not respond to sticks, not used channels have 0 values.

Please Log in or Create an account to join the conversation.

More
16 Dec 2012 11:01 #4031 by sbstnp
Replied by sbstnp on topic Phoenix problems in PRE 2.1
My PPM setup is default:
Center PW= 1100
Notch & Delta = 400
Frame size = 22500

Phoenix works and detects the TX only in 10 channel mode. I had to recalibrate the sim since all the channels were way off. After this everything works as it did before.

Devo 10 + 4in1
Spektrum Dx9
FrSky Taranis + TBS Crossfire

Please Log in or Create an account to join the conversation.

More
16 Dec 2012 11:38 - 16 Dec 2012 11:39 #4032 by vlad_vy
Replied by vlad_vy on topic Phoenix problems in PRE 2.1
ppmout.c

if(state & 0x01) {
...
...
val = pulses[state / 2]; => pulses[0.5] or pulses[1.5] or ...
...
...
}
Last edit: 16 Dec 2012 11:39 by vlad_vy.

Please Log in or Create an account to join the conversation.

More
16 Dec 2012 12:37 - 16 Dec 2012 12:38 #4033 by vlad_vy
Replied by vlad_vy on topic Phoenix problems in PRE 2.1
static u16 ppmout_cb()
{
static volatile u16 accum;
u16 val;
if (state == 0) {
accum = 0;
build_data_pkt();
}
if(state & 0x01) {
PWM_Set(1);
if(state == num_channels * 2 + 1) {
state = 0;
if (num_channels > 9)
return num_channels > 9
? Model.proto_opts[PERIOD_PW] + (num_channels - 9) * 2000 - accum
: Model.proto_opts[PERIOD_PW] - accum;
}
val = pulses[state / 2]; maybe val = pulses[(state - 1) / 2];
} else {
PWM_Set(0);
val = Model.proto_opts[NOTCH_PW];
}
state++;
accum += val;
return val;
}

It's working for any number of channels.
Last edit: 16 Dec 2012 12:38 by vlad_vy.

Please Log in or Create an account to join the conversation.

More
16 Dec 2012 13:06 #4034 by Hexperience
Replied by Hexperience on topic Phoenix problems in PRE 2.1
Yeah, I fixed mine like this...

if (num_channels > 9)
return Model.proto_opts[PERIOD_PW] + (num_channels - 9) * 2000 - accum;
return Model.proto_opts[PERIOD_PW] - accum;

But I could be wrong so I didn't say anything.

There are 10 types of people in this world. Those that understand binary and those that don't.

Please Log in or Create an account to join the conversation.

More
16 Dec 2012 13:16 #4035 by vlad_vy
Replied by vlad_vy on topic Phoenix problems in PRE 2.1
It's incorrect.

if (num_channels > 9){
return Model.proto_opts[PERIOD_PW] + (num_channels - 9) * 2000 - accum;
}
else{
return Model.proto_opts[PERIOD_PW] - accum;
}

or will be the same

return num_channels > 9
? Model.proto_opts[PERIOD_PW] + (num_channels - 9) * 2000 - accum
: Model.proto_opts[PERIOD_PW] - accum;

Please Log in or Create an account to join the conversation.

More
16 Dec 2012 13:18 #4036 by PhracturedBlue
Replied by PhracturedBlue on topic Phoenix problems in PRE 2.1
should be fixed now.

Please Log in or Create an account to join the conversation.

More
16 Dec 2012 13:39 - 16 Dec 2012 13:40 #4039 by Hexperience
Replied by Hexperience on topic Phoenix problems in PRE 2.1

vlad_vy wrote: It's incorrect.


Without the brackets the way I did it works fine. One line if statement...

Anyway.. that's exactly why I didn't say anything...

There are 10 types of people in this world. Those that understand binary and those that don't.
Last edit: 16 Dec 2012 13:40 by Hexperience.

Please Log in or Create an account to join the conversation.

More
16 Dec 2012 13:43 #4040 by vlad_vy
Replied by vlad_vy on topic Phoenix problems in PRE 2.1
Yes, it will work, but difficult to read.

Please Log in or Create an account to join the conversation.

Time to create page: 0.051 seconds
Powered by Kunena Forum