minimosd-extra icon indicating copy to clipboard operation
minimosd-extra copied to clipboard

Radar not working

Open JeyPi opened this issue 7 years ago • 12 comments

Issue details The Aircraft symbol on the radar field stays stationary during the flight. It only orients somehow but does not travel. Also I noticed the wind speed and direction field does not provide relevant information

Version

v942 Mavlink

Board type https://www.ebay.com/itm/On-Screen-Display-APM-Minim-OSD-V1-1-Module-for-ArduPilot-Mega-MAVLink-Optimal/322263494662?hash=item4b0866b006:g:bVwAAOSwLF1X25fE

TLOG and OSD Will do as soon as I get to flying again

JeyPi avatar Jan 23 '18 10:01 JeyPi

tlog and .osd files are required

night-ghost avatar Jan 23 '18 12:01 night-ghost

I noticed that the wind speed and direction indicator is wrong in the mission planner as well. I think it is a mistake of the arduplane software than. T_log and OSD.zip If you need the video it is big. I can post it on drop box.

JeyPi avatar Feb 01 '18 10:02 JeyPi

I did try older software and can confirm that the radar feature is not working with 934. As well I noticed that the home altitude is the same as the flown altitude. I do not know if it is supposed to be. I also would suggest that the radar aircraft symbol would be like others have it. The symbol like this > It is more obvious and less difficult to recon.

JeyPi avatar Feb 11 '18 21:02 JeyPi

I don't use radar, so I asked those who need it to make a certain flight and record video and tlog. I am still waiting.

night-ghost avatar Feb 20 '18 05:02 night-ghost

25 days ago I posted a T_log and osd.zip All is there.

JeyPi avatar Feb 26 '18 16:02 JeyPi

This issue doesn't occur in v931. I tested v943 too : radar's symbols doesn't appear at all in my case Config :

  • PAL
  • Arduplane v3.8.5 with Mavlink@57600bauds

mric3412 avatar May 07 '18 09:05 mric3412

I modified v943 (Mavlink without ADSB) to come back at v936 concerning issue for radar and home_dir arrow. (cf. ILS issue) If you want to test it, the .hex is attached. I also did minor mods on charset2.4.1.5 (another radar icon adapted to fixed wing, sat, rssi icons etc.) build_for_test_onATMEGA328.zip MinimOSD_2.4.1.5.1.mcm.zip

mric3412 avatar May 15 '18 19:05 mric3412

After flight test, I wouldn't recommand flashing this .hex (cf. last comment) : radar works but the arrow indicating home direction can be wrong (+180degres)

mric3412 avatar May 22 '18 12:05 mric3412

I tested radar (for plane) with the last commit (2018/05/21). UAV symbol ant 3 track points are moving but not correctly. It should move around the center of the HUD frame but it's only moving in the top right quarter. In Func.h@505and506 we have dst_x and dst_y always >0 (fabs()) => in Panels.h@411and412 whe have x et y always >0 too (since dst_x and dst_y always >0) => in Panels.h@432, UAV symbol is always writed at (center_col+(x>0) ,center_line-(y>0)) : so, always at the top right quarter of the HUD frame. In Panels.h@432, x and y should be positive or negative to have a correct radar.

mric3412 avatar May 25 '18 11:05 mric3412

thanks for investigations, will fix ASAP

night-ghost avatar May 25 '18 11:05 night-ghost

I flew the last version and the radar icon moves within the hud I would say correctly. I do not know if that is to be or not but the icon is not rotating according to the heading to home.

JeyPi avatar Jun 05 '18 21:06 JeyPi

In v946, when plane is heading North, icon radar is going down when plane is heading South, icon radar is going up I don't know if this convention is the most natural for most people, but I would have chosen the opposite (north up on the screen) To make the North appear up on the screen, simply modify panels.h@432 : "+ y" instead of "-y" In case we would choose north up by convention, abscissa must be modified accordingly (to have the east on the right and the west on the left) : "- x" instead of "+x"

So, OSD::write_xy(center_col - x, center_line + y, radar_char()); instead of OSD::write_xy(center_col + x, center_line - y, radar_char());

mric3412 avatar Sep 25 '18 17:09 mric3412