Create a gist now

Instantly share code, notes, and snippets.

How to update git repos and reflash firmware (for PFC2 development)

How to update git repos in pi's home directory for PFC2 development

Put this in a script such as update.sh and chmod +x it:

#!/bin/bash
echo pulling openag_python
cd ~/openag/src/openag_python
git pull
echo pulling openag_brain
cd ~/catkin_ws/src/openag_brain
git pull
echo use \"source ~/catkin_ws/devel/setup.bash\" to start catkin

Updating the Arduino Mega firmware

Activate the catkin workspace:

pi@raspberrypi:~ $ source ~/catkin_ws/devel/setup.bash 

Reload the default fixture:

pi@raspberrypi:~ $ rosrun openag_brain load_fixture default
Applying fixture /home/pi/catkin_ws/src/openag_brain/fixtures/default.json
environment  [####################################]  100%
software_module_type  [####################################]  100%
firmware_module_type  [####################################]  100%
software_module  [####################################]  100%

Reload the personal_food_computer_v2 fixture:

pi@raspberrypi:~ $ rosrun openag_brain load_fixture personal_food_computer_v2
Applying fixture /home/pi/catkin_ws/src/openag_brain/fixtures/personal_food_computer_v2.json
software_module  [####################################]  100%
firmware_module  [####################################]  100%             

Then manually reflash the Arduino Mega:

pi@raspberrypi:~ $ rosrun openag_brain flash
Initializing PlatformIO project
OpenAg firmware project initialized!
Parsing firmware module type "am2315" from server
Parsing firmware module type "atlas_do" from server
Parsing firmware module type "atlas_ec" from server
Parsing firmware module type "atlas_orp" from server
Parsing firmware module type "atlas_ph" from server
Parsing firmware module type "atlas_rgb" from server
Parsing firmware module type "binary_actuator" from server
Parsing firmware module type "binary_sensor" from server
Parsing firmware module type "dht22" from server
Parsing firmware module type "ds18b20" from server
Parsing firmware module type "gc0012" from server
Parsing firmware module type "mhz16" from server
Parsing firmware module type "pulse_actuator" from server
Parsing firmware module type "pwm_actuator" from server
Parsing firmware module type "software_pwm_actuator" from server
Parsing firmware module "air_flush_1" from server
Parsing firmware module "am2315_1" from server
Parsing firmware module "atlas_ec_1" from server
Parsing firmware module "atlas_ph_1" from server
Parsing firmware module "chamber_fan_1" from server
Parsing firmware module "chiller_compressor_1" from server
Parsing firmware module "chiller_fan_1" from server
Parsing firmware module "chiller_pump_1" from server
Parsing firmware module "ds18b20_1" from server
Parsing firmware module "heater_core_1_1" from server
Parsing firmware module "heater_core_2_1" from server
Parsing firmware module "led_blue_1" from server
Parsing firmware module "led_red_1" from server
Parsing firmware module "led_white_1" from server
Parsing firmware module "mhz16_1" from server
Parsing firmware module "pump_1_nutrient_a_1" from server
Parsing firmware module "pump_2_nutrient_b_1" from server
Parsing firmware module "pump_3_ph_up_1" from server
Parsing firmware module "pump_4_ph_down_1" from server
Parsing firmware module "pump_5_water_1" from server
Parsing firmware module "water_aeration_pump_1" from server
Parsing firmware module "water_circulation_pump_1" from server
Parsing firmware module "water_level_sensor_high_1" from server
Installing library [ 54 ]:
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
The library #54 'DallasTemperature' has been successfully installed!
Installing dependencies:
Installing library [ 1 ]:
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
The library #1 'OneWire' has been successfully installed!
Downloading "openag_atlas_ph"
Cloning into '/tmp/tmpwD1Fm4/lib/openag_atlas_ph'...
remote: Counting objects: 103, done.
remote: Total 103 (delta 0), reused 0 (delta 0), pack-reused 103
Receiving objects: 100% (103/103), 28.56 KiB | 0 bytes/s, done.
Resolving deltas: 100% (40/40), done.
Checking connectivity... done.
Downloading "openag_pulse_actuator"
Cloning into '/tmp/tmpwD1Fm4/lib/openag_pulse_actuator'...
remote: Counting objects: 41, done.
remote: Compressing objects: 100% (31/31), done.
remote: Total 41 (delta 21), reused 20 (delta 9), pack-reused 0
Unpacking objects: 100% (41/41), done.
Checking connectivity... done.
Downloading "openag_atlas_ec"
Cloning into '/tmp/tmpwD1Fm4/lib/openag_atlas_ec'...
remote: Counting objects: 98, done.
remote: Total 98 (delta 0), reused 0 (delta 0), pack-reused 98
Unpacking objects: 100% (98/98), done.
Checking connectivity... done.
Downloading "openag_binary_sensor"
Cloning into '/tmp/tmpwD1Fm4/lib/openag_binary_sensor'...
remote: Counting objects: 46, done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 46 (delta 24), reused 33 (delta 12), pack-reused 0
Unpacking objects: 100% (46/46), done.
Checking connectivity... done.
Downloading "openag_am2315"
Cloning into '/tmp/tmpwD1Fm4/lib/openag_am2315'...
remote: Counting objects: 147, done.
remote: Total 147 (delta 0), reused 0 (delta 0), pack-reused 147
Receiving objects: 100% (147/147), 33.88 KiB | 0 bytes/s, done.
Resolving deltas: 100% (62/62), done.
Checking connectivity... done.
Downloading "openag_firmware_module"
Cloning into '/tmp/tmpwD1Fm4/lib/openag_firmware_module'...
remote: Counting objects: 43, done.
remote: Total 43 (delta 0), reused 0 (delta 0), pack-reused 43
Unpacking objects: 100% (43/43), done.
Checking connectivity... done.
Downloading "openag_ds18b20"
Cloning into '/tmp/tmpwD1Fm4/lib/openag_ds18b20'...
remote: Counting objects: 83, done.
remote: Total 83 (delta 0), reused 0 (delta 0), pack-reused 83
Unpacking objects: 100% (83/83), done.
Checking connectivity... done.
Downloading "openag_pwm_actuator"
Cloning into '/tmp/tmpwD1Fm4/lib/openag_pwm_actuator'...
remote: Counting objects: 75, done.
remote: Total 75 (delta 0), reused 0 (delta 0), pack-reused 75
Unpacking objects: 100% (75/75), done.
Checking connectivity... done.
Downloading "rosserial_arduino_libs"
Cloning into '/tmp/tmpwD1Fm4/lib/rosserial_arduino_libs'...
remote: Counting objects: 313, done.
remote: Total 313 (delta 0), reused 0 (delta 0), pack-reused 313
Receiving objects: 100% (313/313), 134.99 KiB | 0 bytes/s, done.
Resolving deltas: 100% (198/198), done.
Checking connectivity... done.
Downloading "openag_mhz16"
Cloning into '/tmp/tmpwD1Fm4/lib/openag_mhz16'...
remote: Counting objects: 44, done.
remote: Total 44 (delta 0), reused 0 (delta 0), pack-reused 44
Unpacking objects: 100% (44/44), done.
Checking connectivity... done.
Downloading "openag_binary_actuator"
Cloning into '/tmp/tmpwD1Fm4/lib/openag_binary_actuator'...
remote: Counting objects: 70, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 70 (delta 5), reused 0 (delta 0), pack-reused 58
Unpacking objects: 100% (70/70), done.
Checking connectivity... done.
[Thu Feb  2 00:40:04 2017] Processing megaatmega2560 (platform: atmelavr, board: megaatmega2560, framework: arduino)
-------------------------------------------------------------------------------------------------------------------
avr-g++ -o .pioenvs/megaatmega2560/src/tmp_ino_to.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant -I.pioenvs/megaatmega2560/rosserial_arduino_libs -I.pioenvs/megaatmega2560/openag_firmware_module -I.pioenvs/megaatmega2560/openag_binary_actuator -I.pioenvs/megaatmega2560/Wire -I.pioenvs/megaatmega2560/Wire/utility -I.pioenvs/megaatmega2560/openag_mhz16 -I.pioenvs/megaatmega2560/openag_pulse_actuator -I.pioenvs/megaatmega2560/openag_binary_sensor -I.pioenvs/megaatmega2560/openag_atlas_ph -I.pioenvs/megaatmega2560/openag_atlas_ec -I.pioenvs/megaatmega2560/openag_pwm_actuator -I.pioenvs/megaatmega2560/openag_am2315 -I.pioenvs/megaatmega2560/OneWire_ID1 -I.pioenvs/megaatmega2560/DallasTemperature_ID54 -I.pioenvs/megaatmega2560/openag_ds18b20 -Isrc src/tmp_ino_to.cpp
avr-ar rcs .pioenvs/megaatmega2560/libFrameworkArduinoVariant.a
avr-ranlib .pioenvs/megaatmega2560/libFrameworkArduinoVariant.a
avr-g++ -o .pioenvs/megaatmega2560/FrameworkArduino/CDC.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant .pioenvs/megaatmega2560/FrameworkArduino/CDC.cpp
avr-g++ -o .pioenvs/megaatmega2560/FrameworkArduino/HardwareSerial.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant .pioenvs/megaatmega2560/FrameworkArduino/HardwareSerial.cpp
avr-g++ -o .pioenvs/megaatmega2560/FrameworkArduino/HardwareSerial0.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant .pioenvs/megaatmega2560/FrameworkArduino/HardwareSerial0.cpp
avr-g++ -o .pioenvs/megaatmega2560/FrameworkArduino/HardwareSerial1.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant .pioenvs/megaatmega2560/FrameworkArduino/HardwareSerial1.cpp
avr-g++ -o .pioenvs/megaatmega2560/FrameworkArduino/HardwareSerial2.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant .pioenvs/megaatmega2560/FrameworkArduino/HardwareSerial2.cpp
avr-g++ -o .pioenvs/megaatmega2560/FrameworkArduino/HardwareSerial3.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant .pioenvs/megaatmega2560/FrameworkArduino/HardwareSerial3.cpp
avr-g++ -o .pioenvs/megaatmega2560/FrameworkArduino/IPAddress.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant .pioenvs/megaatmega2560/FrameworkArduino/IPAddress.cpp
avr-g++ -o .pioenvs/megaatmega2560/FrameworkArduino/PluggableUSB.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant .pioenvs/megaatmega2560/FrameworkArduino/PluggableUSB.cpp
avr-g++ -o .pioenvs/megaatmega2560/FrameworkArduino/Print.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant .pioenvs/megaatmega2560/FrameworkArduino/Print.cpp
avr-g++ -o .pioenvs/megaatmega2560/FrameworkArduino/Stream.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant .pioenvs/megaatmega2560/FrameworkArduino/Stream.cpp
avr-g++ -o .pioenvs/megaatmega2560/FrameworkArduino/Tone.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant .pioenvs/megaatmega2560/FrameworkArduino/Tone.cpp
avr-g++ -o .pioenvs/megaatmega2560/FrameworkArduino/USBCore.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant .pioenvs/megaatmega2560/FrameworkArduino/USBCore.cpp
avr-gcc -o .pioenvs/megaatmega2560/FrameworkArduino/WInterrupts.o -c -std=gnu11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant .pioenvs/megaatmega2560/FrameworkArduino/WInterrupts.c
avr-g++ -o .pioenvs/megaatmega2560/FrameworkArduino/WMath.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant .pioenvs/megaatmega2560/FrameworkArduino/WMath.cpp
avr-g++ -o .pioenvs/megaatmega2560/FrameworkArduino/WString.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant .pioenvs/megaatmega2560/FrameworkArduino/WString.cpp
avr-gcc -x assembler-with-cpp -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant -c -o .pioenvs/megaatmega2560/FrameworkArduino/_wiring_pulse.o .pioenvs/megaatmega2560/FrameworkArduino/_wiring_pulse.S
avr-g++ -o .pioenvs/megaatmega2560/FrameworkArduino/abi.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant .pioenvs/megaatmega2560/FrameworkArduino/abi.cpp
avr-gcc -o .pioenvs/megaatmega2560/FrameworkArduino/hooks.o -c -std=gnu11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant .pioenvs/megaatmega2560/FrameworkArduino/hooks.c
avr-g++ -o .pioenvs/megaatmega2560/FrameworkArduino/main.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant .pioenvs/megaatmega2560/FrameworkArduino/main.cpp
avr-g++ -o .pioenvs/megaatmega2560/FrameworkArduino/new.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant .pioenvs/megaatmega2560/FrameworkArduino/new.cpp
avr-gcc -o .pioenvs/megaatmega2560/FrameworkArduino/wiring.o -c -std=gnu11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant .pioenvs/megaatmega2560/FrameworkArduino/wiring.c
avr-gcc -o .pioenvs/megaatmega2560/FrameworkArduino/wiring_analog.o -c -std=gnu11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant .pioenvs/megaatmega2560/FrameworkArduino/wiring_analog.c
avr-gcc -o .pioenvs/megaatmega2560/FrameworkArduino/wiring_digital.o -c -std=gnu11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant .pioenvs/megaatmega2560/FrameworkArduino/wiring_digital.c
avr-gcc -o .pioenvs/megaatmega2560/FrameworkArduino/wiring_pulse.o -c -std=gnu11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant .pioenvs/megaatmega2560/FrameworkArduino/wiring_pulse.c
avr-gcc -o .pioenvs/megaatmega2560/FrameworkArduino/wiring_shift.o -c -std=gnu11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant .pioenvs/megaatmega2560/FrameworkArduino/wiring_shift.c
avr-g++ -o .pioenvs/megaatmega2560/rosserial_arduino_libs/duration.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant -I.pioenvs/megaatmega2560/rosserial_arduino_libs -I.pioenvs/megaatmega2560/openag_firmware_module -I.pioenvs/megaatmega2560/openag_binary_actuator -I.pioenvs/megaatmega2560/Wire -I.pioenvs/megaatmega2560/Wire/utility -I.pioenvs/megaatmega2560/openag_mhz16 -I.pioenvs/megaatmega2560/openag_pulse_actuator -I.pioenvs/megaatmega2560/openag_binary_sensor -I.pioenvs/megaatmega2560/openag_atlas_ph -I.pioenvs/megaatmega2560/openag_atlas_ec -I.pioenvs/megaatmega2560/openag_pwm_actuator -I.pioenvs/megaatmega2560/openag_am2315 -I.pioenvs/megaatmega2560/OneWire_ID1 -I.pioenvs/megaatmega2560/DallasTemperature_ID54 -I.pioenvs/megaatmega2560/openag_ds18b20 .pioenvs/megaatmega2560/rosserial_arduino_libs/duration.cpp
avr-ar rcs .pioenvs/megaatmega2560/libFrameworkArduino.a .pioenvs/megaatmega2560/FrameworkArduino/CDC.o .pioenvs/megaatmega2560/FrameworkArduino/HardwareSerial.o .pioenvs/megaatmega2560/FrameworkArduino/HardwareSerial0.o .pioenvs/megaatmega2560/FrameworkArduino/HardwareSerial1.o .pioenvs/megaatmega2560/FrameworkArduino/HardwareSerial2.o .pioenvs/megaatmega2560/FrameworkArduino/HardwareSerial3.o .pioenvs/megaatmega2560/FrameworkArduino/IPAddress.o .pioenvs/megaatmega2560/FrameworkArduino/PluggableUSB.o .pioenvs/megaatmega2560/FrameworkArduino/Print.o .pioenvs/megaatmega2560/FrameworkArduino/Stream.o .pioenvs/megaatmega2560/FrameworkArduino/Tone.o .pioenvs/megaatmega2560/FrameworkArduino/USBCore.o .pioenvs/megaatmega2560/FrameworkArduino/WInterrupts.o .pioenvs/megaatmega2560/FrameworkArduino/WMath.o .pioenvs/megaatmega2560/FrameworkArduino/WString.o .pioenvs/megaatmega2560/FrameworkArduino/_wiring_pulse.o .pioenvs/megaatmega2560/FrameworkArduino/abi.o .pioenvs/megaatmega2560/FrameworkArduino/hooks.o .pioenvs/megaatmega2560/FrameworkArduino/main.o .pioenvs/megaatmega2560/FrameworkArduino/new.o .pioenvs/megaatmega2560/FrameworkArduino/wiring.o .pioenvs/megaatmega2560/FrameworkArduino/wiring_analog.o .pioenvs/megaatmega2560/FrameworkArduino/wiring_digital.o .pioenvs/megaatmega2560/FrameworkArduino/wiring_pulse.o .pioenvs/megaatmega2560/FrameworkArduino/wiring_shift.o
avr-ranlib .pioenvs/megaatmega2560/libFrameworkArduino.a
avr-g++ -o .pioenvs/megaatmega2560/rosserial_arduino_libs/time.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant -I.pioenvs/megaatmega2560/rosserial_arduino_libs -I.pioenvs/megaatmega2560/openag_firmware_module -I.pioenvs/megaatmega2560/openag_binary_actuator -I.pioenvs/megaatmega2560/Wire -I.pioenvs/megaatmega2560/Wire/utility -I.pioenvs/megaatmega2560/openag_mhz16 -I.pioenvs/megaatmega2560/openag_pulse_actuator -I.pioenvs/megaatmega2560/openag_binary_sensor -I.pioenvs/megaatmega2560/openag_atlas_ph -I.pioenvs/megaatmega2560/openag_atlas_ec -I.pioenvs/megaatmega2560/openag_pwm_actuator -I.pioenvs/megaatmega2560/openag_am2315 -I.pioenvs/megaatmega2560/OneWire_ID1 -I.pioenvs/megaatmega2560/DallasTemperature_ID54 -I.pioenvs/megaatmega2560/openag_ds18b20 .pioenvs/megaatmega2560/rosserial_arduino_libs/time.cpp
avr-ar rcs .pioenvs/megaatmega2560/libopenag_firmware_module.a
avr-ranlib .pioenvs/megaatmega2560/libopenag_firmware_module.a
avr-g++ -o .pioenvs/megaatmega2560/openag_binary_actuator/openag_binary_actuator.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant -I.pioenvs/megaatmega2560/rosserial_arduino_libs -I.pioenvs/megaatmega2560/openag_firmware_module -I.pioenvs/megaatmega2560/openag_binary_actuator -I.pioenvs/megaatmega2560/Wire -I.pioenvs/megaatmega2560/Wire/utility -I.pioenvs/megaatmega2560/openag_mhz16 -I.pioenvs/megaatmega2560/openag_pulse_actuator -I.pioenvs/megaatmega2560/openag_binary_sensor -I.pioenvs/megaatmega2560/openag_atlas_ph -I.pioenvs/megaatmega2560/openag_atlas_ec -I.pioenvs/megaatmega2560/openag_pwm_actuator -I.pioenvs/megaatmega2560/openag_am2315 -I.pioenvs/megaatmega2560/OneWire_ID1 -I.pioenvs/megaatmega2560/DallasTemperature_ID54 -I.pioenvs/megaatmega2560/openag_ds18b20 .pioenvs/megaatmega2560/openag_binary_actuator/openag_binary_actuator.cpp
avr-ar rcs .pioenvs/megaatmega2560/librosserial_arduino_libs.a .pioenvs/megaatmega2560/rosserial_arduino_libs/duration.o .pioenvs/megaatmega2560/rosserial_arduino_libs/time.o
avr-ranlib .pioenvs/megaatmega2560/librosserial_arduino_libs.a
avr-g++ -o .pioenvs/megaatmega2560/Wire/Wire.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant -I.pioenvs/megaatmega2560/rosserial_arduino_libs -I.pioenvs/megaatmega2560/openag_firmware_module -I.pioenvs/megaatmega2560/openag_binary_actuator -I.pioenvs/megaatmega2560/Wire -I.pioenvs/megaatmega2560/Wire/utility -I.pioenvs/megaatmega2560/openag_mhz16 -I.pioenvs/megaatmega2560/openag_pulse_actuator -I.pioenvs/megaatmega2560/openag_binary_sensor -I.pioenvs/megaatmega2560/openag_atlas_ph -I.pioenvs/megaatmega2560/openag_atlas_ec -I.pioenvs/megaatmega2560/openag_pwm_actuator -I.pioenvs/megaatmega2560/openag_am2315 -I.pioenvs/megaatmega2560/OneWire_ID1 -I.pioenvs/megaatmega2560/DallasTemperature_ID54 -I.pioenvs/megaatmega2560/openag_ds18b20 .pioenvs/megaatmega2560/Wire/Wire.cpp
.pioenvs/megaatmega2560/openag_binary_actuator/openag_binary_actuator.cpp: In member function ‘virtual void BinaryActuator::update()’:
.pioenvs/megaatmega2560/openag_binary_actuator/openag_binary_actuator.cpp:25:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ((curr_time - _last_cmd) > _shutoff_ms) {
^
avr-gcc -o .pioenvs/megaatmega2560/Wire/utility/twi.o -c -std=gnu11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant -I.pioenvs/megaatmega2560/rosserial_arduino_libs -I.pioenvs/megaatmega2560/openag_firmware_module -I.pioenvs/megaatmega2560/openag_binary_actuator -I.pioenvs/megaatmega2560/Wire -I.pioenvs/megaatmega2560/Wire/utility -I.pioenvs/megaatmega2560/openag_mhz16 -I.pioenvs/megaatmega2560/openag_pulse_actuator -I.pioenvs/megaatmega2560/openag_binary_sensor -I.pioenvs/megaatmega2560/openag_atlas_ph -I.pioenvs/megaatmega2560/openag_atlas_ec -I.pioenvs/megaatmega2560/openag_pwm_actuator -I.pioenvs/megaatmega2560/openag_am2315 -I.pioenvs/megaatmega2560/OneWire_ID1 -I.pioenvs/megaatmega2560/DallasTemperature_ID54 -I.pioenvs/megaatmega2560/openag_ds18b20 .pioenvs/megaatmega2560/Wire/utility/twi.c
avr-ar rcs .pioenvs/megaatmega2560/libopenag_binary_actuator.a .pioenvs/megaatmega2560/openag_binary_actuator/openag_binary_actuator.o
avr-ranlib .pioenvs/megaatmega2560/libopenag_binary_actuator.a
avr-g++ -o .pioenvs/megaatmega2560/openag_mhz16/NDIR_I2C.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant -I.pioenvs/megaatmega2560/rosserial_arduino_libs -I.pioenvs/megaatmega2560/openag_firmware_module -I.pioenvs/megaatmega2560/openag_binary_actuator -I.pioenvs/megaatmega2560/Wire -I.pioenvs/megaatmega2560/Wire/utility -I.pioenvs/megaatmega2560/openag_mhz16 -I.pioenvs/megaatmega2560/openag_pulse_actuator -I.pioenvs/megaatmega2560/openag_binary_sensor -I.pioenvs/megaatmega2560/openag_atlas_ph -I.pioenvs/megaatmega2560/openag_atlas_ec -I.pioenvs/megaatmega2560/openag_pwm_actuator -I.pioenvs/megaatmega2560/openag_am2315 -I.pioenvs/megaatmega2560/OneWire_ID1 -I.pioenvs/megaatmega2560/DallasTemperature_ID54 -I.pioenvs/megaatmega2560/openag_ds18b20 .pioenvs/megaatmega2560/openag_mhz16/NDIR_I2C.cpp
avr-g++ -o .pioenvs/megaatmega2560/openag_mhz16/openag_mhz16.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant -I.pioenvs/megaatmega2560/rosserial_arduino_libs -I.pioenvs/megaatmega2560/openag_firmware_module -I.pioenvs/megaatmega2560/openag_binary_actuator -I.pioenvs/megaatmega2560/Wire -I.pioenvs/megaatmega2560/Wire/utility -I.pioenvs/megaatmega2560/openag_mhz16 -I.pioenvs/megaatmega2560/openag_pulse_actuator -I.pioenvs/megaatmega2560/openag_binary_sensor -I.pioenvs/megaatmega2560/openag_atlas_ph -I.pioenvs/megaatmega2560/openag_atlas_ec -I.pioenvs/megaatmega2560/openag_pwm_actuator -I.pioenvs/megaatmega2560/openag_am2315 -I.pioenvs/megaatmega2560/OneWire_ID1 -I.pioenvs/megaatmega2560/DallasTemperature_ID54 -I.pioenvs/megaatmega2560/openag_ds18b20 .pioenvs/megaatmega2560/openag_mhz16/openag_mhz16.cpp
avr-g++ -o .pioenvs/megaatmega2560/openag_pulse_actuator/openag_pulse_actuator.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant -I.pioenvs/megaatmega2560/rosserial_arduino_libs -I.pioenvs/megaatmega2560/openag_firmware_module -I.pioenvs/megaatmega2560/openag_binary_actuator -I.pioenvs/megaatmega2560/Wire -I.pioenvs/megaatmega2560/Wire/utility -I.pioenvs/megaatmega2560/openag_mhz16 -I.pioenvs/megaatmega2560/openag_pulse_actuator -I.pioenvs/megaatmega2560/openag_binary_sensor -I.pioenvs/megaatmega2560/openag_atlas_ph -I.pioenvs/megaatmega2560/openag_atlas_ec -I.pioenvs/megaatmega2560/openag_pwm_actuator -I.pioenvs/megaatmega2560/openag_am2315 -I.pioenvs/megaatmega2560/OneWire_ID1 -I.pioenvs/megaatmega2560/DallasTemperature_ID54 -I.pioenvs/megaatmega2560/openag_ds18b20 .pioenvs/megaatmega2560/openag_pulse_actuator/openag_pulse_actuator.cpp
avr-ar rcs .pioenvs/megaatmega2560/libWire.a .pioenvs/megaatmega2560/Wire/Wire.o .pioenvs/megaatmega2560/Wire/utility/twi.o
avr-ranlib .pioenvs/megaatmega2560/libWire.a
.pioenvs/megaatmega2560/openag_pulse_actuator/openag_pulse_actuator.cpp: In member function ‘void PulseActuator::set_cmd(std_msgs::Bool)’:
.pioenvs/megaatmega2560/openag_pulse_actuator/openag_pulse_actuator.cpp:28:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ((curr_time - _last_cmd) > _update_ms) { // Only pulse once every update_ms
^
avr-g++ -o .pioenvs/megaatmega2560/openag_binary_sensor/openag_binary_sensor.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant -I.pioenvs/megaatmega2560/rosserial_arduino_libs -I.pioenvs/megaatmega2560/openag_firmware_module -I.pioenvs/megaatmega2560/openag_binary_actuator -I.pioenvs/megaatmega2560/Wire -I.pioenvs/megaatmega2560/Wire/utility -I.pioenvs/megaatmega2560/openag_mhz16 -I.pioenvs/megaatmega2560/openag_pulse_actuator -I.pioenvs/megaatmega2560/openag_binary_sensor -I.pioenvs/megaatmega2560/openag_atlas_ph -I.pioenvs/megaatmega2560/openag_atlas_ec -I.pioenvs/megaatmega2560/openag_pwm_actuator -I.pioenvs/megaatmega2560/openag_am2315 -I.pioenvs/megaatmega2560/OneWire_ID1 -I.pioenvs/megaatmega2560/DallasTemperature_ID54 -I.pioenvs/megaatmega2560/openag_ds18b20 .pioenvs/megaatmega2560/openag_binary_sensor/openag_binary_sensor.cpp
avr-ar rcs .pioenvs/megaatmega2560/libopenag_mhz16.a .pioenvs/megaatmega2560/openag_mhz16/NDIR_I2C.o .pioenvs/megaatmega2560/openag_mhz16/openag_mhz16.o
avr-ranlib .pioenvs/megaatmega2560/libopenag_mhz16.a
avr-g++ -o .pioenvs/megaatmega2560/openag_atlas_ph/openag_atlas_ph.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant -I.pioenvs/megaatmega2560/rosserial_arduino_libs -I.pioenvs/megaatmega2560/openag_firmware_module -I.pioenvs/megaatmega2560/openag_binary_actuator -I.pioenvs/megaatmega2560/Wire -I.pioenvs/megaatmega2560/Wire/utility -I.pioenvs/megaatmega2560/openag_mhz16 -I.pioenvs/megaatmega2560/openag_pulse_actuator -I.pioenvs/megaatmega2560/openag_binary_sensor -I.pioenvs/megaatmega2560/openag_atlas_ph -I.pioenvs/megaatmega2560/openag_atlas_ec -I.pioenvs/megaatmega2560/openag_pwm_actuator -I.pioenvs/megaatmega2560/openag_am2315 -I.pioenvs/megaatmega2560/OneWire_ID1 -I.pioenvs/megaatmega2560/DallasTemperature_ID54 -I.pioenvs/megaatmega2560/openag_ds18b20 .pioenvs/megaatmega2560/openag_atlas_ph/openag_atlas_ph.cpp
avr-ar rcs .pioenvs/megaatmega2560/libopenag_pulse_actuator.a .pioenvs/megaatmega2560/openag_pulse_actuator/openag_pulse_actuator.o
avr-ranlib .pioenvs/megaatmega2560/libopenag_pulse_actuator.a
avr-g++ -o .pioenvs/megaatmega2560/openag_atlas_ec/openag_atlas_ec.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant -I.pioenvs/megaatmega2560/rosserial_arduino_libs -I.pioenvs/megaatmega2560/openag_firmware_module -I.pioenvs/megaatmega2560/openag_binary_actuator -I.pioenvs/megaatmega2560/Wire -I.pioenvs/megaatmega2560/Wire/utility -I.pioenvs/megaatmega2560/openag_mhz16 -I.pioenvs/megaatmega2560/openag_pulse_actuator -I.pioenvs/megaatmega2560/openag_binary_sensor -I.pioenvs/megaatmega2560/openag_atlas_ph -I.pioenvs/megaatmega2560/openag_atlas_ec -I.pioenvs/megaatmega2560/openag_pwm_actuator -I.pioenvs/megaatmega2560/openag_am2315 -I.pioenvs/megaatmega2560/OneWire_ID1 -I.pioenvs/megaatmega2560/DallasTemperature_ID54 -I.pioenvs/megaatmega2560/openag_ds18b20 .pioenvs/megaatmega2560/openag_atlas_ec/openag_atlas_ec.cpp
avr-ar rcs .pioenvs/megaatmega2560/libopenag_binary_sensor.a .pioenvs/megaatmega2560/openag_binary_sensor/openag_binary_sensor.o
.pioenvs/megaatmega2560/openag_atlas_ph/openag_atlas_ph.cpp: In member function ‘void AtlasPh::set_midpoint_calibration(std_msgs::Float32)’:
.pioenvs/megaatmega2560/openag_atlas_ph/openag_atlas_ph.cpp:42:40: warning: format ‘%f’ expects argument of type ‘double’, but argument 3 has type ‘float’ [-Wformat=]
sprintf(buf, "Cal,mid,%.2f", msg.data);
^
.pioenvs/megaatmega2560/openag_atlas_ph/openag_atlas_ph.cpp: In member function ‘void AtlasPh::set_lowpoint_calibration(std_msgs::Float32)’:
.pioenvs/megaatmega2560/openag_atlas_ph/openag_atlas_ph.cpp:50:40: warning: format ‘%f’ expects argument of type ‘double’, but argument 3 has type ‘float’ [-Wformat=]
sprintf(buf, "Cal,low,%.2f", msg.data);
^
.pioenvs/megaatmega2560/openag_atlas_ph/openag_atlas_ph.cpp: In member function ‘void AtlasPh::set_highpoint_calibration(std_msgs::Float32)’:
.pioenvs/megaatmega2560/openag_atlas_ph/openag_atlas_ph.cpp:58:41: warning: format ‘%f’ expects argument of type ‘double’, but argument 3 has type ‘float’ [-Wformat=]
sprintf(buf, "Cal,high,%.2f", msg.data);
^
avr-ranlib .pioenvs/megaatmega2560/libopenag_binary_sensor.a
avr-g++ -o .pioenvs/megaatmega2560/openag_pwm_actuator/openag_pwm_actuator.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant -I.pioenvs/megaatmega2560/rosserial_arduino_libs -I.pioenvs/megaatmega2560/openag_firmware_module -I.pioenvs/megaatmega2560/openag_binary_actuator -I.pioenvs/megaatmega2560/Wire -I.pioenvs/megaatmega2560/Wire/utility -I.pioenvs/megaatmega2560/openag_mhz16 -I.pioenvs/megaatmega2560/openag_pulse_actuator -I.pioenvs/megaatmega2560/openag_binary_sensor -I.pioenvs/megaatmega2560/openag_atlas_ph -I.pioenvs/megaatmega2560/openag_atlas_ec -I.pioenvs/megaatmega2560/openag_pwm_actuator -I.pioenvs/megaatmega2560/openag_am2315 -I.pioenvs/megaatmega2560/OneWire_ID1 -I.pioenvs/megaatmega2560/DallasTemperature_ID54 -I.pioenvs/megaatmega2560/openag_ds18b20 .pioenvs/megaatmega2560/openag_pwm_actuator/openag_pwm_actuator.cpp
.pioenvs/megaatmega2560/openag_atlas_ec/openag_atlas_ec.cpp: In member function ‘void AtlasEc::set_single_calibration(std_msgs::Float32)’:
.pioenvs/megaatmega2560/openag_atlas_ec/openag_atlas_ec.cpp:52:40: warning: format ‘%f’ expects argument of type ‘double’, but argument 3 has type ‘float’ [-Wformat=]
sprintf(buf, "Cal,one,%.2f", msg.data);
^
.pioenvs/megaatmega2560/openag_atlas_ec/openag_atlas_ec.cpp: In member function ‘void AtlasEc::set_lowpoint_calibration(std_msgs::Float32)’:
.pioenvs/megaatmega2560/openag_atlas_ec/openag_atlas_ec.cpp:60:40: warning: format ‘%f’ expects argument of type ‘double’, but argument 3 has type ‘float’ [-Wformat=]
sprintf(buf, "Cal,low,%.2f", msg.data);
^
.pioenvs/megaatmega2560/openag_atlas_ec/openag_atlas_ec.cpp: In member function ‘void AtlasEc::set_highpoint_calibration(std_msgs::Float32)’:
.pioenvs/megaatmega2560/openag_atlas_ec/openag_atlas_ec.cpp:68:41: warning: format ‘%f’ expects argument of type ‘double’, but argument 3 has type ‘float’ [-Wformat=]
sprintf(buf, "Cal,high,%.2f", msg.data);
^
avr-g++ -o .pioenvs/megaatmega2560/openag_am2315/openag_am2315.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant -I.pioenvs/megaatmega2560/rosserial_arduino_libs -I.pioenvs/megaatmega2560/openag_firmware_module -I.pioenvs/megaatmega2560/openag_binary_actuator -I.pioenvs/megaatmega2560/Wire -I.pioenvs/megaatmega2560/Wire/utility -I.pioenvs/megaatmega2560/openag_mhz16 -I.pioenvs/megaatmega2560/openag_pulse_actuator -I.pioenvs/megaatmega2560/openag_binary_sensor -I.pioenvs/megaatmega2560/openag_atlas_ph -I.pioenvs/megaatmega2560/openag_atlas_ec -I.pioenvs/megaatmega2560/openag_pwm_actuator -I.pioenvs/megaatmega2560/openag_am2315 -I.pioenvs/megaatmega2560/OneWire_ID1 -I.pioenvs/megaatmega2560/DallasTemperature_ID54 -I.pioenvs/megaatmega2560/openag_ds18b20 .pioenvs/megaatmega2560/openag_am2315/openag_am2315.cpp
avr-ar rcs .pioenvs/megaatmega2560/libopenag_atlas_ph.a .pioenvs/megaatmega2560/openag_atlas_ph/openag_atlas_ph.o
avr-ar rcs .pioenvs/megaatmega2560/libopenag_atlas_ec.a .pioenvs/megaatmega2560/openag_atlas_ec/openag_atlas_ec.o
avr-ranlib .pioenvs/megaatmega2560/libopenag_atlas_ph.a
avr-ranlib .pioenvs/megaatmega2560/libopenag_atlas_ec.a
avr-ar rcs .pioenvs/megaatmega2560/libopenag_pwm_actuator.a .pioenvs/megaatmega2560/openag_pwm_actuator/openag_pwm_actuator.o
avr-ranlib .pioenvs/megaatmega2560/libopenag_pwm_actuator.a
avr-g++ -o .pioenvs/megaatmega2560/OneWire_ID1/OneWire.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant -I.pioenvs/megaatmega2560/rosserial_arduino_libs -I.pioenvs/megaatmega2560/openag_firmware_module -I.pioenvs/megaatmega2560/openag_binary_actuator -I.pioenvs/megaatmega2560/Wire -I.pioenvs/megaatmega2560/Wire/utility -I.pioenvs/megaatmega2560/openag_mhz16 -I.pioenvs/megaatmega2560/openag_pulse_actuator -I.pioenvs/megaatmega2560/openag_binary_sensor -I.pioenvs/megaatmega2560/openag_atlas_ph -I.pioenvs/megaatmega2560/openag_atlas_ec -I.pioenvs/megaatmega2560/openag_pwm_actuator -I.pioenvs/megaatmega2560/openag_am2315 -I.pioenvs/megaatmega2560/OneWire_ID1 -I.pioenvs/megaatmega2560/DallasTemperature_ID54 -I.pioenvs/megaatmega2560/openag_ds18b20 .pioenvs/megaatmega2560/OneWire_ID1/OneWire.cpp
avr-g++ -o .pioenvs/megaatmega2560/DallasTemperature_ID54/DallasTemperature.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant -I.pioenvs/megaatmega2560/rosserial_arduino_libs -I.pioenvs/megaatmega2560/openag_firmware_module -I.pioenvs/megaatmega2560/openag_binary_actuator -I.pioenvs/megaatmega2560/Wire -I.pioenvs/megaatmega2560/Wire/utility -I.pioenvs/megaatmega2560/openag_mhz16 -I.pioenvs/megaatmega2560/openag_pulse_actuator -I.pioenvs/megaatmega2560/openag_binary_sensor -I.pioenvs/megaatmega2560/openag_atlas_ph -I.pioenvs/megaatmega2560/openag_atlas_ec -I.pioenvs/megaatmega2560/openag_pwm_actuator -I.pioenvs/megaatmega2560/openag_am2315 -I.pioenvs/megaatmega2560/OneWire_ID1 -I.pioenvs/megaatmega2560/DallasTemperature_ID54 -I.pioenvs/megaatmega2560/openag_ds18b20 .pioenvs/megaatmega2560/DallasTemperature_ID54/DallasTemperature.cpp
avr-ar rcs .pioenvs/megaatmega2560/libopenag_am2315.a .pioenvs/megaatmega2560/openag_am2315/openag_am2315.o
avr-ranlib .pioenvs/megaatmega2560/libopenag_am2315.a
avr-g++ -o .pioenvs/megaatmega2560/openag_ds18b20/openag_ds18b20.o -c -fno-exceptions -fno-threadsafe-statics -std=gnu++11 -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -DPLATFORMIO=021102 -DARDUINO_ARCH_AVR -DARDUINO_AVR_MEGA2560 -DOPENAG_CATEGORY_SENSORS -DOPENAG_CATEGORY_ACTUATORS -DOPENAG_CATEGORY_PERSISTENCE -DOPENAG_CATEGORY_CONTROL -DARDUINO=10608 -I.pioenvs/megaatmega2560/FrameworkArduino -I.pioenvs/megaatmega2560/FrameworkArduinoVariant -I.pioenvs/megaatmega2560/rosserial_arduino_libs -I.pioenvs/megaatmega2560/openag_firmware_module -I.pioenvs/megaatmega2560/openag_binary_actuator -I.pioenvs/megaatmega2560/Wire -I.pioenvs/megaatmega2560/Wire/utility -I.pioenvs/megaatmega2560/openag_mhz16 -I.pioenvs/megaatmega2560/openag_pulse_actuator -I.pioenvs/megaatmega2560/openag_binary_sensor -I.pioenvs/megaatmega2560/openag_atlas_ph -I.pioenvs/megaatmega2560/openag_atlas_ec -I.pioenvs/megaatmega2560/openag_pwm_actuator -I.pioenvs/megaatmega2560/openag_am2315 -I.pioenvs/megaatmega2560/OneWire_ID1 -I.pioenvs/megaatmega2560/DallasTemperature_ID54 -I.pioenvs/megaatmega2560/openag_ds18b20 .pioenvs/megaatmega2560/openag_ds18b20/openag_ds18b20.cpp
avr-ar rcs .pioenvs/megaatmega2560/libOneWire_ID1.a .pioenvs/megaatmega2560/OneWire_ID1/OneWire.o
avr-ranlib .pioenvs/megaatmega2560/libOneWire_ID1.a
avr-ar rcs .pioenvs/megaatmega2560/libopenag_ds18b20.a .pioenvs/megaatmega2560/openag_ds18b20/openag_ds18b20.o
avr-ranlib .pioenvs/megaatmega2560/libopenag_ds18b20.a
avr-ar rcs .pioenvs/megaatmega2560/libDallasTemperature_ID54.a .pioenvs/megaatmega2560/DallasTemperature_ID54/DallasTemperature.o
avr-ranlib .pioenvs/megaatmega2560/libDallasTemperature_ID54.a
avr-g++ -o .pioenvs/megaatmega2560/firmware.elf -Os -mmcu=atmega2560 -Wl,--gc-sections,--relax .pioenvs/megaatmega2560/src/tmp_ino_to.o -L/home/pi/.platformio/packages/ldscripts -L.pioenvs/megaatmega2560 -Wl,--start-group .pioenvs/megaatmega2560/libFrameworkArduinoVariant.a .pioenvs/megaatmega2560/libFrameworkArduino.a -lm .pioenvs/megaatmega2560/librosserial_arduino_libs.a .pioenvs/megaatmega2560/libopenag_firmware_module.a .pioenvs/megaatmega2560/libopenag_binary_actuator.a .pioenvs/megaatmega2560/libWire.a .pioenvs/megaatmega2560/libopenag_mhz16.a .pioenvs/megaatmega2560/libopenag_pulse_actuator.a .pioenvs/megaatmega2560/libopenag_binary_sensor.a .pioenvs/megaatmega2560/libopenag_atlas_ph.a .pioenvs/megaatmega2560/libopenag_atlas_ec.a .pioenvs/megaatmega2560/libopenag_pwm_actuator.a .pioenvs/megaatmega2560/libopenag_am2315.a .pioenvs/megaatmega2560/libOneWire_ID1.a .pioenvs/megaatmega2560/libDallasTemperature_ID54.a .pioenvs/megaatmega2560/libopenag_ds18b20.a -Wl,--end-group
MethodWrapper([".pioenvs/megaatmega2560/firmware.elf"], [".pioenvs/megaatmega2560/src/tmp_ino_to.o"])
Check program size...
text	   data	    bss	    dec	    hex	filename
29110	   2540	   2447	  34097	   8531	.pioenvs/megaatmega2560/firmware.elf
avr-objcopy -O ihex -R .eeprom .pioenvs/megaatmega2560/firmware.elf .pioenvs/megaatmega2560/firmware.hex
BeforeUpload(["upload"], [".pioenvs/megaatmega2560/firmware.hex"])
Looking for upload port/disk...

Warning! Please install `99-platformio-udev.rules` and check that your board's PID and VID are listed in the rules.
https://raw.githubusercontent.com/platformio/platformio/develop/scripts/99-platformio-udev.rules

Auto-detected: /dev/ttyACM0
"/home/pi/.platformio/packages/tool-avrdude/avrdude" -v -p atmega2560 -C "/home/pi/.platformio/packages/tool-avrdude/avrdude.conf" -c wiring -b 115200 -P "/dev/ttyACM0" -D -U flash:w:.pioenvs/megaatmega2560/firmware.hex:i

avrdude: Version 6.0.1, compiled on Apr  7 2016 at 22:44:28
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "/home/pi/.platformio/packages/tool-avrdude/avrdude.conf"
User configuration file is "/home/pi/.avrduderc"
User configuration file does not exist or is not a regular file, skipping

Using Port                    : /dev/ttyACM0
Using Programmer              : wiring
Overriding Baud Rate          : 115200
AVR Part                      : ATmega2560
Chip Erase delay              : 9000 us
PAGEL                         : PD7
BS2                           : PA0
RESET disposition             : dedicated
RETRY pulse                   : SCK
serial program mode           : yes
parallel program mode         : yes
Timeout                       : 200
StabDelay                     : 100
CmdexeDelay                   : 25
SyncLoops                     : 32
ByteDelay                     : 0
PollIndex                     : 3
PollValue                     : 0x53
Memory Detail                 :

Block Poll               Page                       Polled
Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom        65    10     8    0 no       4096    8      0  9000  9000 0x00 0x00
flash         65    10   256    0 yes    262144  256   1024  4500  4500 0x00 0x00
lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

Programmer Type : Wiring
Description     : Wiring
Programmer Model: AVRISP
Hardware Version: 15
Firmware Version Master : 2.10
Vtarget         : 0.0 V
SCK period      : 2.2 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9801
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as D8
avrdude: safemode: efuse reads as FF
avrdude: reading input file ".pioenvs/megaatmega2560/firmware.hex"
avrdude: writing flash (31650 bytes):

Writing | ################################################## | 100% 5.52s

avrdude: 31650 bytes of flash written
avrdude: verifying flash memory against .pioenvs/megaatmega2560/firmware.hex:
avrdude: load data flash data from input file .pioenvs/megaatmega2560/firmware.hex:
avrdude: input file .pioenvs/megaatmega2560/firmware.hex contains 31650 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 4.07s

avrdude: verifying ...
avrdude: 31650 bytes of flash verified

avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as D8
avrdude: safemode: efuse reads as FF
avrdude: safemode: Fuses OK (H:FF, E:D8, L:FF)

avrdude done.  Thank you.

========================================== [SUCCESS] Took 21.36 seconds ==========================================
Done

Restart ROS

pi@raspberrypi:~ $ rosrun openag_brain main
Initializing the database
Applying CouchDB configuration  [####################################]  100%
Creating databases  [####################################]  100%
Pushing design documents
Generating launch file
Processing module "water_level_high_controller_1" from server
Processing module "expand_diagnostics" from server
Processing module "water_potential_hydrogen_controller_1" from server
Processing module "arduino_handler" from server
Processing module "topic_filter_1" from server
Processing module "air_temperature_controller_1" from server
Processing module "recipe_handler_1" from server
Processing module "api" from server
Processing module "topic_connector" from server
Processing module "video_writer_1" from server
Processing module "image_persistence_1" from server
Processing module "light_controller_1" from server
Processing module "sensor_persistence_1" from server
Processing module "sensor_info_publisher" from server
Spawning software modules
Unable to register with master node [http://localhost:11311]: master may not be running yet. Will keep trying.
... logging to /home/pi/.ros/log/b6216c04-e913-11e6-bbaa-b827eb23a528/roslaunch-raspberrypi-2665.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://raspberrypi:36420/

SUMMARY
========

PARAMETERS
 * /arduino_handler/serial_port: /dev/ttyACM0
 * /arduino_handler/should_flash: False
 * /categories: ['sensors', 'actu...
 * /environments/environment_1/air_temperature_controller_1/Kd: 0.0
 * /environments/environment_1/air_temperature_controller_1/Ki: 0.0
 * /environments/environment_1/air_temperature_controller_1/Kp: 1.0
 * /environments/environment_1/air_temperature_controller_1/deadband_width: 0.5
 * /environments/environment_1/air_temperature_controller_1/lower_limit: -1.0
 * /environments/environment_1/air_temperature_controller_1/upper_limit: 1.0
 * /environments/environment_1/air_temperature_controller_1/variable: air_temperature
 * /environments/environment_1/air_temperature_controller_1/windup_limit: 1000.0
 * /environments/environment_1/image_persistence_1/min_update_interval: 3600
 * /environments/environment_1/light_controller_1/variable: light_illuminance
 * /environments/environment_1/sensor_persistence_1/max_update_interval: 600
 * /environments/environment_1/sensor_persistence_1/min_update_interval: 5
 * /environments/environment_1/video_writer_1/timelapse_scaling_factor: 86400
 * /environments/environment_1/water_level_high_controller_1/variable: water_level_high
 * /environments/environment_1/water_potential_hydrogen_controller_1/Kd: 0.0
 * /environments/environment_1/water_potential_hydrogen_controller_1/Ki: 0.0
 * /environments/environment_1/water_potential_hydrogen_controller_1/Kp: 1.0
 * /environments/environment_1/water_potential_hydrogen_controller_1/deadband_width: 0.5
 * /environments/environment_1/water_potential_hydrogen_controller_1/lower_limit: -1.0
 * /environments/environment_1/water_potential_hydrogen_controller_1/upper_limit: 1.0
 * /environments/environment_1/water_potential_hydrogen_controller_1/variable: water_potential_h...
 * /environments/environment_1/water_potential_hydrogen_controller_1/windup_limit: 1000.0
 * /rosdistro: indigo
 * /rosversion: 1.11.20

NODES
  /
    api (openag_brain/api.py)
    arduino_handler (openag_brain/handle_arduino.py)
    expand_diagnostics (openag_brain/expand_diagnostics.py)
    sensor_info_publisher (openag_brain/sensor_info_publisher.py)
    topic_connector (openag_brain/topic_connector.py)
  /environments/environment_1/
    air_temperature_controller_1 (openag_brain/pid.py)
    image_persistence_1 (openag_brain/image_persistence.py)
    light_controller_1 (openag_brain/direct_controller.py)
    recipe_handler_1 (openag_brain/recipe_handler.py)
    sensor_persistence_1 (openag_brain/sensor_persistence.py)
    topic_filter_1 (openag_brain/topic_filter.py)
    video_writer_1 (openag_brain/video_writer.py)
    water_level_high_controller_1 (openag_brain/linear_controller.py)
    water_potential_hydrogen_controller_1 (openag_brain/pid.py)

auto-starting new master
process[master]: started with pid [2681]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to b6216c04-e913-11e6-bbaa-b827eb23a528
process[rosout-1]: started with pid [2700]
started core service [/rosout]
process[environments/environment_1/water_level_high_controller_1-2]: started with pid [2718]
process[environments/environment_1/water_potential_hydrogen_controller_1-3]: started with pid [2719]
process[environments/environment_1/topic_filter_1-4]: started with pid [2720]
process[environments/environment_1/air_temperature_controller_1-5]: started with pid [2721]
process[environments/environment_1/recipe_handler_1-6]: started with pid [2723]
process[environments/environment_1/video_writer_1-7]: started with pid [2724]
process[environments/environment_1/image_persistence_1-8]: started with pid [2725]
process[environments/environment_1/light_controller_1-9]: started with pid [2726]
process[environments/environment_1/sensor_persistence_1-10]: started with pid [2727]
process[expand_diagnostics-11]: started with pid [2732]
process[arduino_handler-12]: started with pid [2733]
process[api-13]: started with pid [2736]
process[topic_connector-14]: started with pid [2737]
process[sensor_info_publisher-15]: started with pid [2742]
@davoclavo

after doing

cd ~/openag/src/openag_python
git pull

I think you also need to do sudo pip install .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment