Trouble With Following SITL Wiki Page

Hi,

I'm a newbie and trying to do SITL of ArduCopter. Here is the steps I follow:

1. I run ArduCopter.elf and get the following messeges:

Starting SITL input
Serial port 0 on TCP port 5760
Waiting for connection ....

2. I type mavproxy.py --master tcp:127.0.0.1:5760 and get the followins:

Logging to mav.log


Init ArduCopter V2.5.5

Free RAM: 4096
FW Ver: 118
----------------------------MAV> ------------


load_all took 9us

Press ENTER 3 times for CLI

GUEU"d'`8EU3ising APM... ublox OK

GPS
----------------------------------------
enabled


U3STARTtU*U"d'`mInit GyroU<U"d'`*UU    "d'`J*U3
kU"d'`*U\U"d'`*UoU"d'`?*UVXU"d'`O*U3ising APM...OUU"d'`1_*U.U"d'`*UoU"d'`&*UAU"d'`*UvU"d'`C
gyro did not converge: diff=0.191763 dps
IMU
----------------------------------------
G_off: 0.01, -0.01, -0.01
A_off: 0.00, 0.00, 0.00



Ready to FLY U r&U!U"U#U$IU%U&~U'jU(U)KgU*%U+PU,U-=U.SU/?U0U1nU2U3;U4U5cU6vU7TU38 MOTORSARMING MOTORSLow Battery!TrUF:UGEUH\UIUJkUKuULm3UMUNUOUP>7UQURUSPUTHXUUUVoUW&UXUYvUZiU[A


The not understandable series of letters keep appearing.

3. I run the simulator by typing im_multicopter.py  --home -35.362938,149.165085,584,270. Then I get

Simulating 4 motors for frame +
Starting at lat=-35.362938 lon=149.165085 alt=584.0 heading=270.0

As soon as I press the enter button, I see the following message on the above ArduCopter terminal:

cmd#: 0 id:16 op:0 p1:0 p2:0 p3:-35.3629379 p4:149.1650848

4. I type mavproxy.py --master tcp:127.0.0.1:5760 --sitl 127.0.0.1:5501 and get the following prompt:
Logging to mav.log
MAV>

I don't know what to do from here. I think I have to provide PWM to the motors but don't know how.

Thanks for your time reading the post.

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Developer

    You've made good progress!

    The weird characters are MAVlink packets (ASCII "U"  = 0x55, which is the "STX, start transmit" header of the MAVlink packet. )

    So you're seeing MAVLink.

    The sim-multicopter part is working correctly too. You should indeed see the response that sets the GPS home position (cmd#: 0 id:16 op:0 p1:0 p2:0 p3:-35.3629379 p4:149.1650848)

     

    I think you have the command line for mavproxy incorrect. Instead of "--master tcp...." you need "--master=tcp:...."

    Otherwise it ignores the tcp part and tries to connect to a serial TTY, then you see nothing happening ;-)

     

     

    Once you fix that you can try these commands on mavproxy:

     

    rc 4 2000  (set full right rudder). You should see "MOTORS ARMING" or something

    rc 4 1500 (center rudder), you don't want to take off with full right rudder

    rc 3 1400 (40% throttle), take off

     

    After a second you should see:

     

    height 10

    height 20

    height 30

     

    etc. 

     

     

     

     

This reply was deleted.

Activity

DIY Robocars via Twitter
May 15
DIY Robocars via Twitter
May 14
DIY Robocars via Twitter
May 13
DIY Robocars via Twitter
RT @f1tenth: Say hi to our newest #F1TENTH creation for @ieee_ras_icra next week in Philly. It’s going to be huge! 😎 🔥 @AutowareFdn @PennEn…
May 13
DIY Robocars via Twitter
May 11
DIY Robocars via Twitter
May 8
DIY Robocars via Twitter
RT @SmallpixelCar: Noticed my car zigzagged in last run. It turned out to be the grass stuck in the wheel and made the odometry less accura…
May 8
DIY Robocars via Twitter
RT @SmallpixelCar: Test my car. RTK GPS worked great. Thanks @emlid for their support. https://t.co/EkQ6qmjmWR
May 8
DIY Drones via Twitter
RT @chr1sa: @kane That's @diydrones circa 2009. Still have a box of those Canon cameras that we used to strap into planes, just like this.…
May 3
DIY Robocars via Twitter
RT @chr1sa: Our next @diyrobocars race is going to be outside at a real RC racetrack in Fremont on May 28. Fully autonomous racing, head-to…
Apr 30
DIY Robocars via Twitter
RT @f1tenth: Our Spring 2022 F1TENTH course @PennEngineers is coming to an end with a head-to-head race as a big finale. So proud of our st…
Apr 26
DIY Robocars via Twitter
RT @DanielChiaJH: I wrote a thing! Throughout the development of my @diyrobocars car I've been using @foxglovedev Studio to visualize and d…
Apr 23
DIY Robocars via Twitter
RT @SmallpixelCar: My new car for high speed. Low body, everything ( @NVIDIAEmbedded Jetson Xavier NX, @emlid RTK GPS, IMC) under the deck…
Apr 23
DIY Robocars via Twitter
Apr 21
DIY Robocars via Twitter
RT @f1tenth: F1TENTH Race training setup @PennEngineers for our upcoming ICRA2022 @ieee_ras_icra competition. @OpenRoboticsOrg @IndyAChalle…
Apr 21
DIY Robocars via Twitter
RT @fatcatFABLAB: Proud to be hosting a restarted DIY Robocars NYC Meetup April 26. Come by if you want to talk about and race self-driving…
Apr 17
More…