PiBoSo Official Forum

GP Bikes => Support => Topic started by: Become dust on June 04, 2017, 07:48:41 PM

Title: HELP: vibration feedback
Post by: Become dust on June 04, 2017, 07:48:41 PM
OI! how do i program the maxhud vibration function to the angle of the Bike? fx bike lean at 50 degrees my controller will vibrate.
Title: Re: HELP: vibration feedback
Post by: HornetMaX on June 04, 2017, 08:56:03 PM
Quote from: Become dust on June 04, 2017, 07:48:41 PM
OI! how do i program the maxhud vibration function to the angle of the Bike? fx bike lean at 50 degrees my controller will vibrate.
You can't do that in MaxHUD. With MaxHUD, the pad vibrates when the bike chassis vibrates (without going into too many details on how this is done).

Why would one want the vibration to be tied to the lean angle ?
Title: Re: HELP: vibration feedback
Post by: Become dust on June 04, 2017, 08:59:23 PM
Quote from: HornetMaX on June 04, 2017, 08:56:03 PM
Quote from: Become dust on June 04, 2017, 07:48:41 PM
OI! how do i program the maxhud vibration function to the angle of the Bike? fx bike lean at 50 degrees my controller will vibrate.
You can't do that in MaxHUD. With MaxHUD, the pad vibrates when the bike chassis vibrates (without going into too many details on how this is done).

Why would one want the vibration to be tied to the lean angle ?


you know, so i can determan my lean angle with DST :3
Title: Re: HELP: vibration feedback
Post by: HornetMaX on June 04, 2017, 09:32:37 PM
Quote from: Become dust on June 04, 2017, 08:59:23 PM
Quote from: HornetMaX on June 04, 2017, 08:56:03 PM
Quote from: Become dust on June 04, 2017, 07:48:41 PM
OI! how do i program the maxhud vibration function to the angle of the Bike? fx bike lean at 50 degrees my controller will vibrate.
You can't do that in MaxHUD. With MaxHUD, the pad vibrates when the bike chassis vibrates (without going into too many details on how this is done).

Why would one want the vibration to be tied to the lean angle ?


you know, so i can determan my lean angle with DST :3

Because the horizon swinging is not enough ? Short of that, you have a dedicated lean indicator in MaxHUD.
Vibrating to lean angle makes no sense to me, it won't go in MaxHUD, sorry.
Title: Re: HELP: vibration feedback
Post by: Become dust on June 04, 2017, 10:08:16 PM
Quote from: HornetMaX on June 04, 2017, 09:32:37 PM
Quote from: Become dust on June 04, 2017, 08:59:23 PM
Quote from: HornetMaX on June 04, 2017, 08:56:03 PM
Quote from: Become dust on June 04, 2017, 07:48:41 PM
OI! how do i program the maxhud vibration function to the angle of the Bike? fx bike lean at 50 degrees my controller will vibrate.
You can't do that in MaxHUD. With MaxHUD, the pad vibrates when the bike chassis vibrates (without going into too many details on how this is done).

Why would one want the vibration to be tied to the lean angle ?


you know, so i can determan my lean angle with DST :3

Because the horizon swinging is not enough ? Short of that, you have a dedicated lean indicator in MaxHUD.
Vibrating to lean angle makes no sense to me, it won't go in MaxHUD, sorry.

never said anything about an implementation of such "feature" but might as well end it there then
Title: Re: HELP: vibration feedback
Post by: HornetMaX on June 04, 2017, 10:53:18 PM
Quote from: Become dust on June 04, 2017, 10:08:16 PM
never said anything about an implementation of such "feature" but might as well end it there then
It's that in the past I got a few similar requests (like vibrate when braking, or when rear is slipping, or when front is slipping etc).
Title: Re: HELP: vibration feedback
Post by: Become dust on June 04, 2017, 11:00:40 PM
Quote from: HornetMaX on June 04, 2017, 10:53:18 PM
Quote from: Become dust on June 04, 2017, 10:08:16 PM
never said anything about an implementation of such "feature" but might as well end it there then
It's that in the past I got a few similar requests (like vibrate when braking, or when rear is slipping, or when front is slipping etc).


ah, sorry for stirring the waters <3

i was just wondering how i should do it myself :3
Title: Re: HELP: vibration feedback
Post by: HornetMaX on June 04, 2017, 11:14:48 PM
Quote from: Become dust on June 04, 2017, 11:00:40 PM
ah, sorry for stirring the waters <3

i was just wondering how i should do it myself :3
No problem.

You need to know a bit of C/C++, a look at PiBoSo output plugin example and a library to handle XInput devices (I use SFML).
Title: Re: HELP: vibration feedback
Post by: Become dust on June 04, 2017, 11:48:56 PM
Quote from: HornetMaX on June 04, 2017, 11:14:48 PM
Quote from: Become dust on June 04, 2017, 11:00:40 PM
ah, sorry for stirring the waters <3

i was just wondering how i should do it myself :3
No problem.

You need to know a bit of C/C++, a look at PiBoSo output plugin example and a library to handle XInput devices (I use SFML).


Alright i will look into it thanks!!