HILSIM setup -- how to? -- Create file error=2 problem.

47 views
Skip to first unread message

Peter S

unread,
Apr 4, 2011, 9:40:24 PM4/4/11
to uavdevboard
Hi,

I have a red board for a while and just got around to set it up. UDB3
is on the way. I've tested rollpitchyaw and it worked properly. Now
I'm setting up HILSIM. I've tested both MatrixPilot 2.5.1 and the
current code in SVN to make it work. I also tested both pre-compiled
X-Plane plug-in and self-compiled X-Plane plug-in. I searched the
discussion board for other comments. I read all of them. But still I
don't know what else I can troubleshoot. From previous thread, Matt
suggested:
1. Your com port is not available (broken or busy) -- I can use
realterm to open this port without problem. And I close realterm
before I start X-Plane.
2. The setup file is not available in the xplane folder -- I put the
setup file with xplane.exe ..
3. The setup file is locked by another user (does not normally
happen) -- It shouldn't be as I use Unlocker to make sure that setup
file is not owned by any processes.

HILSIMsetup.txt:
Comm,COM12,19200
Overide,sim/operation/override/override_flightcontrol
Control,1,sim/joystick/FC_roll,3000,1000,1000,-1,-1
Control,2,sim/joystick/FC_ptch,3000,1000,1000,-1,-1
# Control,4,sim/joystick/FC_hdng,3000,1000,1000,-1,-1
Engine,3,255,2000,2000,0,1,-1

And I see "Could not open Com Port" in the first line from
HILSIMLogFile.txt..

I also use realterm with 19,200 bps to see that UDB actually sends
lots of data through the COM port.

Another thing that I notice, UDB doesn't send radio data to output
servos in the latest code, while 2.5.1 does. That means if I move the
control stick on the radio, I get servos moving with 2.5.1 but not the
latest code.

How should I troubleshoot? Please help.

Best regards,

Peter

vincent moe

unread,
Apr 5, 2011, 4:03:46 AM4/5/11
to uavde...@googlegroups.com
Hello! i think the code in the SVN is latest but not always ready for
compile. Sometime, they have some line of code to rewrite or change.
"Create file error=2" may prompt if you do not connect serial cable
from UDB before starting X-Plane.

Peter S

unread,
Apr 5, 2011, 6:14:16 AM4/5/11
to uavdevboard
Hi Vincent,

I've attached the FTDI cable before starting X-Plane so the COM port
is there before X-Plane starts. But I followed the step from wiki to
start X-Plane, start UDB, then try to test HILSIM. And I tried both
2.5.1 and the latest code in SVN. So if you have a working setup,
could you please share how to do it? I guess there are a few people
who had the same issue but since then they have solved it.

Best,

Peter

On Apr 5, 3:03 pm, vincent moe <vincent...@gmail.com> wrote:
> Hello! i think the code in the SVN is latest but not always ready for
> compile. Sometime, they have some line of code to rewrite or change.
> "Create file error=2" may prompt if you do not connect serial cable
> from UDB before starting X-Plane.
>

vincent moe

unread,
Apr 7, 2011, 1:37:59 AM4/7/11
to uavde...@googlegroups.com
Hi! Peter S
CHECK THESE!!!
(1) if you setup HILSIM with 2.5.1, use the setup file include with 2.5.1. (try pre-compiled plugin FIRST!)
(2) Make sure HILSIM = 1 in option.h
(3) your COM port number and SIMsetup file COMport number must match.

Marcus Fahlén

unread,
Apr 7, 2011, 4:39:27 PM4/7/11
to uavde...@googlegroups.com
Do you have a PIC programmer connected to the computer while starting X-Plane? If you have, DISCONNECT IT before and while X-Plane is booting.
See if this helps.


/Marc




From: vincent moe <vince...@gmail.com>
Sent: 7. april 2011 07:37
To: uavde...@googlegroups.com
Subject: Re: HILSIM setup -- how to? -- Create file error=2 problem.

Peter S

unread,
Apr 7, 2011, 5:32:44 PM4/7/11
to uavdevboard
Hi Vincent,

I used HIMSIMSetup.txt file that comes with 2.5.1 code. I put
HILSIMSetup.txt in the first post. Did I set it wrong? I made sure
that the COM port is correct (COM12), and I commented Heading out as I
don't plan for rudder on the test plane.
> (1) if you setup HILSIM with 2.5.1, use the setup file include with 2.5.1.
> (try pre-compiled plugin FIRST!)
I used HILSIMSetup.txt that comes from 2.5.1 as I posted above. I
used both pre-compiled plugin and self-compiled plugin. Now I just
use pre-compiled plugin.

> (2) Make sure HILSIM = 1 in option.h
Check that. I always set HILSIM=1.

> (3) your COM port number and SIMsetup file COMport number must match.
Check that already. It's correct.

Best,

Peter

Peter S

unread,
Apr 7, 2011, 5:35:57 PM4/7/11
to uavdevboard
Hi Marc,

I didn't have PIC programmer connected to the computer. I only had
FTDI connected to UDB when I tested HILSIM. I searched around in the
discussion group. Few other people had problem with this but after a
few days they solved it somehow. I'm not sure what should I do.
Maybe I'll just go ahead and do a test flight in the field. Do you
think this would work as well? But I may need to change a few things
before that as I have a Electric EPP Cessna model with 2m wingspan
with flaps. So what would be the right choice to set this one up?
Anybody use flaps with UDB before?

Best,

Peter

On Apr 8, 3:39 am, Marcus Fahlén <marcus.fah...@gmail.com> wrote:
> Do you have a PIC programmer connected to the computer while starting X-Plane? If you have, DISCONNECT IT before and while X-Plane is booting.
> See if this helps.
>
> /Marc
>
>
>
>
>
>
>
> -----Original Message-----
> From: vincent moe <vincent...@gmail.com>
> Sent: 7. april 2011 07:37
> To: uavde...@googlegroups.com
> Subject: Re: HILSIM setup -- how to? -- Create file error=2 problem.
>
> Hi! Peter S
> CHECK THESE!!!
> (1) if you setup HILSIM with 2.5.1, use the setup file include with 2.5.1. (try pre-compiled plugin FIRST!)
> (2) Make sure HILSIM = 1 in option.h
> (3) your COM port number and SIMsetup file COMport number must match.
>

Marc-X

unread,
Apr 13, 2011, 10:33:57 PM4/13/11
to uavde...@googlegroups.com
I'm using flaps with UDB3 (and HILSIM)

/ Marc
Reply all
Reply to author
Forward
0 new messages