This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "build release clean", | |
"type": "shell", | |
"command": "mbed", | |
"args": ["compile", "--profile", "release", "-c", "-N", "firmware"], | |
"group": { | |
"kind": "build", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"configurations": [ | |
{ | |
"name": "Win32", | |
"includePath": [ | |
"${workspaceRoot}\\*", | |
"${workspaceRoot}\\lib\\*", | |
"${workspaceRoot}\\lib\\BleController\\*", | |
"${workspaceRoot}\\lib\\ManualControlService\\*", | |
"${workspaceRoot}\\mbed-os\\*", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <WiFi.h> | |
#include <NeoPixelBus.h> | |
#include <Husarnet.h> | |
// Which pin on the Arduino is connected to the NeoPixels? | |
#define PIN 12 | |
// How many NeoPixels are attached to the Arduino? | |
#define NUMPIXELS 60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
USAGE_STR="Usage: ./fw_update.sh <tag> e.g. ./fw_update.sh 0.9.0" | |
MACHINE=`uname -m` | |
if [ ${#} -ne 1 ]; then | |
echo -e "Wrong number of arguments.\n$USAGE_STR" | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# step 1 | |
# tlp start | |
# tlp-stat -s -c -b | |
--- TLP 1.4.0-beta.1 -------------------------------------------- | |
+++ Configured Settings: | |
defaults.conf L0004: TLP_ENABLE="1" | |
defaults.conf L0005: TLP_WARN_LEVEL="3" | |
defaults.conf L0006: TLP_PERSISTENT_DEFAULT="0" | |
defaults.conf L0007: DISK_IDLE_SECS_ON_AC="0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <mbed.h> | |
#include <ros.h> | |
#include <std_msgs/Float32.h> | |
#define SPIN_DELAY_MS 10U | |
#define SENSOR_INTER_MEASUREMENT_MS 1000U | |
#define MOCK_PIN ADC_TEMP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <mbed.h> | |
#include <ros.h> | |
#include <std_msgs/Float32.h> | |
#include <std_srvs/SetBool.h> | |
#define TEMP_SENSOR_AVG_SLOPE_MV_PER_CELSIUS 2.5f | |
#define TEMP_SENSOR_VOLTAGE_MV_AT_25 760.0f | |
#define ADC_REFERENCE_VOLTAGE 3.3f | |
#define ADC_MAX_VALUE 4095.0f | |
#define TEMP110 110.0f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Marlin 3D Printer Firmware | |
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] | |
* | |
* Based on Sprinter and grbl. | |
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or |