Skip to content

Testing on FreeBSD #1

@mfoacs

Description

@mfoacs

Hi, firstly this is an awesome tool!

I compiled on FreeBSD 15.0-RELEASE with a very few small changes:

UI.ccp

211c211
< 	snapshot.buttonStates = buttons;
---
> 	snapshot.buttonStates.assign(buttons.begin(), buttons.end());
212a213
>
293,300c294,297
< 	for( const auto& snapshot : recordedData )
< 	{
< 		file.write( reinterpret_cast<const char*>( &snapshot.timestamp ), sizeof( snapshot.timestamp ) );
<
< 		for( const auto& axisValue : snapshot.axisValues )
< 		{
< 			file.write( reinterpret_cast<const char*>( &axisValue ), sizeof( axisValue ) );
< 		}
---
> 	for (const auto& snapshot : recordedData)
> 	  {
> 	    file.write(reinterpret_cast<const char*>(&snapshot.timestamp),
> 		       sizeof(snapshot.timestamp));
302,306c299,308
< 		for( const auto& buttonState : snapshot.buttonStates )
< 		{
< 			file.write( reinterpret_cast<const char*>( &buttonState ), sizeof( buttonState ) );
< 		}
< 	}
---
> 	    for (const auto& axisValue : snapshot.axisValues)
> 	      {
> 		file.write(reinterpret_cast<const char*>(&axisValue),
> 			   sizeof(axisValue));
> 	      }
> 	    for (const auto& buttonState : snapshot.buttonStates)
> 	      {
> 		file.write(reinterpret_cast<const char*>(&buttonState), 1);
> 	      }
> 	  }

UI.h

74,76c74,76
< 	double             timestamp;
< 	std::vector<float> axisValues;
< 	std::vector<bool>  buttonStates;
---
>     uint64_t            timestamp;
>     std::vector<float>  axisValues;
>     std::vector<uint8_t> buttonStates;   // FIX

Just for facility, would you happen to have a wheelbase.json file example maybe?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions