Compare commits
5 Commits
c036aad6cb
...
ce910d66b4
Author | SHA1 | Date |
---|---|---|
Matt McWilliams | ce910d66b4 | |
Matt McWilliams | e1f6085b87 | |
Matt McWilliams | 5134038ac5 | |
Matt McWilliams | db21753d71 | |
Matt McWilliams | 6205cef7f1 |
|
@ -0,0 +1 @@
|
||||||
|
0.2.0
|
|
@ -23,9 +23,11 @@ class DriveMotor {
|
||||||
const uint8_t ppr = 11;
|
const uint8_t ppr = 11;
|
||||||
const float ratio = 187.0 / 3.0;
|
const float ratio = 187.0 / 3.0;
|
||||||
const uint32_t maxPulses = (int) round((float) ppr * ratio);
|
const uint32_t maxPulses = (int) round((float) ppr * ratio);
|
||||||
const uint8_t speed = 255;
|
|
||||||
const uint8_t framesPerRotation = 18;
|
const uint8_t framesPerRotation = 18;
|
||||||
|
|
||||||
|
volatile float target_fps = 0.0;
|
||||||
|
volatile float target_rpm = 0.0;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
DriveMotor();
|
DriveMotor();
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#include "ContactPrinter.h";
|
#include "ContactPrinter.h";
|
||||||
|
|
||||||
|
#define VERSION "0.2.0"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
VERSION_FILE="./VERSION.txt"
|
||||||
|
SOURCE_FILE="./ino/contact_printer/contact_printer.ino"
|
||||||
|
CURRENT=`cat "${VERSION_FILE}"`
|
||||||
|
DATESTR=`date +"%Y%m%d"`
|
||||||
|
IFS="."
|
||||||
|
read -ra VERSION <<< "${CURRENT}"
|
||||||
|
IFS=" "
|
||||||
|
|
||||||
|
if [[ "${1}" == "major" ]]; then
|
||||||
|
let "VERSION[0]=${VERSION[0]}+1"
|
||||||
|
let "VERSION[1]=0"
|
||||||
|
let "VERSION[2]=0"
|
||||||
|
elif [[ "${1}" == "minor" ]]; then
|
||||||
|
let "VERSION[1]=${VERSION[1]}+1"
|
||||||
|
let "VERSION[2]=0"
|
||||||
|
else; then
|
||||||
|
let "VERSION[2]=${VERSION[2]}+1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
V="${VERSION[0]}.${VERSION[1]}.${VERSION[2]}"
|
||||||
|
|
||||||
|
#echo "{ \"version\" : \"$V\", \"bin\" : \"/bin/contact_printer.bin\", \"date\" : $DATESTR }" > ./ota.json
|
||||||
|
VERSION_UPDATE=`sed "s/.*define VERSION.*/ #define VERSION \"$VERSION\"/" "${SOURCE_FILE}"`
|
||||||
|
echo "${VERSION_UPDATE}" > "${SOURCE_FILE}"
|
||||||
|
|
||||||
|
echo $V > "${VERSION_FILE}"
|
||||||
|
echo $V
|
Loading…
Reference in New Issue