Rush

Rush is all in the mind.  Whether you’re bricking it before a jump or amped at the thought of your first morning run, our galvanic skin response sensors are sensitive enough to pick up on any tiny changes to how a rider’s holding their nerve.

Why Measure Rush?

Its all in the mind (and skin). Galvanic skin response measures your nerve even before you hit that jump. Maybe combine it with location to map the scariest slopes. Yet another hidden metric to give insight into the riders’ mind.

#ifndef PUSHN8GSRDEVICE_H
#define PUSHN8GSRDEVICE_H

#include <QString>
#include <QObject>
#include “pushn8btdevice.h”

#include “npushgsrtick.h”

class PushN8GSRDevice : public PushN8BtDevice
{
Q_OBJECT
public:
PushN8GSRDevice(QBtDevice a_device, QObject *parent = 0);

~PushN8GSRDevice();

public slots:
void gotDataReceived(QString);
};

#endif // PUSHN8GSRDEVICE_H

#include “pushn8gsrdevice.h”

PushN8GSRDevice::PushN8GSRDevice(QBtDevice a_device, QObject *parent) :
PushN8BtDevice(a_device, parent)
{
timerId = 0;
timerPeriod = 500;

//Assumes messages are like: “GSR,231,END;”
packetLen = 3;
packetStart = “GSR”;
packetEnd = “END”;

}

PushN8GSRDevice::~PushN8GSRDevice()
{
}

void PushN8GSRDevice::gotDataReceived(QString data)
{

QStringList params;
if(getPackage(data, params))
{
int gsrr = params[1].toInt();
if(gsrr > 0 && gsrr < 1024)
{
NPushGSRTick * newGSRTick = new NPushGSRTick(gsrr);

if(receivers(SIGNAL(reading_ready(NPushLogTick*))) > 0)
{
//anyone listening to us
emit reading_ready(newGSRTick);
} else {
delete newGSRTick;
}
}
}
// qDebug() << “Data received: ” << data;
}

/*
* Copyright (c) 2011 Nokia Corporation
*
* This file is part of the Push Snowboarding Project, More info at:
* http://pushsnowboarding.com/tech/developer-centre/
*
* This file is under the GPLv3 License, more details at:
* http://www.gnu.org/licenses/
*
*/