Quantcast
Channel: Questions in topic: "log"
Viewing all articles
Browse latest Browse all 235

Real-time and historical input telemetry

$
0
0
Hi, I'm currently making a car-based application for driver analysis, and at the moment I have only access to very basic real-time feedback, as below: ![alt text][1] It's a start, and the bar charts work, but I need to go a bit more in depth. As well as this, I want to create a real-time line graph showing inputs over, say, the last 10 seconds, kind of like the right hand side this image: ![alt text][2] My Google-fu is failing me (probably using the wrong search terms) so if anyone could even point me in the direction of a relevant tutorial I'd much appreciate it. For interest: some relevant code I have so far public class Player_Controller : MonoBehaviour { public float speed; //alter speed without recompiling, edit from editor public Text speeddisplay; //Speed display variable public Text superspeeddisplay; //Speed display variable (supervisor) private float velocitydisp; //Velocity Display public Slider steeringinputdisp; //steering axis slider public Slider throttleinputdisp; public Slider brakeinputdisp; void SetSpeedDisplay() { speeddisplay.text = "Speed: " + velocitydisp.ToString("0") + "km/h"; //Speed display superspeeddisplay.text = "Speed: " + velocitydisp.ToString("0") + "km/h"; float steeringinput = Input.GetAxis("Horizontal"); steeringinputdisp.value = steeringinput; float throttleinput = Input.GetAxis("Throttle"); throttleinputdisp.value = throttleinput; float brakeinput = Input.GetAxis("Brake"); brakeinputdisp.value = brakeinput; } } Thanks in advance, I know this is a kind of niche question, but I think this project could turn out to be pretty cool if I get this down. [1]: /storage/temp/89046-c9562391b38ac5e2c41f613834ff79b3.png [2]: /storage/temp/89047-telem1.jpg

Viewing all articles
Browse latest Browse all 235

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>