SamuelBrucksch / wifibroadcast_osd

OSD for HD wireless FPV system based on wifibroadcast from befi
43 stars 17 forks source link

Enhancements... #4

Open Toni-42 opened 7 years ago

Toni-42 commented 7 years ago

Hello Samuel,

It’s great OSD-Implementation! I am very grateful to use this! (I downloaded it here) https://www.rcgroups.com/forums/showthread.php?2664393-EZ-WifiBroadcast-cheap-digital-HD-transmission-made-easy%21

I have done something like that for my own FC (based on AVR), but in BASIC, so it's hard for me to participate directly.

I have 3 enhancements that are very easy to implement.

  1. It would be nice if the home position (LTM protocol origin frame (O)) would constantly updated (the program does not do this, even if new home latitude and longitude values are sent via O-frame). This would allow to use for intermediate gps-points and see the "Arrow" and "distance" values in autonomus fly.

  2. It would also be good to make the orientation of the Home Arrow relatively. This means to take the heading into account. For example, if Home Arrow points to east and Compass (heading) points to west, it makes sense to point the arrow down (180°) and not to 0°. Just bring Heading (normaly 0...359°) and Course (normaly 0...359°) in the following Coordinate System: grafik

If Heading > 180 Then Heading_new_coord_sys = Heading - 360 End If

If Course > 180 Then //in your Implementation should be Course=Angle_home_arrow Course_new_coord_sys = Course - 360 End If

The relative angle of Home Arrow is then: Relative_angle_home_arrow = Course_new_coord_sys - Heading_new_coord_sys

This should be adjustable in osdconfig.txt ... for people who don't like this.

  1. Perhaps you can also display the units [m], [km/h] also with altitude and speed values?

As I said, unfortunately I am not using C, so I would make my suggestions directly.

Greetings Toni

SamuelBrucksch commented 7 years ago

Sorry, i currently dont work on this as i do not use it. Try to contact rodizio from ez-wifibroadcast, he took my code for the ez-wifibroadcast project and did some modifications. Maybe he has the time to work on this.