You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* Extract target 2 data from the frame */
sensorData = extractData(TARGET_2, position);
if (sensorData.x != 0)
{
m_callback(TARGET_2, sensorData);// it was TARGET_3
}
struct SensorData
{
int x;
int y;
int speed;
int resolution;
double distance;
double angle;
};
`
also added:
`
/**
* @brief Get the current tracking mode
*
* @returns 0 - single target, 1 - multi target
*/
bool getTargetTrackingMode(uint8_t &mode); //to .h file
this part was buggy..
`
/* Extract target 2 data from the frame */
sensorData = extractData(TARGET_2, position);
if (sensorData.x != 0)
{
m_callback(TARGET_2, sensorData);// it was TARGET_3
}
`
and i add 2 feature to sensorData
`
Ld2450::SensorData Ld2450::extractData(SensorTarget target,
DataPosition position)
{
SensorData sensorData;
}`
and sensor data is now:
`
struct SensorData
{
int x;
int y;
int speed;
int resolution;
double distance;
double angle;
};
`
also added:
`
/**
* @brief Get the current tracking mode
*
* @returns 0 - single target, 1 - multi target
*/
bool getTargetTrackingMode(uint8_t &mode); //to .h file
//to .cpp
bool Ld2450::getTargetTrackingMode(uint8_t &mode)
{
}
`
i can create a pull request or you may add these.. or i can fork .. its up to you..
cheers..
The text was updated successfully, but these errors were encountered: