Mission Planner Terminal Test Compass

I cannot get the compass test to work in Mission Planner. 

The mag is working in HUD and is enabled etc. 

What am I missing?    Is this a MP issue, a setup issue, a mode issue, serial, baudrade, a stupid user issue?

Mission Planner 1.2.35 mav 1.0 and ArduPlane V2.70  (ArduPlane V2.69 has same issue) and  AP 2..5+ board.

Here is how I reproduce problem:

Connect power via usb, open Mission Planner, after boot finished, connect, etc click on Terminal.

Display on pc shows init Arduplane V2.70 and command list as it should

type test     OK  get test back

type compass

Mission Planner gives no response and hangs.  Click Terminal or reboot etc to clear the hang

 

If I do the same thing as above but...

type setup    OK   get setup reply

type compass    then I get the results of the current compass data  => OK

 

Using the Ardunio IDE (for Version 2.69 Arduplane) and terminal mode for CLI then:

type test

type compass      gives the current compass data....  so Arduplane code and AP2.5+ board must be good.  but see next..

 

At one time the "test / compass"  actually worked in the Mission planner with V2.70.???? Don't remember the sequence of events.  Then it quit working again. Also, at one time I could not get CLI Test / compass it to work in Arduino IDE, CLI

Doing a little debug in IDE when CLI test compass was hanging the call toe compass::init() never returns. (print statements before and after the call)

 

 

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

Join diydrones

Email me when people reply –

Replies

  • I have some more data.

    I am using the Windows version of everything - Windows 7 to be precise.  (This may be one clue)

    Using Mission Planner: (workaround)

    Click [Terminal]  (note board starts the reboots but Mission Plannerl puts it into CLI mode (most CLI commands work) but test / compass does not.  some others do not.

    In the main CLI menu Type  "reboot".   This starts a reboot.

    As board starts to reboot, hit Enter three times.   AP should go to CLI mode.

    Now  test  / compass and other CLI commands seem to work OK.  

    Using Arduino IDE:

    Go to Tools,  Serial Monitor.    Note that the board starts to reboot.

    Hit Enter 3 times.  This puts the code into CLI mode.

    Now here is the trick.  Note at the bottom right of the  Serial Monitor window are the options for the Enter key.

    * That option has to be "Carriage return"   for the CLI interface to work correctly  (Using Windows PC)

    If that option is set to "Both NL and CR  the test compass completes but the Heading, xyz and offset data list does not start it's listings   (Probably because NL starts test, CR stops listing???) 

    If that option is set to  "NewLine" the the command for test compass does not work

    Conclusion:  (Supposition on my part)

    Mission Planner:   Clicking terminal seems to send the three Enter messages to the board during bootup but somehow does not set the "Carriage return"  option.   Doing the reboot,  then hitting Enter three times seems to set it up correctly. Seems to be a Mission Control software issue.  Apple vs Unix vs Windows Enter key differences?

     

    IDE:   Operator Error.   Operator must set up Serial Monitor correctly for the ArduPlane code to work correctly.

  • Hi, Dennis, I have the same problem, but on APM 2.0. Some help to solve this?

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @chr1sa: Donkeycar 4.4 released with tons of new features, including path learning (useful with GPS outdoors), better Web and Lidar supp…
Nov 27, 2022
DIY Robocars via Twitter
RT @NXP: We are already biting our nails in anticipation of the #NXPCupEMEA challenge! 😉 Did you know there are great cash prizes to be won…
Nov 24, 2022
DIY Robocars via Twitter
RT @gclue_akira: レースまであと3日。今回のコースは激ムズかも。あと一歩 #jetracer https://t.co/GKcEjImQ3t
Nov 24, 2022
DIY Robocars via Twitter
UC Berkeley's DIY robocar program https://roar.berkeley.edu/
Nov 24, 2022
DIY Robocars via Twitter
RT @chr1sa: The next @DIYRobocars autonomous car race at @circuitlaunch will be on Sat, Dec 10. Thrills, spills and a Brazilian BBQ. Fun…
Nov 24, 2022
DIY Robocars via Twitter
RT @arthiak_tc: Donkey car platform ... Still training uses behavioral cloning #TCXpo #diyrobocar @OttawaAVGroup https://t.co/PHBYwlFlnE
Nov 20, 2022
DIY Robocars via Twitter
RT @emurmur77: Points for style. @donkeycar racing in @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/Y2hMyj1…
Nov 20, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Going to @diyrobocars race at @UCSDJacobs https://t.co/Rrf9vDJ8TJ
Nov 8, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Race @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/kK686Hb9Ej
Nov 8, 2022
DIY Robocars via Twitter
RT @PiWarsRobotics: Presenting: the Hacky Racers Robotic Racing Series in collaboration with #PiWars. Find out more and register your inter…
Oct 23, 2022
DIY Robocars via Twitter
RT @Hacky_Racers: There will be three classes at this event: A4, A2, and Hacky Racer! A4 and A2 are based around UK paper sizing and existi…
Oct 23, 2022
DIY Robocars via Twitter
Oct 23, 2022
DIY Robocars via Twitter
Oct 19, 2022
DIY Robocars via Twitter
Oct 18, 2022
DIY Robocars via Twitter
RT @NeaveEng: Calling all UK based folks interested in @diyrobocars, @f1tenth, @donkey_car, and similar robot racing competitions! @hacky_r…
Oct 13, 2022
DIY Robocars via Twitter
RT @araffin2: 🏎️ After hours of video editing, I'm happy to share a best of my Twitch videos on learning to race with RL. 🏎️ Each part is…
Oct 13, 2022
More…