mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 17:38:32 -04:00
Copter: fixes for AP_HAL merge
This commit is contained in:
parent
51d987a890
commit
17a63dc76a
@ -1314,7 +1314,7 @@ static void Log_Write_Mode(uint8_t mode) {
|
|||||||
}
|
}
|
||||||
static void Log_Write_Raw() {
|
static void Log_Write_Raw() {
|
||||||
}
|
}
|
||||||
void print_latlon(BetterStream *s, int32_t lat_or_lon) {
|
void print_latlon(AP_HAL::BetterStream *s, int32_t lat_or_lon) {
|
||||||
}
|
}
|
||||||
static void Log_Write_GPS() {
|
static void Log_Write_GPS() {
|
||||||
}
|
}
|
||||||
|
@ -35,9 +35,9 @@ static int32_t read_barometer(void)
|
|||||||
static int16_t read_sonar(void)
|
static int16_t read_sonar(void)
|
||||||
{
|
{
|
||||||
#if CONFIG_SONAR == ENABLED
|
#if CONFIG_SONAR == ENABLED
|
||||||
int16_t temp_alt = sonar.read();
|
int16_t temp_alt = sonar->read();
|
||||||
|
|
||||||
if(temp_alt >= sonar.min_distance && temp_alt <= sonar.max_distance * 0.70) {
|
if(temp_alt >= sonar->min_distance && temp_alt <= sonar->max_distance * 0.70) {
|
||||||
sonar_alt_ok = true;
|
sonar_alt_ok = true;
|
||||||
}else{
|
}else{
|
||||||
sonar_alt_ok = false;
|
sonar_alt_ok = false;
|
||||||
|
@ -292,8 +292,8 @@ init_rate_controllers();
|
|||||||
// Experimental AP_Limits library - set constraints, limits, fences, minima,
|
// Experimental AP_Limits library - set constraints, limits, fences, minima,
|
||||||
// maxima on various parameters
|
// maxima on various parameters
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
static void init_ap_limits() {
|
||||||
#if AP_LIMITS == ENABLED
|
#if AP_LIMITS == ENABLED
|
||||||
|
|
||||||
// The linked list looks (logically) like this [limits module] -> [first
|
// The linked list looks (logically) like this [limits module] -> [first
|
||||||
// limit module] -> [second limit module] -> [third limit module] -> NULL
|
// limit module] -> [second limit module] -> [third limit module] -> NULL
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user