Setup of RC receiver and another question

Here is the place for all your dsPic or autopilot questions.

Moderator: lukasz

Re: Setup of RC receiver and another question

Postby TheBoD » Tue Nov 09, 2010 2:31 am

Tom, thanks for your advice on the GPS.

On servo setup issue:-

When I power up the gluonmodule on the RC inputs page , all the readings are around 1500 1530 .

On the servos tab all the fields are showing zeros. The radio button to switch between the two fields to set the servo neutral value is blanked out so I can't switch it between the two settings. I cannot type a value into any of the settings values on the page.

I am not sure what should be the settings for the columns of radio buttons on the RC input tab
When I switch off the transmitter all the servos start twitching around a small amount - the same as RC servos often do when they are connected to the receiver and the trasmitter is switched off so I know they are powered and working.

Many thanks for your advice on this.
TheBoD
 
Posts: 37
Joined: Mon Dec 07, 2009 8:45 pm

Re: Setup of RC receiver and another question

Postby lukasz » Tue Nov 09, 2010 10:22 am

TheBoD, I have run into similar issue with rx on latest firmware.
I also use pwm signals as an input for Gluonpilot.

I noticed that in latest firmware neutral settings are not properly read from the receiver when powered on.
For me neutral settings are being picked up as max (2000).

In the result the servo for which the neutral value hasn't been applied correctly isn't moving.

Can you try out if you have similar problems with version 0.4 (Gluonconfig_v0.4.zip + rtos_pilot_v0.4ALPHA.zip)?

On above release all seemed to work fine for me.
To upload firmware 0.4 you will probably need to use bootloader (ds30 loader).

Regarding
TheBoD wrote:I am not sure what should be the settings for the columns of radio buttons on the RC input tab
When I switch off the transmitter all the servos start twitching around a small amount - the same as RC servos often do when they are connected to the receiver and the trasmitter is switched off so I know they are powered and working.


Once you have your RX connected and transmitter on just move your sticks on TX and see what bars (channel configuration) are moving. Than assign to them Roll, Pitch, Yaw, Motor and AP.
lukasz
 
Posts: 214
Joined: Wed Feb 24, 2010 10:58 pm

Re: Setup of RC receiver and another question

Postby Tom » Tue Nov 09, 2010 7:12 pm

Hi All,

I guess something was wrong with the firmware in this case. From now on I'll do my release-tests with the PWM version as well :-)

Could you guys please try the attached firmware version?

Thanks
Attachments
rtos_pilot.hex
(227.83 KiB) Downloaded 491 times
User avatar
Tom
Site Admin
 
Posts: 1016
Joined: Fri Nov 13, 2009 6:27 pm
Location: Belgium

Re: Setup of RC receiver and another question

Postby lukasz » Tue Nov 09, 2010 8:04 pm

I just flashed my module with attached hex file.
Here are my observations:
1. I flashed the module
2. Powered of by removing FTDI cable
3. On Gluopilot configuration i selected to load defaults + burn
4. Powered of by removing FTDI cable
5. Once rebooted i selected Read
6. RC-input tab shows by default PPM signal - this is as expected.
7. I selected PWM inputs, Write + Burn + Reboot Module (option form gluonpilot module)
8. After reboot I see readings from my transmitter
rc_input.JPG
rc_input.JPG (71.83 KiB) Viewed 8230 times

9. I navigated to servos and see neutral values:
servos_1.JPG
servos_1.JPG (66.11 KiB) Viewed 8230 times

10. Because I have flying wing at this point i do following changes:
a) Reverse servo 1 and 2 on servos tab. Write + Burn + Reboot module (from gluonpilot config tool)
b) after the module reboots I read values to check if they are correct - all seems fine
c) I navigate to Control tab and select Otput mix to Delta +, set Max Pitch and Max Roll, Write + Burn + Reboot module (From gluonconfig Tool)
d) navigate to RC input and select proper Channel configuration (Pitch, Roll, Yaw....), Write + Burn + Reboot module (from GLuonpilot Configuration Tool)
11. At this point all seems to work fine. I read values, run through all configuration tabs and all is set as it expected. Also when moving TX sticks both servos move as expected.
12. I disconnect FTDI cable from Gluonpilot
13. I connect FTDI cable back......
14. One servo after powering on moved to the max position - something is wrong :/
15. I move transmitter sticks and only one servo is moving
16. From Gluonpilot configuration tool i select Read.
17. Navigate to servos tab and this is what i see:
servos_2.JPG
servos_2.JPG (67.4 KiB) Viewed 8230 times

18. Each time i power of gluonpilot module behavior is the same.
19. Now, if I send Reboot command from Gluonpilot configuration tool - all seem to work fine. I have proper Neutral readings. Servos move as expected.

Conclusion:
After removing power source from gluonpilot and power it back sero neutral settings are lost.
If I send reboot command than all work as expected.

I hope that above helps to troubleshoot the problem.
lukasz
 
Posts: 214
Joined: Wed Feb 24, 2010 10:58 pm

Re: Setup of RC receiver and another question

Postby Tom » Tue Nov 09, 2010 8:21 pm

Thanks for your analysis Lukasz!

I know the problem. The gluonpilot module boots faster than the software on your RC-receiver:-)

Now I changed the PWM code to wait, just like the PPM code does.

This should work now :-)
Attachments
rtos_pilot.hex
(228.07 KiB) Downloaded 502 times
User avatar
Tom
Site Admin
 
Posts: 1016
Joined: Fri Nov 13, 2009 6:27 pm
Location: Belgium

Re: Setup of RC receiver and another question

Postby Tom » Tue Nov 09, 2010 8:40 pm

And another slight update (to wait for the last PWM pulse in the worst case situation :-) )
Attachments
rtos_pilot.hex
(228.14 KiB) Downloaded 491 times
User avatar
Tom
Site Admin
 
Posts: 1016
Joined: Fri Nov 13, 2009 6:27 pm
Location: Belgium

Re: Setup of RC receiver and another question

Postby lukasz » Tue Nov 09, 2010 9:22 pm

Tom, neither of two work.
I have exactly same situation as previously.
If Powered on via FTDI cable the Neutral values are not being picked up.
Same thing applies when I power on using my battery.
When Rebooted module from Gluonpilot all works well - servo neutral values are being read.
lukasz
 
Posts: 214
Joined: Wed Feb 24, 2010 10:58 pm

Re: Setup of RC receiver and another question

Postby Tom » Tue Nov 09, 2010 9:55 pm

Timeout issue. Now the PWM timeout time is increased to 0,75 seconds. I guess this should be enough...

Some extra information: In the pre-0.5 release, the code first waiting for a connection with the GPS. This means the RC-receiver had time to start-up. To avoid a long waiting time when there is a GPS-problem, I put this "GPS waiting" in a separate thread. As a result the module assumed the PWM pulses to be available right away at booting time... which wasn't the case
Attachments
rtos_pilot.hex
(229.18 KiB) Downloaded 498 times
User avatar
Tom
Site Admin
 
Posts: 1016
Joined: Fri Nov 13, 2009 6:27 pm
Location: Belgium

Re: Setup of RC receiver and another question

Postby lukasz » Tue Nov 09, 2010 10:50 pm

Last attached firmware works just fine.
Neutral values are being picked up.

Thanks Tom!
lukasz
 
Posts: 214
Joined: Wed Feb 24, 2010 10:58 pm

Re: Setup of RC receiver and another question

Postby TheBoD » Thu Nov 11, 2010 2:54 am

Tom, I installed the new firmware and now the servos are responding to the TX sticks and I can see the values moving on the RC input tab. However I am still getting all zeros on the Servos tab on the config tool. It is not picking up the servo neutral position.

My start-up sequence is
1) Radio TX on
2) Radio Receiver on
3) Power up the Gluon module from the Receiver battery
4) Connect up the FTDI cable and watch the messages coming in
5) Move to the RC tab and see the RC inputs moving
6) Switch to servos tab - all fields are zeros ??

So some progress but I still can't set the servo ranges.
TheBoD
 
Posts: 37
Joined: Mon Dec 07, 2009 8:45 pm

PreviousNext

Return to Firmware

Who is online

Users browsing this forum: No registered users and 1 guest

cron