• Welcome to PiBoSo Official Forum. Please login or sign up.
 
October 11, 2025, 12:24:31 AM

News:

GP Bikes beta21c available! :)


Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Rox75009

1
Plugins / Re: MaxHUD plugin
August 10, 2022, 01:25:52 PM
Quote from: Rox75009 on August 08, 2022, 12:12:53 PMYeah, you got it right. I would like to have a 2D representation of the track . Thanks for explaining how the track's centerline is done (with segments and arcs)!

However, I don't get how to properly:
- call the function (in my case in Processing);
- do as you did in the maxHUD Map Widget, display the 50m upcoming track (rotating the map to keep the player always facing up). <-- This is what I want to achieve!

Would be really appreciated if someone could help me here 🙏🏻
2
Plugins / Re: MaxHUD plugin
August 08, 2022, 12:12:53 PM
Yeah, you got it right. I would like to have a 2D representation of the track . Thanks for explaining how the track's centerline is done (with segments and arcs)!

However, I don't get how to properly:
- call the function (in my case in Processing);
- do as you did in the maxHUD Map Widget, display the 50m upcoming track (rotating the map to keep the player always facing up). <-- This is what I want to achieve!
3
Plugins / Re: MaxHUD plugin
August 04, 2022, 10:07:04 AM
Hey @HornetMaX,

First of all, thanks for created this great plug-in!

I am conducting a research for my final design thesis on HUDs for motorcycles. I'll be testing Real prototyped HUDs on GP Bikes to test it. 

So far, I've worked with Processing and the output/telemetry plug-in to get data from the simulation.


import hypermedia.net.*;
int PORT_RX=30001;
String HOST_IP="127.0.0.1";
UDP udp;

int pos;

void setup() {
  udp= new UDP(this,PORT_RX,HOST_IP);
  //udp.log(true);
  udp.listen(true);
}


void receive(byte[] data, String HOST_IP, int PORT_RX) {
   
  pos = 25;
  int gear = (data[pos] & 0xff) | ((data[pos+1] & 0xff) << 8) | ((data[pos+2] & 0xff) << 16) | ((data[pos+3] & 0xff) << 24);
 
  pos = 33;
  int speed = int(Float.intBitsToFloat((data[pos] & 0xff) | ((data[pos+1] & 0xff) << 8) | ((data[pos+2] & 0xff) << 16) | ((data[pos+3] & 0xff) << 24))*3.6);
   
/* etc...*/
}

However, I would love to get the Map of the MaxHUD plug-in to work with my code. I could I retrieve it (and play with the parameters) ? What kind file is it ?

(I am not so great at coding but with some explanation, I could get it I think)

Many thanks!