Giter Club home page Giter Club logo

hott-for-ardupilot's People

Contributors

3yc avatar mamaretti avatar

hott-for-ardupilot's Issues

Error in Hott.pde - "hal" was not declared in this scope

What steps will reproduce the problem?
1. Used Sketchbook APM 2.81b final
2. import files: Hott.pde, Hott_textmode.pde, put the code from UserCode.pde in 
UserCode.ino
3. compile

What is the expected output? What do you see instead?

Hott.pde: In function 'void _hott_send_telemetry_data()':
Hott:540: error: 'hal' was not declared in this scope
Hott:545: error: 'hal' was not declared in this scope
Hott:548: error: 'hal' was not declared in this scope
Hott.pde: In function 'void _hott_setup()':
Hott:557: error: 'hal' was not declared in this scope
Hott.pde: In function 'void _hott_check_serial_data(uint32_t)':
Hott:572: error: 'hal' was not declared in this scope
Hott.pde: In function 'void _hott_update_gps_msg()':
Hott:747: error: 'GPS_OK_FIX_3D' is not a member of 'GPS'


What version of the product are you using? On what operating system?
Arduino 1.04 - Windows 7 64

Please provide any additional information below.

What can I do to avoid this error?

Original issue reported on code.google.com by [email protected] on 7 May 2013 at 11:18

Please take a look at this error when compiling with AC3.1

Did some variables change format since last time ?

andre@Loke:~/Arduino/ardupilot/ArduCopter$ make
HAL_BOARD=HAL_BOARD_APM2 TOOLCHAIN=AVR EXTRAFLAGS=-DGIT_VERSION="1793ee80"
building /tmp/ArduCopter.build/ArduCopter.cpp
%% ArduCopter.cpp
%% ArduCopter.o
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde: In function 'void 
_hott_setup()':
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:560:62: error: invalid 
conversion from 'void (*)(uint32_t) {aka void (*)(long unsigned int)}' to 
'fastdelegate::FastDelegate0<>::DesiredRetType (*)() {aka void (*)()}' 
[-fpermissive]
In file included from 
/home/andre/Arduino/ardupilot/libraries/AP_HAL/AP_HAL_Namespace.h:6:0,
                 from /home/andre/Arduino/ardupilot/libraries/AP_HAL/AP_HAL.h:8,
                 from /home/andre/Arduino/ardupilot/libraries/AP_Menu/AP_Menu.h:20,
                 from /home/andre/Arduino/ardupilot/ArduCopter/ArduCopter.pde:85:
/home/andre/Arduino/ardupilot/libraries/AP_HAL/utility/FastDelegate.h:896:2: 
error:   initializing argument 1 of 
'fastdelegate::FastDelegate0<RetType>::FastDelegate0(fastdelegate::FastDelegate0
<RetType>::DesiredRetType (*)()) [with RetType = void; 
fastdelegate::FastDelegate0<RetType>::DesiredRetType = void]' [-fpermissive]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde: In function 'void 
_hott_update_gam_msg()':
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:694:22: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:695:22: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:697:22: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:697:34: error: 
'current_amps1' was not declared in this scope
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:698:22: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:698:45: error: 
'battery_voltage1' was not declared in this scope
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:699:22: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:699:35: error: 
'current_total1' was not declared in this scope
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:700:42: error: 'class 
Parameters' has no member named 'pack_capacity'
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:700:78: error: 'class 
Parameters' has no member named 'pack_capacity'
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:701:22: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:701:53: error: 'class GPS' 
has no member named 'ground_speed'
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde: In function 'void 
_hott_update_eam_msg()':
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:715:22: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:716:22: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:719:22: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:720:22: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:720:34: error: 
'current_amps1' was not declared in this scope
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:721:22: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:721:45: error: 
'battery_voltage1' was not declared in this scope
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:722:22: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:722:35: error: 
'current_total1' was not declared in this scope
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:723:22: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:723:53: error: 'class GPS' 
has no member named 'ground_speed'
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:725:24: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde: In function 'void 
_hott_update_gps_msg()':
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:742:23: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:742:52: error: 'class GPS' 
has no member named 'altitude'
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:743:51: error: 'class GPS' 
has no member named 'ground_course'
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:744:23: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:744:58: error: 'class GPS' 
has no member named 'ground_speed'
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:756:25: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:764:60: error: 'next_WP' was 
not declared in this scope
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:765:32: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:776:61: error: invalid 
initialization of reference of type 'const Location&' from expression of type 
'Location*'
In file included from 
/home/andre/Arduino/ardupilot/libraries/GCS_MAVLink/GCS_MAVLink.h:11:0,
                 from /home/andre/Arduino/ardupilot/ArduCopter/ArduCopter.pde:97:
/home/andre/Arduino/ardupilot/libraries/AP_Math/AP_Math.h:77:25: error: in 
passing argument 1 of 'uint32_t get_distance_cm(const Location&, const 
Location&)'
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:777:31: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:778:75: error: invalid 
initialization of reference of type 'const Location&' from expression of type 
'Location*'
In file included from 
/home/andre/Arduino/ardupilot/libraries/GCS_MAVLink/GCS_MAVLink.h:11:0,
                 from /home/andre/Arduino/ardupilot/ArduCopter/ArduCopter.pde:97:
/home/andre/Arduino/ardupilot/libraries/AP_Math/AP_Math.h:80:25: error: in 
passing argument 1 of 'int32_t get_bearing_cd(const Location&, const Location&)'
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:824:23: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:825:23: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:832:23: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:833:23: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:835:23: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:837:23: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:848:23: error: 'class GPS' 
has no member named 'time'
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde: In function 'void 
_hott_update_vario_msg()':
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:886:24: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:890:24: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:894:24: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:896:24: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:897:24: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:898:24: warning: 
dereferencing type-punned pointer will break strict-aliasing rules 
[-Wstrict-aliasing]
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde: In function 'void 
_hott_eam_check_mAh()':
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:1264:9: error: 'class 
Parameters' has no member named 'battery_monitoring'
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:1264:40: error: 'class 
Parameters' has no member named 'pack_capacity'
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:1264:66: error: 
'current_total1' was not declared in this scope
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde: In function 'void 
_hott_eam_check_mainPower()':
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:1280:30: error: 'class 
Parameters' has no member named 'battery_monitoring'
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:1280:59: error: 
'battery_voltage1' was not declared in this scope
/home/andre/Arduino/ardupilot/ArduCopter/Hott.pde:1280:80: error: 'class 
Parameters' has no member named 'low_voltage'
/home/andre/Arduino/ardupilot/ArduCopter/GCS_Mavlink.pde: At global scope:
/home/andre/Arduino/ardupilot/ArduCopter/GCS_Mavlink.pde:276:22: warning: 'void 
send_simstate(mavlink_channel_t)' defined but not used [-Wunused-function]
autogenerated:106:23: warning: 'void send_servo_out(mavlink_channel_t)' 
declared 'static' but never defined [-Wunused-function]
/home/andre/Arduino/ardupilot/ArduCopter/Log.pde:566:13: warning: 'void 
Log_Write_Data(uint8_t, int16_t)' defined but not used [-Wunused-function]
/home/andre/Arduino/ardupilot/ArduCopter/Log.pde:585:13: warning: 'void 
Log_Write_Data(uint8_t, uint16_t)' defined but not used [-Wunused-function]
/home/andre/Arduino/ardupilot/ArduCopter/Log.pde:642:13: warning: 'void 
Log_Write_Data(uint8_t, float)' defined but not used [-Wunused-function]
autogenerated:198:14: warning: 'void Log_Write_IMU()' declared 'static' but 
never defined [-Wunused-function]
autogenerated:199:14: warning: 'void Log_Write_GPS()' declared 'static' but 
never defined [-Wunused-function]
/home/andre/Arduino/ardupilot/ArduCopter/compat.pde:8:13: warning: 'void 
mavlink_delay(uint32_t)' defined but not used [-Wunused-function]
/home/andre/Arduino/ardupilot/ArduCopter/compat.pde:23:13: warning: 'void 
pinMode(uint8_t, uint8_t)' defined but not used [-Wunused-function]
/home/andre/Arduino/ardupilot/ArduCopter/compat.pde:28:13: warning: 'void 
digitalWrite(uint8_t, uint8_t)' defined but not used [-Wunused-function]
/home/andre/Arduino/ardupilot/ArduCopter/compat.pde:33:16: warning: 'uint8_t 
digitalRead(uint8_t)' defined but not used [-Wunused-function]
autogenerated:319:14: warning: 'void heli_init()' declared 'static' but never 
defined [-Wunused-function]
autogenerated:320:17: warning: 'int16_t get_pilot_desired_collective(int16_t)' 
declared 'static' but never defined [-Wunused-function]
autogenerated:321:14: warning: 'void check_dynamic_flight()' declared 'static' 
but never defined [-Wunused-function]
autogenerated:322:14: warning: 'void heli_integrated_swash_controller(int32_t, 
int32_t)' declared 'static' but never defined [-Wunused-function]
autogenerated:323:18: warning: 'int16_t get_heli_rate_yaw(int32_t)' declared 
'static' but never defined [-Wunused-function]
autogenerated:324:14: warning: 'void heli_update_landing_swash()' declared 
'static' but never defined [-Wunused-function]
autogenerated:325:14: warning: 'void heli_update_rotor_speed_targets()' 
declared 'static' but never defined [-Wunused-function]
make: *** [/tmp/ArduCopter.build/ArduCopter.o] Error 1
andre@Loke:~/Arduino/ardupilot/ArduCopter$ 

Original issue reported on code.google.com by [email protected] on 7 Jan 2014 at 8:56

  • Merged into: #7

Free RAM Issue

hi 
i think there is a ram problem,
and it must to be optimized!!!

original ArduCopter V2.7.1
has on init Free RAM: 1485
in the loop  Free RAM: 1061



if defines
#define HOTT_TELEMETRY
#define HOTT_TELEMETRY_SERIAL_PORT      2
were set
on init Free RAM: 830
in loop Free RAM: 414


if defines
#define HOTT_TELEMETRY
#define HOTT_TELEMETRY_SERIAL_PORT      2
#define HOTT_SIM_GPS_SENSOR
were set
on init Free RAM: 766
in loop Free RAM: 322


if defines
#define HOTT_TELEMETRY
#define HOTT_TELEMETRY_SERIAL_PORT      2
#define HOTT_SIM_GPS_SENSOR
#define HOTT_SIM_EAM_SENSOR (with new textmode implemation)
were set
on init Free RAM: 627
in loop Free RAM: 195

michi




Original issue reported on code.google.com by [email protected] on 10 Aug 2012 at 11:55

_hott_update_gps_msg logic causes disarm in 2.8.1 (maybe taking too long in loop?)

I have done some minor code block disabling to track down exactly where within 
this method that causes the disarm problem, but I have run out of time (heading 
out on vacation). 

I have isolated the issue to within the _hott_update_gps_msg method, commenting 
out a large portion of it fixes the problem. There was another tweak to be made 
with get_bearing_cd to get it compiling. but it still disarms if you have that 
entire block commented out.


Original issue reported on code.google.com by [email protected] on 21 Dec 2012 at 5:42

gps values if NO 3DFIx


Wrong values while satfinding / 
please check 

- gpsspeed
- flightdirection
- homedirection

if satcount 0 homedirection is set to 90 degree








Original issue reported on code.google.com by [email protected] on 3 Aug 2012 at 7:27

error: 'next_WP' was not declared in this scope

I use arduino IDE on Windows 7 and arducopter v.3.01 (APM2.6)

First of all i fixed some "name-updates" where an additional _cm was missing in 
the variable name.

Nevertheless im still trying to figure out why i get the following error:

Hott:766: error: 'next_WP' was not declared in this scope
Hott:778: error: invalid initialization of reference of type 'const Location&' 
from expression of type 'Location*'
C:\Users\Simon\Desktop\QC-Projekt\ardupilot-master\libraries\AP_Math/AP_Math.h:7
4: error: in passing argument 1 of 'uint32_t get_distance_cm(const Location&, 
const Location&)'
Hott:780: error: invalid initialization of reference of type 'const Location&' 
from expression of type 'Location*'
C:\Users\Simon\Desktop\QC-Projekt\ardupilot-master\libraries\AP_Math/AP_Math.h:7
7: error: in passing argument 1 of 'int32_t get_bearing_cd(const Location&, 
const Location&)'

Any ideas how to fix this?
Thanks in advance.

Original issue reported on code.google.com by [email protected] on 27 Aug 2013 at 2:49

please provide compiling information for use with make

Arduino compilation is deprecated on recent ardupilot versions.
read.me says we should use make.

Reading 
http://code.google.com/p/hott-for-ardupilot/wiki/QuickStartGuideArduCopter
, step 5 says: "Add Hott.pde Arduino project "

How to do that ?

Trying to compile for Arducopter 3.1

Original issue reported on code.google.com by [email protected] on 7 Jan 2014 at 8:41

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.