Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
PX4IO - some updates
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  15 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
PX4 Developer  
View profile  
 More options Oct 21 2012, 2:57 am
From: PX4 Developer <p...@purgatory.org>
Date: Sat, 20 Oct 2012 23:57:31 -0700
Local: Sun, Oct 21 2012 2:57 am
Subject: PX4IO - some updates

For anyone that's been playing with the PX4IO board; I've just pushed a set of changes to the px4io driver on the PX4FMU that might be interesting.

Specifcally, if you add 'px4io start' to your startup script, the 8 PWM servo outs should be available in the same fashion as the 4 PWM outs on FMU, and mixer scripts can be loaded in the same fashion, accessing all 8 outputs.

The two drivers should actually get along; whichever comes first ('px4io start' or 'fmu mode_pwm') will be the default outputs, but there are facilities for driving the second set as well; check the code for more details.

If anyone is tinkering with PX4IO, I'd love to hear from you; there's a lot of work to be done and if there's something specific that would be good to have sooner, it would help me pick things to prioritise.

--
p...@purgatory.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Philipp Oettershagen  
View profile  
 More options Nov 1 2012, 1:14 pm
From: Philipp Oettershagen <philipp.oettersha...@gmail.com>
Date: Thu, 1 Nov 2012 10:14:04 -0700 (PDT)
Local: Thurs, Nov 1 2012 1:14 pm
Subject: Re: PX4IO - some updates

Hi,

thanks a lot for the good work on PX4IO first of all. Is there any
documentation yet on how to access these inputs? I will look into the code
in the next days anyways, but a short docu would help me (and probably many
other beginners) to start :)

Concerning the features, I have one request at the moment (and might have a
lot more on the future, because we`re working on a project which makes big
use of PX4FMU/IO here):
- Spektrum RC Support for PX4IO (Lorenz said in another thread that it's
currently not implemented though it was tested a while ago)

Cheers,
Philipp


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Philipp Oettershagen  
View profile  
 More options Nov 5 2012, 2:41 pm
From: Philipp Oettershagen <philipp.oettersha...@gmail.com>
Date: Mon, 5 Nov 2012 11:41:14 -0800 (PST)
Local: Mon, Nov 5 2012 2:41 pm
Subject: Re: PX4IO - some updates

Hi,

so how does one access the 8 PX4IO PWM outputs exactly? Having included the
actuator_controls topic from uOrb, I advertise & publish reasonable
pwm-values (1000...2000) for all 8 available controls. However, in my test
app the servos do not move. I upgraded PX4io with the newest firmware from
today and started it successfully through the startup script.

Alternate questions: How could one make the fixedwing_control app throw its
outputs to the PX4IO servo outputs instead of to the FMU outputs?

Best,
Philipp


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Meier Lorenz  
View profile  
 More options Nov 5 2012, 3:58 pm
From: "Meier Lorenz" <l...@inf.ethz.ch>
Date: Mon, 5 Nov 2012 20:58:16 +0000
Local: Mon, Nov 5 2012 3:58 pm
Subject: Re: [px4users] Re: PX4IO - some updates
If you don't start the FMU PWM outputs, it will use IO. Whatever starts first gets control output group 0 and the second one group 1.

Stupid question: You did arm FMU AND IO, right? (FMU: fast blinking main loop led, IO: fast blinking arming switch led).

-Lorenz

Am 05.11.2012 um 20:41 schrieb Philipp Oettershagen <philipp.oettersha...@gmail.com<mailto:philipp.oettersha...@gmail.com>>
:

Hi,

so how does one access the 8 PX4IO PWM outputs exactly? Having included the actuator_controls topic from uOrb, I advertise & publish reasonable pwm-values (1000...2000) for all 8 available controls. However, in my test app the servos do not move. I upgraded PX4io with the newest firmware from today and started it successfully through the startup script.

Alternate questions: How could one make the fixedwing_control app throw its outputs to the PX4IO servo outputs instead of to the FMU outputs?

Best,
Philipp

On Sunday, October 21, 2012 8:57:32 AM UTC+2, PX4 Developer wrote:

For anyone that's been playing with the PX4IO board; I've just pushed a set of changes to the px4io driver on the PX4FMU that might be interesting.

Specifcally, if you add 'px4io start' to your startup script, the 8 PWM servo outs should be available in the same fashion as the 4 PWM outs on FMU, and mixer scripts can be loaded in the same fashion, accessing all 8 outputs.

The two drivers should actually get along; whichever comes first ('px4io start' or 'fmu mode_pwm') will be the default outputs, but there are facilities for driving the second set as well; check the code for more details.

If anyone is tinkering with PX4IO, I'd love to hear from you; there's a lot of work to be done and if there's something specific that would be good to have sooner, it would help me pick things to prioritise.

--
p...@purgatory.org<javascript:>

--
Website at: http://pixhawk.ethz.ch/px4/

You received this message because you are subscribed to the Google Groups px4users group. To post to this group, send email to px4users@googlegroups.com<mailto:px4users@googlegroups.com>. To unsubscribe from this group, send email to px4users+unsubscribe@googlegroups.com<mailto:px4users+unsubscribe@googlegro ups.com>. For more options, visit this group at https://groups.google.com/d/forum/px4users?hl=en-US


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
PX4 Developer  
View profile  
 More options Nov 6 2012, 12:20 am
From: PX4 Developer <p...@purgatory.org>
Date: Mon, 5 Nov 2012 21:20:33 -0800
Local: Tues, Nov 6 2012 12:20 am
Subject: Re: [px4users] PX4IO - some updates

Philipp,

It depends on how you want to use them.

The first of the 'fmu' and 'px4io' drivers that you start will become the 'default' PWM output.  If you start the other, it will become the secondary PWM output. There are four PWM output topics, which are claimed in order by the fmu and px4io drivers:

ORB_DECLARE(actuator_controls_0);
ORB_DECLARE(actuator_controls_1);
ORB_DECLARE(actuator_controls_2);
ORB_DECLARE(actuator_controls_3);

So if you just want to add more PWM outputs, once you've started the px4io driver you can publish to the second topic (actuator_controls_1) and that will drive the PX4IO outputs. The third and fourth topics are not yet claimed by anything yet.

In addition, the px4io driver has a device node (/dev/px4io) that responds to the PWM_SERVO and MIXER ioctls; if you don't want to use the ORB, then you can use ioctls instead. The node should respond to the GPIO ioctls, but there is work that needs to be done to make that behave right first. There's a trivial example of using the ioctl interface in the px4io 'test' command implementation.

HTH - let me know how you go on.  

On Nov 5, 2012, at 11:41 AM, Philipp Oettershagen wrote:

--
p...@purgatory.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Philipp Oettershagen  
View profile  
 More options Nov 6 2012, 6:43 am
From: Philipp Oettershagen <philipp.oettersha...@gmail.com>
Date: Tue, 6 Nov 2012 03:43:30 -0800 (PST)
Local: Tues, Nov 6 2012 6:43 am
Subject: Re: [px4users] PX4IO - some updates

Hi,

ok, so I think arming is one issue here :) To give you a problem
description, these are the LED states:

FMU: blue led solid, red led slowly (ca. 1Hz) blinking
IO: blue led 2Hz, red off
safety switch led: off

The only docu on how to arm the system was that one should "press the
safety switch". If I do this, I have a solid safety switch LED for 1s, then
blinking, and once I release the safety switch the SS-LED turns off again
with nothing changed on FMU & IO.

Is there any documentation on how to arm FMU&IO exactly? I also tried to
manually set the vehicle_status.state_machine (from STDBY to PREFLIGHT) and
vehicle_status.flag_system_armed variables, but that did not change
anything.

I guess its pretty simple once you know how to... :)

Best,
Philipp


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Meier Lorenz  
View profile  
 More options Nov 6 2012, 6:51 am
From: "Meier Lorenz" <l...@inf.ethz.ch>
Date: Tue, 6 Nov 2012 11:51:51 +0000
Local: Tues, Nov 6 2012 6:51 am
Subject: Re: [px4users] PX4IO - some updates
We have to sort out the fixed wing story, but for now: Arm by putting the throttle lever on the lower right corner, like for a quad. Make sure to have the RC settings right. For now I recommend to calibrate your RC with mission planner, I didn't get around yet to test QGC.

-Lorenz

------------------------------------------------------
Lorenz Meier
Institute for Visual Computing
ETH Zurich
http://www.inf.ethz.ch/personal/lomeier/

On Nov 6, 2012, at 12:43 PM, Philipp Oettershagen wrote:

Hi,

ok, so I think arming is one issue here :) To give you a problem description, these are the LED states:

FMU: blue led solid, red led slowly (ca. 1Hz) blinking
IO: blue led 2Hz, red off
safety switch led: off

The only docu on how to arm the system was that one should "press the safety switch". If I do this, I have a solid safety switch LED for 1s, then blinking, and once I release the safety switch the SS-LED turns off again with nothing changed on FMU & IO.

Is there any documentation on how to arm FMU&IO exactly? I also tried to manually set the vehicle_status.state_machine (from STDBY to PREFLIGHT) and vehicle_status.flag_system_armed variables, but that did not change anything.

I guess its pretty simple once you know how to... :)

Best,
Philipp

On Tuesday, November 6, 2012 6:20:34 AM UTC+1, PX4 Developer wrote:

Philipp,

It depends on how you want to use them.

The first of the 'fmu' and 'px4io' drivers that you start will become the 'default' PWM output.  If you start the other, it will become the secondary PWM output. There are four PWM output topics, which are claimed in order by the fmu and px4io drivers:

ORB_DECLARE(actuator_controls_0);
ORB_DECLARE(actuator_controls_1);
ORB_DECLARE(actuator_controls_2);
ORB_DECLARE(actuator_controls_3);

So if you just want to add more PWM outputs, once you've started the px4io driver you can publish to the second topic (actuator_controls_1) and that will drive the PX4IO outputs. The third and fourth topics are not yet claimed by anything yet.

In addition, the px4io driver has a device node (/dev/px4io) that responds to the PWM_SERVO and MIXER ioctls; if you don't want to use the ORB, then you can use ioctls instead. The node should respond to the GPIO ioctls, but there is work that needs to be done to make that behave right first. There's a trivial example of using the ioctl interface in the px4io 'test' command implementation.

HTH - let me know how you go on.

On Nov 5, 2012, at 11:41 AM, Philipp Oettershagen wrote:

Hi,

so how does one access the 8 PX4IO PWM outputs exactly? Having included the actuator_controls topic from uOrb, I advertise & publish reasonable pwm-values (1000...2000) for all 8 available controls. However, in my test app the servos do not move. I upgraded PX4io with the newest firmware from today and started it successfully through the startup script.

Alternate questions: How could one make the fixedwing_control app throw its outputs to the PX4IO servo outputs instead of to the FMU outputs?

Best,
Philipp

On Sunday, October 21, 2012 8:57:32 AM UTC+2, PX4 Developer wrote:

For anyone that's been playing with the PX4IO board; I've just pushed a set of changes to the px4io driver on the PX4FMU that might be interesting.

Specifcally, if you add 'px4io start' to your startup script, the 8 PWM servo outs should be available in the same fashion as the 4 PWM outs on FMU, and mixer scripts can be loaded in the same fashion, accessing all 8 outputs.

The two drivers should actually get along; whichever comes first ('px4io start' or 'fmu mode_pwm') will be the default outputs, but there are facilities for driving the second set as well; check the code for more details.

If anyone is tinkering with PX4IO, I'd love to hear from you; there's a lot of work to be done and if there's something specific that would be good to have sooner, it would help me pick things to prioritise.

--
p...@purgatory.org

--
Website at: http://pixhawk.ethz.ch/px4/

You received this message because you are subscribed to the Google Groups px4users group. To post to this group, send email to px4u...@googlegroups.com<javascript:>. To unsubscribe from this group, send email to px4users+u...@googlegroups.com<javascript:>. For more options, visit this group at https://groups.google.com/d/forum/px4users?hl=en-US

--
p...@purgatory.org<javascript:>

--
Website at: http://pixhawk.ethz.ch/px4/

You received this message because you are subscribed to the Google Groups px4users group. To post to this group, send email to px4users@googlegroups.com<mailto:px4users@googlegroups.com>. To unsubscribe from this group, send email to px4users+unsubscribe@googlegroups.com<mailto:px4users+unsubscribe@googlegro ups.com>. For more options, visit this group at https://groups.google.com/d/forum/px4users?hl=en-US


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Meier Lorenz  
View profile  
 More options Nov 6 2012, 9:24 am
From: "Meier Lorenz" <l...@inf.ethz.ch>
Date: Tue, 6 Nov 2012 14:24:40 +0000
Local: Tues, Nov 6 2012 9:24 am
Subject: Re: [px4users] PX4IO - some updates
Hi,

Any luck with this in the meantime?

-Lorenz

------------------------------------------------------
Lorenz Meier
Institute for Visual Computing
ETH Zurich
http://www.inf.ethz.ch/personal/lomeier/

On Nov 6, 2012, at 12:43 PM, Philipp Oettershagen wrote:

Hi,

ok, so I think arming is one issue here :) To give you a problem description, these are the LED states:

FMU: blue led solid, red led slowly (ca. 1Hz) blinking
IO: blue led 2Hz, red off
safety switch led: off

The only docu on how to arm the system was that one should "press the safety switch". If I do this, I have a solid safety switch LED for 1s, then blinking, and once I release the safety switch the SS-LED turns off again with nothing changed on FMU & IO.

Is there any documentation on how to arm FMU&IO exactly? I also tried to manually set the vehicle_status.state_machine (from STDBY to PREFLIGHT) and vehicle_status.flag_system_armed variables, but that did not change anything.

I guess its pretty simple once you know how to... :)

Best,
Philipp

On Tuesday, November 6, 2012 6:20:34 AM UTC+1, PX4 Developer wrote:

Philipp,

It depends on how you want to use them.

The first of the 'fmu' and 'px4io' drivers that you start will become the 'default' PWM output.  If you start the other, it will become the secondary PWM output. There are four PWM output topics, which are claimed in order by the fmu and px4io drivers:

ORB_DECLARE(actuator_controls_0);
ORB_DECLARE(actuator_controls_1);
ORB_DECLARE(actuator_controls_2);
ORB_DECLARE(actuator_controls_3);

So if you just want to add more PWM outputs, once you've started the px4io driver you can publish to the second topic (actuator_controls_1) and that will drive the PX4IO outputs. The third and fourth topics are not yet claimed by anything yet.

In addition, the px4io driver has a device node (/dev/px4io) that responds to the PWM_SERVO and MIXER ioctls; if you don't want to use the ORB, then you can use ioctls instead. The node should respond to the GPIO ioctls, but there is work that needs to be done to make that behave right first. There's a trivial example of using the ioctl interface in the px4io 'test' command implementation.

HTH - let me know how you go on.

On Nov 5, 2012, at 11:41 AM, Philipp Oettershagen wrote:

Hi,

so how does one access the 8 PX4IO PWM outputs exactly? Having included the actuator_controls topic from uOrb, I advertise & publish reasonable pwm-values (1000...2000) for all 8 available controls. However, in my test app the servos do not move. I upgraded PX4io with the newest firmware from today and started it successfully through the startup script.

Alternate questions: How could one make the fixedwing_control app throw its outputs to the PX4IO servo outputs instead of to the FMU outputs?

Best,
Philipp

On Sunday, October 21, 2012 8:57:32 AM UTC+2, PX4 Developer wrote:

For anyone that's been playing with the PX4IO board; I've just pushed a set of changes to the px4io driver on the PX4FMU that might be interesting.

Specifcally, if you add 'px4io start' to your startup script, the 8 PWM servo outs should be available in the same fashion as the 4 PWM outs on FMU, and mixer scripts can be loaded in the same fashion, accessing all 8 outputs.

The two drivers should actually get along; whichever comes first ('px4io start' or 'fmu mode_pwm') will be the default outputs, but there are facilities for driving the second set as well; check the code for more details.

If anyone is tinkering with PX4IO, I'd love to hear from you; there's a lot of work to be done and if there's something specific that would be good to have sooner, it would help me pick things to prioritise.

--
p...@purgatory.org

--
Website at: http://pixhawk.ethz.ch/px4/

You received this message because you are subscribed to the Google Groups px4users group. To post to this group, send email to px4u...@googlegroups.com<javascript:>. To unsubscribe from this group, send email to px4users+u...@googlegroups.com<javascript:>. For more options, visit this group at https://groups.google.com/d/forum/px4users?hl=en-US

--
p...@purgatory.org<javascript:>

--
Website at: http://pixhawk.ethz.ch/px4/

You received this message because you are subscribed to the Google Groups px4users group. To post to this group, send email to px4users@googlegroups.com<mailto:px4users@googlegroups.com>. To unsubscribe from this group, send email to px4users+unsubscribe@googlegroups.com<mailto:px4users+unsubscribe@googlegro ups.com>. For more options, visit this group at https://groups.google.com/d/forum/px4users?hl=en-US


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Philipp Oettershagen  
View profile  
 More options Nov 6 2012, 2:03 pm
From: Philipp Oettershagen <philipp.oettersha...@gmail.com>
Date: Tue, 6 Nov 2012 11:03:18 -0800 (PST)
Local: Tues, Nov 6 2012 2:03 pm
Subject: Re: [px4users] PX4IO - some updates

Hi,

unfortunately no, I cannot even arm because I do not get a RC connection. I
am using the small satellite receiver of a Spektrum AR7010 at the PX4IO
"Spektrum In" plug. This satellite receiver is correctly bound to my DX7
Transmitter. APM Planner however does not detect RC signals.

Also, I wrote a small "_testRC" application which does not show any RC
channel data. The therein contained code

printf("RC channel count: %d",rc.chan_count);

>   printf("RC valid: %d",rc.is_valid);
>   printf("RC signal quality: %d",rc.rssi);
>   printf("rc channels [1-8]: %f %f %f %f %f %f %f %f
> %f\n",rc.chan[0].scaled,rc.chan[1].scaled,rc.chan[2].scaled,rc.chan[3].scal ed,

> rc.chan[4].scaled,rc.chan[5].scaled,rc.chan[6].scaled,rc.chan[7].scaled);

gives zero for rc.chan_count and all other values printed (with rc being a
subscription of the rc_channels topic). I get the same values (i.e. chan
count = 0) both before and after initialization of the px4io using "px4io
start rx_spektrum7". I also did not find the direct implementation of the
"px4io start rx_spektrum7" command in the code, i.e. I could not find
"rx_spektrum7" in the whole workspace at all! Is this normal?

What might I be doing wrong?
Best,
Philipp


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
PX4 Developer  
View profile  
 More options Nov 7 2012, 2:27 am
From: PX4 Developer <p...@purgatory.org>
Date: Tue, 6 Nov 2012 23:27:14 -0800
Local: Wed, Nov 7 2012 2:27 am
Subject: Re: [px4users] PX4IO - some updates

Philipp,

It sounds like there may be a problem with your safety switch wiring.  The safety switch LED should be on solid when PX4IO boots.

Currently, PX4IO cannot be armed until PX4FMU is armed.  The arming policy in general is open to discussion, but for now the design is somewhat tilted towards fixed-wing usage, where arming the aircraft is something you would do very late in your pre-flight checklist. This is not necessarily optimal for a rotorcraft, where you typically want to arm at a safe distance.

First, you need to sort out why your safety switch LED is not behaving correctly.  It should be wired like this (forgive the sloppy Upverter screencap):

If the LED is on while the switch is closed, then I think you may have managed to wire the switch and LED in series somehow.  At any rate, once the safety LED is blinking, PX4IO is armed and it believes that PX4FMU is armed as well.

Here's a simple test procedure you can use to verify that PX4IO is behaving:
Set up your PX4FMU to boot to the shell without starting the normal flight software; e.g. an /etc/rc on your microSD card containing just
  set MODE none
Disconnect everything except your serial console from PX4IO/PX4FMU.  
Attach a servo to PX4IO servo output 1 (closest to the power connector).  Alternatively you can attach an oscilloscope or servo tester capable of measuring PWM servo signals.
At the nsh prompt, enter the following commands:
  nsh> px4io start
  nsh> px4io test
Press and hold the PX4IO safety switch until the safety LED is blinking (~1 second).
You should observe a 1000µs pulse on PX4IO servo output 1. Each channel above 1 should have a pulse longer by 100µs than the channel below (e.g. channel 2 should be 1100µs and so on).

On Nov 6, 2012, at 3:43 AM, Philipp Oettershagen wrote:

--
p...@purgatory.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
PX4 Developer  
View profile  
 More options Nov 7 2012, 2:28 am
From: PX4 Developer <p...@purgatory.org>
Date: Tue, 6 Nov 2012 23:28:42 -0800
Local: Wed, Nov 7 2012 2:28 am
Subject: Re: [px4users] PX4IO - some updates

Philipp,

As per other recent threads, Spektrum input has not been tested yet as I don't have a working Spektrum setup. If you don't mind doing a little debugging on PX4IO, it should be easy to work out what's going wrong.

On Nov 6, 2012, at 11:03 AM, Philipp Oettershagen wrote:

--
p...@purgatory.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
PX4 Developer  
View profile  
 More options Nov 7 2012, 5:17 am
From: PX4 Developer <p...@purgatory.org>
Date: Wed, 7 Nov 2012 02:17:40 -0800
Local: Wed, Nov 7 2012 5:17 am
Subject: Re: [px4users] PX4IO - some updates

Actually, I take that back.  There are some serious issues with the decoder as-is; I'm working up a new version.  The protocol is more annoying than it first seemed.

On Nov 6, 2012, at 11:28 PM, PX4 Developer wrote:

--
p...@purgatory.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Philipp Oettershagen  
View profile  
 More options Nov 7 2012, 10:41 am
From: Philipp Oettershagen <philipp.oettersha...@gmail.com>
Date: Wed, 7 Nov 2012 07:41:16 -0800 (PST)
Local: Wed, Nov 7 2012 10:41 am
Subject: Re: [px4users] PX4IO - some updates

Hi,

ok, arming switch issue is working now, there were some minor glitches with
pin ordering in the old PX4IO manual... My IO is therefore armed now.
Thanks for the good explanations guys!

However, still now Spektrum input. PX4Dev, let me know when you pushed the
new spektrum version, i will test it ASAP then!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Meier Lorenz  
View profile  
 More options Nov 7 2012, 10:43 am
From: "Meier Lorenz" <l...@inf.ethz.ch>
Date: Wed, 7 Nov 2012 15:43:20 +0000
Local: Wed, Nov 7 2012 10:43 am
Subject: Re: [px4users] PX4IO - some updates
Philipp,

It's pushed to master - please test. Your feedback is appreciated, thanks for following up on the arming switch.

-Lorenz

------------------------------------------------------
Lorenz Meier
Institute for Visual Computing
ETH Zurich
http://www.inf.ethz.ch/personal/lomeier/

On Nov 7, 2012, at 4:41 PM, Philipp Oettershagen wrote:

Hi,

ok, arming switch issue is working now, there were some minor glitches with pin ordering in the old PX4IO manual... My IO is therefore armed now. Thanks for the good explanations guys!

However, still now Spektrum input. PX4Dev, let me know when you pushed the new spektrum version, i will test it ASAP then!

On Wednesday, November 7, 2012 11:17:41 AM UTC+1, PX4 Developer wrote:

Actually, I take that back.  There are some serious issues with the decoder as-is; I'm working up a new version.  The protocol is more annoying than it first seemed.

On Nov 6, 2012, at 11:28 PM, PX4 Developer wrote:

Philipp,

As per other recent threads, Spektrum input has not been tested yet as I don't have a working Spektrum setup. If you don't mind doing a little debugging on PX4IO, it should be easy to work out what's going wrong.

On Nov 6, 2012, at 11:03 AM, Philipp Oettershagen wrote:

Hi,

unfortunately no, I cannot even arm because I do not get a RC connection. I am using the small satellite receiver of a Spektrum AR7010 at the PX4IO "Spektrum In" plug. This satellite receiver is correctly bound to my DX7 Transmitter. APM Planner however does not detect RC signals.

Also, I wrote a small "_testRC" application which does not show any RC channel data. The therein contained code

printf("RC channel count: %d",rc.chan_count);
  printf("RC valid: %d",rc.is<http://rc.is/>_valid);
  printf("RC signal quality: %d",rc.rssi);
  printf("rc channels [1-8]: %f %f %f %f %f %f %f %f %f\n",rc.chan[0].scaled,rc.chan[1].scaled,rc.chan[2].scaled,rc.chan[3].scal ed,
          rc.chan[4].scaled,rc.chan[5].scaled,rc.chan[6].scaled,rc.chan[7].scaled);

gives zero for rc.chan_count and all other values printed (with rc being a subscription of the rc_channels topic). I get the same values (i.e. chan count = 0) both before and after initialization of the px4io using "px4io start rx_spektrum7". I also did not find the direct implementation of the "px4io start rx_spektrum7" command in the code, i.e. I could not find "rx_spektrum7" in the whole workspace at all! Is this normal?

What might I be doing wrong?
Best,
Philipp

On Tuesday, November 6, 2012 3:24:42 PM UTC+1, Lorenz Meier wrote:

Hi,

Any luck with this in the meantime?

-Lorenz

------------------------------------------------------
Lorenz Meier
Institute for Visual Computing
ETH Zurich
http://www.inf.ethz.ch/personal/lomeier/

On Nov 6, 2012, at 12:43 PM, Philipp Oettershagen wrote:

Hi,

ok, so I think arming is one issue here :) To give you a problem description, these are the LED states:

FMU: blue led solid, red led slowly (ca. 1Hz) blinking
IO: blue led 2Hz, red off
safety switch led: off

The only docu on how to arm the system was that one should "press the safety switch". If I do this, I have a solid safety switch LED for 1s, then blinking, and once I release the safety switch the SS-LED turns off again with nothing changed on FMU & IO.

Is there any documentation on how to arm FMU&IO exactly? I also tried to manually set the vehicle_status.state_machine (from STDBY to PREFLIGHT) and vehicle_status.flag_system_armed variables, but that did not change anything.

I guess its pretty simple once you know how to... :)

Best,
Philipp

On Tuesday, November 6, 2012 6:20:34 AM UTC+1, PX4 Developer wrote:

Philipp,

It depends on how you want to use them.

The first of the 'fmu' and 'px4io' drivers that you start will become the 'default' PWM output.  If you start the other, it will become the secondary PWM output. There are four PWM output topics, which are claimed in order by the fmu and px4io drivers:

ORB_DECLARE(actuator_controls_0);
ORB_DECLARE(actuator_controls_1);
ORB_DECLARE(actuator_controls_2);
ORB_DECLARE(actuator_controls_3);

So if you just want to add more PWM outputs, once you've started the px4io driver you can publish to the second topic (actuator_controls_1) and that will drive the PX4IO outputs. The third and fourth topics are not yet claimed by anything yet.

In addition, the px4io driver has a device node (/dev/px4io) that responds to the PWM_SERVO and MIXER ioctls; if you don't want to use the ORB, then you can use ioctls instead. The node should respond to the GPIO ioctls, but there is work that needs to be done to make that behave right first. There's a trivial example of using the ioctl interface in the px4io 'test' command implementation.

HTH - let me know how you go on.

On Nov 5, 2012, at 11:41 AM, Philipp Oettershagen wrote:

Hi,

so how does one access the 8 PX4IO PWM outputs exactly? Having included the actuator_controls topic from uOrb, I advertise & publish reasonable pwm-values (1000...2000) for all 8 available controls. However, in my test app the servos do not move. I upgraded PX4io with the newest firmware from today and started it successfully through the startup script.

Alternate questions: How could one make the fixedwing_control app throw its outputs to the PX4IO servo outputs instead of to the FMU outputs?

Best,
Philipp

On Sunday, October 21, 2012 8:57:32 AM UTC+2, PX4 Developer wrote:

For anyone that's been playing with the PX4IO board; I've just pushed a set of changes to the px4io driver on the PX4FMU that might be interesting.

Specifcally, if you add 'px4io start' to your startup script, the 8 PWM servo outs should be available in the same fashion as the 4 PWM outs on FMU, and mixer scripts can be loaded in the same fashion, accessing all 8 outputs.

The two drivers should actually get along; whichever comes first ('px4io start' or 'fmu mode_pwm') will be the default outputs, but there are facilities for driving the second set as well; check the code for more details.

If anyone is tinkering with PX4IO, I'd love to hear from you; there's a lot of work to be done and if there's something specific that would be good to have sooner, it would help me pick things to prioritise.

--
p...@purgatory.org

--
Website at: http://pixhawk.ethz.ch/px4/

You received this message because you are subscribed to the Google Groups px4users group. To post to this group, send email to px4u...@googlegroups.com<javascript:>. To unsubscribe from this group, send email to px4users+u...@googlegroups.com<javascript:>. For more options, visit this group at https://groups.google.com/d/forum/px4users?hl=en-US

--
p...@purgatory.org<javascript:>

--
Website at: http://pixhawk.ethz.ch/px4/

You received this message because you are subscribed to the Google Groups px4users group. To post to this group, send email to px4u...@googlegroups.com<mailto:px4u...@googlegroups.com>. To unsubscribe from this group, send email to px4users+u...@googlegroups.com<mailto:px4users+unsubscribe@googlegroups.com >. For more options, visit this group at https://groups.google.com/d/forum/px4users?hl=en-US

--
Website at: http://pixhawk.ethz.ch/px4/

You received this message because you are subscribed to the Google Groups px4users group. To post to this group, send email to px4u...@googlegroups.com<javascript:>. To unsubscribe from this group, send email to px4users+u...@googlegroups.com<javascript:>. For more options, visit this group at https://groups.google.com/d/forum/px4users?hl=en-US

--
p...@purgatory.org<javascript:>

--
Website at: http://pixhawk.ethz.ch/px4/

You received this message because you are subscribed to the Google Groups px4users group. To post to this group, send email to px4u...@googlegroups.com<javascript:>. To unsubscribe from this group, send email to px4users+u...@googlegroups.com<javascript:>. For more options, visit this group at https://groups.google.com/d/forum/px4users?hl=en-US

--
p...@purgatory.org<javascript:>

--
Website at: http://pixhawk.ethz.ch/px4/

You received this message because you are subscribed to the Google Groups px4users group. To post to this group, send email to px4users@googlegroups.com<mailto:px4users@googlegroups.com>. To unsubscribe from this group, send email to px4users+unsubscribe@googlegroups.com<mailto:px4users+unsubscribe@googlegro ups.com>. For more options, visit this group at https://groups.google.com/d/forum/px4users?hl=en-US


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Philipp Oettershagen  
View profile  
 More options Nov 7 2012, 10:50 am
From: Philipp Oettershagen <philipp.oettersha...@gmail.com>
Date: Wed, 7 Nov 2012 07:50:07 -0800 (PST)
Local: Wed, Nov 7 2012 10:50 am
Subject: Re: [px4users] PX4IO - some updates

...and the px4io test works now that the PX4IO is armed...

P.S: An edit function would be nice for this board/group! :)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »