Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by solidsnake530 · Mar 01, 2017 at 07:16 AM · c#inputdataloglogging

Real-time and historical input telemetry

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

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

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.

c9562391b38ac5e2c41f613834ff79b3.png (169.4 kB)
telem1.jpg (124.0 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

Distribute terrain in zones 3 Answers

Mouse and Oculus Touch Controller Inputs 0 Answers

How to use Multi-Tap in New Input System for Running? 1 Answer

(C#) A better way to limit actions to once per button press? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges