Skip to content

Commit

Permalink
Updated to Bipolar 0.4; disabled broken route upload.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Weber authored and Christian Weber committed Jan 10, 2015
1 parent c647ad2 commit d17258a
Show file tree
Hide file tree
Showing 12 changed files with 269 additions and 43 deletions.
283 changes: 254 additions & 29 deletions src/bipolar/polar/v2/trainingsession.cpp

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions src/bipolar/polar/v2/trainingsession.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2014 Paul Colby
Copyright 2014-2015 Paul Colby
This file is part of Bipolar.
Expand Down Expand Up @@ -52,8 +52,9 @@ class TrainingSession : public QObject {
Q_DECLARE_FLAGS(OutputFormats, OutputFormat)

enum GpxOption {
CluetrustGpxExtension = 0x0100,
GarminTrackPointExtension = 0x0200,
CluetrustGpxDataExtension = 0x0100,
GarminAccelerationExtension = 0x0200,
GarminTrackPointExtension = 0x0400,
};
Q_DECLARE_FLAGS(GpxOptions, GpxOption)

Expand All @@ -66,7 +67,7 @@ class TrainingSession : public QObject {
enum TcxOption {
ForceTcxUTC = 0x0001,
GarminActivityExtension = 0x0100,
//GarminCourseExtension = 0x0200, //< Needs power support.
GarminCourseExtension = 0x0200,
};
Q_DECLARE_FLAGS(TcxOptions, TcxOption)

Expand Down
2 changes: 1 addition & 1 deletion src/bipolar/protobuf/fixnum.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2014 Paul Colby
Copyright 2014-2015 Paul Colby
This file is part of Bipolar.
Expand Down
2 changes: 1 addition & 1 deletion src/bipolar/protobuf/fixnum.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2014 Paul Colby
Copyright 2014-2015 Paul Colby
This file is part of Bipolar.
Expand Down
2 changes: 1 addition & 1 deletion src/bipolar/protobuf/message.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2014 Paul Colby
Copyright 2014-2015 Paul Colby
This file is part of Bipolar.
Expand Down
2 changes: 1 addition & 1 deletion src/bipolar/protobuf/message.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2014 Paul Colby
Copyright 2014-2015 Paul Colby
This file is part of Bipolar.
Expand Down
2 changes: 1 addition & 1 deletion src/bipolar/protobuf/types.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2014 Paul Colby
Copyright 2014-2015 Paul Colby
This file is part of Bipolar.
Expand Down
2 changes: 1 addition & 1 deletion src/bipolar/protobuf/types.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2014 Paul Colby
Copyright 2014-2015 Paul Colby
This file is part of Bipolar.
Expand Down
2 changes: 1 addition & 1 deletion src/bipolar/protobuf/varint.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2014 Paul Colby
Copyright 2014-2015 Paul Colby
This file is part of Bipolar.
Expand Down
2 changes: 1 addition & 1 deletion src/bipolar/protobuf/varint.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2014 Paul Colby
Copyright 2014-2015 Paul Colby
This file is part of Bipolar.
Expand Down
2 changes: 0 additions & 2 deletions src/usb/v800usb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,9 @@ void V800usb::upload_route(QString route)

new_route_num = 0;

/*
put_v800_dir(tr("/U/0/ROUTES/"));
put_v800_dir(QString(tr("/U/0/ROUTES/%1/")).arg(new_route_num));
put_v800_data(QString(tr("%1/PROUTE.BPB")).arg(route), QString(tr("/U/0/ROUTES/%1/PROUTE.BPB")).arg(new_route_num));
*/

remove_v800_dir(tr("/U/0/FAV"));
put_v800_dir(tr("/U/0/FAV/"));
Expand Down
2 changes: 2 additions & 0 deletions src/widgets/v800main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,12 @@ void V800Main::on_fsBtn_clicked()

void V800Main::on_uploadBtn_clicked()
{
/*
QString route = QFileDialog::getExistingDirectory(this, tr("Open Route"), QDir::homePath(), QFileDialog::ShowDirsOnly);
if(!route.isEmpty())
emit upload_route(route);
*/
}

void V800Main::on_dirSelectBtn_clicked()
Expand Down

0 comments on commit d17258a

Please sign in to comment.