- Posts: 10
Phoenix problems in PRE 2.1
- HiNote
-
Topic Author
- Offline
Less
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
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
- Hexperience
-
- Offline
Less
More
- Posts: 588
16 Dec 2012 02:09 - 16 Dec 2012 02:42 #4024
by Hexperience
There are 10 types of people in this world. Those that understand binary and those that don't.
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.
- PhracturedBlue
-
- Offline
Less
More
- Posts: 4403
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.
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.
- dado099
-
- Offline
Less
More
- Posts: 95
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
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.
- vlad_vy
-
- Offline
Less
More
- Posts: 3333
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.
- sbstnp
-
- Offline
Less
More
- Posts: 649
16 Dec 2012 11:01 #4031
by sbstnp
Devo 10 + 4in1
Spektrum Dx9
FrSky Taranis + TBS Crossfire
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.
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
FrSky Taranis + TBS Crossfire
- vlad_vy
-
- Offline
Less
More
- Posts: 3333
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 ...
...
...
}
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.
- vlad_vy
-
- Offline
Less
More
- Posts: 3333
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.
{
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;
? 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.
- Hexperience
-
- Offline
Less
More
- Posts: 588
16 Dec 2012 13:06 #4034
by Hexperience
There are 10 types of people in this world. Those that understand binary and those that don't.
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.
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.
- vlad_vy
-
- Offline
Less
More
- Posts: 3333
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;
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;
- PhracturedBlue
-
- Offline
Less
More
- Posts: 4403
16 Dec 2012 13:18 #4036
by PhracturedBlue
Replied by PhracturedBlue on topic Phoenix problems in PRE 2.1
should be fixed now.
- Hexperience
-
- Offline
Less
More
- Posts: 588
16 Dec 2012 13:39 - 16 Dec 2012 13:40 #4039
by Hexperience
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.
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.
- vlad_vy
-
- Offline
Less
More
- Posts: 3333
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.
Time to create page: 0.387 seconds
-
Home
-
Forum
-
News, Announcements and Feedback
-
Feedback & Questions
- Phoenix problems in PRE 2.1